无法在Keycloak中使用Gmail SMTP

时间:2018-09-13 04:47:30

标签: smtp keycloak

当我尝试在本地密钥库实例上配置电子邮件时。

host - smtp.gmail.com
port - 587
username - ***@gmail.com
enableSSL - false
enableStartTLS - true
enable Authentication - true
Authentication - enabled with username and password 

我遇到以下异常:

Caused by: javax.mail.MessagingException: Could not convert socket to TLS;
 nested exception is:
  javax.net.ssl.SSLHandshakeException: 
   sun.security.validator.ValidatorException: PKIX path building failed: 
   sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

基于该问题的答案:Javamail Could not convert socket to TLS GMail

我正在尝试使用

standalone.bat -Dmail.smtp.ssl.trust=smtp.gmail.com

但是,它不起作用。

0 个答案:

没有答案