Spider and SSL

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.

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

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.

This will be fixed in NETMF4.2

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

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

RTM is not GA…

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.

Thank you Guys…

As always the best…

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

I quite trying…after those issues…