SslStream.AuthenticateAsClient Issue (Microsoft.SPOT.Net.Security class)
#1
Posted 07 December 2010 - 12:39 AM
When i tried to run the following i got an exception:
// Get server's IP address.
IPHostEntry hostEntry = Dns.GetHostEntry(this.Host);
// Create socket and connect to the server's IP address and port
socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
socket.Connect(new IPEndPoint(hostEntry.AddressList[0], this.Port));
SslSet = new SslStream(socket);
SslSet.AuthenticateAsClient(this.Host, SslProtocols.SSLv3); <-- Error occured on this line.
The error:
#### Exception System.NotSupportedException - CLR_E_NOT_SUPPORTED (4) ####
#### Message:
#### Microsoft.SPOT.Net.Security.SslStream::Authenticate [IP: 0051] ####
#### Microsoft.SPOT.Net.Security.SslStream::AuthenticateAsClient [IP: 000c] ####
#### Microsoft.SPOT.Net.Security.SslStream::AuthenticateAsClient [IP: 0009] ####
#### DoorBuzzer.SmtpClient::Send [IP: 008e] ####
#### DoorBuzzer.Program::SendDoorRingNotification [IP: 0070] ####
#### DoorBuzzer.Program::DoorBellPort_OnInterrupt [IP: 001a] ####
A first chance exception of type 'System.NotSupportedException' occurred in System.Net.Security.dll
A first chance exception of type 'System.NotSupportedException' occurred in System.Net.Security.dll
Am I doing something wrong or will SSL never really work on the Netduino Plus?
Thanks in advance...
#2
Posted 07 December 2010 - 01:06 AM
#3
Posted 07 April 2011 - 06:40 PM
http://diybrewery.com
#4
Posted 07 April 2011 - 08:42 PM
#5
Posted 10 August 2011 - 06:01 PM
#6
Posted 10 August 2011 - 07:53 PM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#7
Posted 10 August 2011 - 08:38 PM
#8
Posted 23 August 2011 - 09:47 PM
#9
Posted 24 August 2011 - 07:26 AM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#10
Posted 07 September 2012 - 08:44 AM
As far as I know the Netduino still has no SSL stack. Perhaps Chris could confirm this.
I tired it today with Netduino plus and MF 4.2 but there is still no support. Would have been nice to know this before I purchased it... (as ethernet is rather useless without SSL) - Are there any other limitations (that are also not listed on http://www.netduino....oplus/specs.htm).
#11
Posted 07 September 2012 - 09:05 AM
#12
Posted 07 September 2012 - 09:07 AM
I tired it today with Netduino plus and MF 4.2 but there is still no support. Would have been nice to know this before I purchased it... (as ethernet is rather useless without SSL) - Are there any other limitations (that are also not listed on http://www.netduino....oplus/specs.htm).
I have to disagree a bit. In my opinion ethernet isn't necessarily useless w/o SSL. I agree it would be a nice feature, but it just won't fit the devices memory.
Also, it's not common to list limitations. Instead features are listed. You won't be able to stream 1080p videos with a Netduino Plus too, for example. In my opinion that's obvious. The processor speed and RAM just won't allow it.
Depending on your application maybe other security measurements could be used, instead of SSL?
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#13
Posted 07 September 2012 - 09:34 AM
I have to disagree a bit. In my opinion ethernet isn't necessarily useless w/o SSL.
If you want to do something that requires login or to send data over public networks (aka Internet) you should encrypt it. And the webservice that i wanted to use only allows https-secured connections...
Also, it's not common to list limitations. Instead features are listed. You won't be able to stream 1080p videos with a Netduino Plus too, for example. In my opinion that's obvious. The processor speed and RAM just won't allow it.
I think that's a bit different as .Net Micro supports SslStream.AuthenticateAsClient but the Netduino throws a NotSupportedException. :net Micro doesn't promise to show video at all.
#14
Posted 07 September 2012 - 10:52 AM
#15
Posted 01 July 2013 - 02:19 PM
Hello,
I am new to all of this and I cannot find source code that actually works without flaw. I have to figure out how to send an emil via ethernet with the .netmf. I downloaded the http://netmftoolbox.codeplex.com/ toolbox and now I am stuck. using VS 2010. please help. my knowledge is very limited so please have patience. thank you
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users