Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

No SslStream for NET compact framework

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-06-2008, 10:51 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Italy
Posts: 599
Awards Showcase
Beta Tester 
Total Awards: 1
Unhappy No SslStream for NET compact framework

I have (had ) this little project of writing an application which among its tasks would need to connect to a server via telnet using OpenSSL as an Authentication method but I just found out that NETCF does not support SSL (apparently because the SslStream-class is not supported) and no one knows if it will be implemented in future releases.

If you believe I got it all wrong, please then let me know.

If you aware about any alternative solutions (open-source libraries or similar), please let me know.

Regards,
/moster67
Reply With Quote
  #2 (permalink)  
Old 12-06-2008, 11:29 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

According to "Microsoft Mobile Development Handbook" by Wigley,Moth and Foot, WM5.0 and later supports SSL over HTTP by just changing URLs to start with "https://" but "your Web server must have an X.509 server certificate which is used to authenticate the Web server ...".

It may be that WM2003 and .NET 1.0 also support this as Googling around I have found a query by someone "trying to hit an IBM web server (Apache-based I believe) via HttpWebRequest POST method over SSL ... The test is being done on VS .Net 2003 and the PPC 2003 emulator". The result of this query was that "there is a bug in http client that is exposed by the code you are using. Instead of setting req.ContentLength, you should set AllowWriteStreamBuffering to true." So it looks like it should also work through the HTTP libary though it may need a bit of intervention with the Door library.

I don't know if this helps you as this is not one of my areas of expertise.
Reply With Quote
  #3 (permalink)  
Old 12-06-2008, 11:53 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Italy
Posts: 599
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thank you Graham for your reply and interest.

I also read similar articles but it seems like most articles is speaking about SSL over HTTP so I don't know if that information can be applied to my scenario which involves connecting to a mail-server (using SMTP, POP3 or perhaps IMAP) using a TELNET-session (which requires SSL as authentication).

However, while googling I found something called "stunnel" which I believe (if I understood it correctly) could be handy (Stunnel - Wikipedia, the free encyclopedia) although I still have to read more about it. I also found this article, related to Windows Mobile : http://www-unix.oit.umass.edu/~mgilbert/S_Imap.txt which seems to be interesting. However, I am unsure if this solution can be implemented using the Net-framework (and then of course Basic4PPC) or if one needs to do something in C++.

As you can see, I am rather confused. This topic is rather advanced for me and unfortunately no easy solutions seem to be available.

rgds,
moster67
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista64 - cannot find .Net Compact Framework 2.0 SteveA Questions (Windows Mobile) 7 02-22-2009 04:39 PM
Framework 2.0 dibesw Italian Forum 2 08-26-2008 02:14 PM
Problem installing .Net Framework 2.0 djmrozinski Questions (Windows Mobile) 1 02-28-2008 09:51 AM
.net Compact Framework 3.0 not recognized by 6.05 m.zielinski Questions (Windows Mobile) 8 02-20-2008 06:03 PM
Configuring SharpDevelop to see the .NET 1.1 and .NET CF 1.0 framework Louis Chit Chat 1 09-16-2007 01:27 PM


All times are GMT. The time now is 07:57 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0