C# SSL server mode must use a certificate with the corresponding private key

后端 未结 1 1548
自闭症患者
自闭症患者 2021-01-05 00:30

I\'m going to learn how to handle HTTPS traffic in C# as server-side and as for the first steps I\'ve got some troubles.

Here is some code ( http://pastebin.com/C4ZYr

相关标签:
1条回答
  • 2021-01-05 00:48

    All is fine, the answer is to use X509Certificate2 class instead of X509Certificate.

    And to add to the trust list your created certificate.

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