Hello! I'm using mono 1.9.2 and trying to write a small program using
SslStream. The program runs as server side program.
I found if I write the program as
serverCertificate = X509Certificate.CreateFromCertFile(certificate);
SslStream sslStream = new SslStream(
client.GetStream()
);
sslStream.AuthenticateAsServer(serverCertificate,
false, SslProtocols.Tls, true);
I will get a "Server certificate Private Key unavailable" error.
But if I use SslServerStream provided by Mono.Security and prepare a
pvk file and do as the monodoc says, it works. But certainly the
program won't run in .net framework.
Is it because the developing of SslStream not finished or is it a bug
of SslStream? Is there any way to write a program works with better
compatibility? Thanks.
ÒÔWikiÄ£Ê½´´½¨LinuxÖÐÎÄÎÄµµ£¬»¶Ó­¼ÓÈë
http://www.linux-wiki.cn/