UI path:远程证书,根据验证程序是无效的

问题描述 投票:0回答:2

当我试图使用SMTP,如下图所示它抛出错误发送邮件。

来源:发送SMTP邮件。

消息:远程证书根据验证过程是无效的。

异常类型:System.Security.Authentication.AuthenticationException。

我尝试以下解决方案来解决。

禁用防病毒。从我的Gmail帐户允许不够安全的应用。

我已阅读以下UI路径话题,但我没有找到链接,下载可信证书。

The remote certificate is invalid according to the validation

Remote Certificate Is Invalid - UiPath

ssl smtp uipath
2个回答
0
投票

Windows维护在认证目录的可信CA,你可以阅读更多关于here。服务器的证书是自签名或证书颁发机构是不是你的认证目录的部分(解决信任的全产业链)。

既然你提到的Gmail - 这是相当不寻常的,因为谷歌信托服务由全球注册信任,全局登录通常是CD的一部分。下面是(经由端口465 SMTP)所需的证书的Gmail的示例:

lynxvvv:~ wolfgangradl$ openssl s_client -connect smtp.gmail.com:465 -showcerts
CONNECTED(00000006)
depth=2 OU = GlobalSign Root CA - R2, O = GlobalSign, CN = GlobalSign
verify return:1
depth=1 C = US, O = Google Trust Services, CN = Google Internet Authority G3
verify return:1
depth=0 C = US, ST = California, L = Mountain View, O = Google LLC, CN = smtp.gmail.com
verify return:1
---
Certificate chain
 0 s:/C=US/ST=California/L=Mountain View/O=Google LLC/CN=smtp.gmail.com
   i:/C=US/O=Google Trust Services/CN=Google Internet Authority G3
-----BEGIN CERTIFICATE-----
MIIEgjCCA2qgAwIBAgIII4WYR6PlomgwDQYJKoZIhvcNAQELBQAwVDELMAkGA1UE
(...)

您可以随时下载和安装一个定制的证书进店,here's an excellent article from Super User。如果我们谈论的Gmail,那么你可以从Google directly得到它们。


0
投票

验证下面的链接。首先,我们需要禁用防病毒。

https://forum.uipath.com/t/the-remote-certificate-is-invalid-according-to-the-validation/37727/3

© www.soinside.com 2019 - 2024. All rights reserved.