从服务器收到的证书无效.错误代码:0xffffffff800b010a单声道 [英] Invalid certificate received from server. Error code: 0xffffffff800b010a Mono

查看:153
本文介绍了从服务器收到的证书无效.错误代码:0xffffffff800b010a单声道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试使用具有SSL的端口587通过我的应用程序通过Mono发送消息,smtp.gmail.com并获取:

I'm trying to send a message in Mono througth my application using the port 587 with the SSL, smtp.gmail.com and get:

System.Net.Mail.SmtpException:无法发送消息. ---> System.IO.IOException:身份验证或解密失败. ---> System.IO.IOException:身份验证或解密失败. ---> Mono.Security.Protocol.Tls.TlsException:无效 从服务器收到的证书.错误代码:0xffffffff800b010a

System.Net.Mail.SmtpException: Message could not be sent. ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a

最有趣的是,这一周一切正常,并且消息已发送.现在我弄错了. 我也尝试了mozroots --import,但没有帮助.我也更新了证书GoogleInternetAuthorityG2.crt,但这没有帮助.

The most interesting is that that week everything worked and the messages were sent. Now I get a mistake. Also I tryed mozroots --import but it doesnt help. Also I updated certificate GoogleInternetAuthorityG2.crt but and this doesnt help.

带有Mono 4.6.2(稳定版4.6.2.7/08fd525)的Ubuntu 16.04

Ubuntu 16.04 with Mono 4.6.2 (Stable 4.6.2.7/08fd525)

推荐答案

支持更多加密算法的新TLS堆栈,请升级.

Mono 4.8 or higher brings a new TLS stack that supports many more encryption algorithms, please upgrade.

这篇关于从服务器收到的证书无效.错误代码:0xffffffff800b010a单声道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆