Mono.Security.Protocol.Tls.TlsException:从服务器收到的证书无效

时间:2015-03-04 23:48:07

标签: c# linux ssl tcp mono

我试图在TCP套接字上使用TLS,而C#项目假设在Mono上运行。

在Windows上,项目运行得很好。在Mono上的Linux上,发生以下错误:

System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server.

我尝试使用mozroots导入根证书,但除了Godaddy之外,每个人都获得了证书。

那么如何手动导入Godaddy CA证书以及我应该导入哪些证书以及哪些商店以避免此错误并连接到TCP服务器? (根证书可以在这里找到https://certs.godaddy.com/repository/

谢谢! Gutemberg

0 个答案:

没有答案
相关问题