The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure

最近发现C#读取某office 365邮箱时,log中报这个错,还是公司老司机给了解决方案。

1. 首先找到邮箱登录网址或者相关的网址,进入浏览器,然后可以查看证书(这里以百度为例):

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure_第1张图片

2. 将证书下载到本地某目录

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure_第2张图片

3. 找到管理计算机证书

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure_第3张图片

4. 在空白处点击右键,所有任务 -> 导入,将之前的证书导入,不需要重启,关闭页面会自动保存

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure_第4张图片

5. 之后再尝试之前的软件操作,应该就不会出现这个问题啦,如果再出现,那就不是我能搞定的啦,hh

 

你可能感兴趣的:(环境部署,邮箱证书,SSL/TLS,secure)