[英]SslStream AuthenticateAsServer failed with “Server certificate Private Key unavailable.” exception on Mono
Basically what I want to do is run the MSDN example about SslStream on Mono. 基本上我想做的是在Mono上运行有关SslStream的MSDN示例。
I keep getting the exception: Exception: The authentication or decryption has failed. 我不断收到异常: 异常:身份验证或解密失败。 Inner exception: Server certificate Private Key unavailable. 内部例外:服务器证书专用密钥不可用。
I assume the code should be fine, and that my problem is certificate/environment related. 我认为代码应该没问题,并且我的问题与证书/环境有关。
I have tried generating self-singed-certificates with both the OpenSsl toolkit and makecert. 我尝试使用OpenSsl工具包和makecert生成自认证证书。 I have also installed those certificates with certmgr in the Trust strof off both the user and the machine. 我还在用户和计算机上的Trust strof中使用certmgr安装了这些证书。
I am out of ideas and have no further clue. 我没有主意,也没有任何线索。 Anyone? 任何人? A step-by-step tutorial would be nice, but anything will be appreciated. 循序渐进的教程将是不错的,但是任何事情都将不胜感激。
Actually I found a solution that was suggested in this answer . 实际上,我找到了此答案中建议的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.