我已经在 Tibco BW 中创建了使用已发送邮件调色板的流程。 我已经使用 s_client -showcerts -connect smtp.gmail.com:587 -starttls smtp 下载了 gmail 证书 并在已发送邮件调色板中配置证书 我收到错误-
BW-MAIL-100019 Job-178001 Error in [Process/BloodRequest.process/Send Mail] Error sending mail message. Cause: javax.mail.MessagingException: Could not convert socket to TLS; nested exception is: iaik.security.ssl.SSLException: Server certificate rejected by ChainVerifier
有人知道 Tibco BW 中的证书错误吗?
最佳答案
看起来您缺少一些根证书。 我怀疑您试图替换示例项目中的证书 https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-37939有过时的证书。
代替
openssl s_client -showcerts -connect smtp.gmail.com:587 -starttls smtp
您可以从谷歌网站找到/下载谷歌证书https://pki.goog/ . 列表中的第一个证书 https://pki.goog/gtsr1/GTSR1.crt对我有用。
请注意,修复证书后出现以下错误:
BW-MAIL-100019 Job-34000 Error in [Mail/SendMail.process/Send Mail]
Error sending mail message. Cause: javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials y23sm10913598iob.28 - gsmtp
只有在设置“允许安全性较低的应用:开启”后我才能发送电子邮件 https://myaccount.google.com/u/3/lesssecureapps?pli=1在 Google 帐户设置中
以防万一这里有其他可能的 javax.mail.AuthenticationFailedException 原因: JavaMail with Gmail: 535-5.7.1 Username and Password not accepted
关于ssl - TIBCO SMTP 发送邮件配置-证书问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58040194/