[Mono-dev] Using SslStream
jpros
joaopaulo at ros.bz
Thu May 19 10:12:07 EDT 2011
Sorry for revive this thread, but I'm having the same problem.
I'm using CentOS with mono 2.10.2 as server and Windows XP as client.
My Code
> Socket socket = tcp.AcceptSocket();
> X509Certificate certificado =
> X509Certificate.CreateFromCertFile("dg1.cer");
> ns = new SslStream(new NetworkStream(socket));
> ns.AuthenticateAsServer(certificado);
When the service is going Authenticate it throws the same exception of
Richter's code.
> System.IO.IOException: The authentication or
> decryption has failed. --->
> > Mono.Security.Protocol.Tls.TlsException: Server
> certificate Private Key
I created a certificate by Apple KeyChain but didn't work, after read a lot,
I created a certificate by Mono makecert and I added the certificate to mono
certmgr trust store, but didn't work too.
I don't know what can I do to solve my problem.
Thanks in advance,
João Paulo Ros
--
View this message in context: http://mono.1490590.n4.nabble.com/Using-SslStream-tp1745666p3535805.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list
mailing list