Main Site Documentation

Spider and SSL


#1

Hello Guys,
not sure if any of you have tried to use SSL with the spider…so far no luck…

i did the MFDeploy to update teh seed, which was done successfully…
but my code always fails at

  sslStream.AuthenticateAsClient 

see complete code below.
i generated a new cert on my PC and important that to the binaries but no help…i don’t think i should do this step…

i’m trying to send an E-mail using a GMAIL account…

any help is greatly appreciated…

to see the error just copy and past the code in your Network Up event…


           IPHostEntry smtpServerHostEntry = Dns.GetHostEntry("smtp.gmail.com");
                IPEndPoint serverEndPoint = new IPEndPoint(smtpServerHostEntry.AddressList[0],
                                                              "587");
                //// Establish the connection with SMTP Server
                Socket clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
                                                   ProtocolType.Tcp);

                // Connecting
        
                Debug.Print("Connecting to server " + serverEndPoint + ".");
                clientSocket.Connect(serverEndPoint);
                Debug.Print("Connected to server.");
                using (SslStream sslStream = new SslStream(clientSocket))
                {
                    X509Certificate rootCA = new X509Certificate(
                    Resources.GetBytes(Resources.BinaryResources.test));
                   [b] sslStream.AuthenticateAsClient[/b](
                    "smtp.gmail.com");
                     //Sending
                    //byte[] messageBytes = Encoding.UTF8.GetBytes("Hello GMAIL!");
                    //sslStream.Write(messageBytes, 0, messageBytes.Length);
                }

thanks.


#2

There is a known issue with SSL. Check release notes for EMX


#3

Yes it looks like this bug has been there for over a year now…

is this the bug i’m running into now… or that is not even related to my issue?

Is GHI even considering fixing the issue in the near future (meaning the next firmware release)?

just wondering where we are on this, so i know how to plan ahead…

thanks.


#4

This will be fixed in NETMF4.2


#5

…so…
it [italic]is [/italic]fixed, since NetMF 4.2 released last month?
http://netmf.codeplex.com/releases

…or are we waiting for the [italic]GHI [/italic]NetMF 4.2 release?


#6

RTM is not GA…


#7

Released to manufacturing is general availability for Microsoft. This means that Microsoft is finished with the release.

But, GHI needs to verify that all there libraries are compatible with 4.2. The GA/RTM version of the GHI libraries is 1Q12.


#8

Thank you Guys…

As always the best…


#9

Hello @ Jay Jay
Do you succeed to send an e-mail from Gmail using spider ?
This is a very helpful for me :slight_smile:


#10

I quite trying…after those issues…