我可以在windows中使用ssl:
首先制作证书:
makecert -r -pe -n “CN=TestServer” -ss Root -sky exchange
然后
let store = new X509Store(StoreName.Root)
store.Open(OpenFlags.ReadWrite)
let certs = store.Certificates.Find(X509FindType.FindBySubjectName,"TestServer", false)
let x509 = certs.[0]
let sslStream = new SslStream(client.GetStream(), false)
sslStream.AuthenticateAsServer(x509, false, SslProtocols.Tls, true);
现在我可以使用tls连接
我想知道如何在linux上的mono上编写相同的代码?