UI路径:根据验证过程,远程证书无效

时间:2019-02-01 07:49:00

标签: ssl smtp uipath

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

来源:发送SMTP邮件。

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

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

我尝试了以下解决方案。

已禁用防病毒。 从我的gmail帐户允许的安全性较低的应用程序。

我已经阅读了“ UI路径”主题下的内容,但是没有找到下载受信任证书的链接。

The remote certificate is invalid according to the validation

Remote Certificate Is Invalid - UiPath

2 个答案:

答案 0 :(得分:0)

Windows在“证书目录”中维护其受信任的CA,您可以阅读有关该here的更多信息。服务器的证书是自签名的,或者证书颁发机构不属于您的证书目录(解决了整个信任链)。

自从您提到Gmail以来,这很不常见,因为Google Trust Services受Global Sign信任,并且Global Sign通常是CD的一部分。这是Gmail所需证书(通过端口465的SMTP)的示例:

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那里获得它们。

答案 1 :(得分:0)

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

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