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.