How to Create SslStream for a non-blocking async socket

后端 未结 1 646
臣服心动
臣服心动 2021-01-13 15:17

I have a multi threaded async System.Net.Socket which listens on a port. I don\'t have any problem if I get a request from HTTP, but recently I had to add https

相关标签:
1条回答
  • 2021-01-13 15:42

    You should probably use X509Certificate2 instead of X509Certificate. It could be the only step required to resolve this error.

    X509Certificate2 has a member for the private key, unlike X509Certificate, and the SSL socket needs the private key to do its job.

    0 讨论(0)
提交回复
热议问题