0
我想註冊後發送電子郵件通知時轉換連接到SSL:無法,我根據有關配置電子郵件jhipster文檔萬物發送電子郵件jhipster
mail:
host: smtp.gmail.com
port: 587
username: *******@gmail.com
password: *****
protocol: smtp
tls: true
properties.mail.smtp:
auth: true
starttls.enable: true
ssl.trust: smtp.gmail.com
根據計算器上我允許谷歌帳戶的另一個問題與安全性較低的應用程序連接,但儘管如此,我得到異常:
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Unable to convert connection to SSL (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). Failed messages: javax.mail.MessagingException: Unable to convert connection to SSL (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)
我應該怎麼做來解決這個問題?
預先感謝您。
是的,我沒有證書。如何生成它? – Ice
既然你使用JHipster,我建議你看看下面的鏈接:https://stackoverflow.com/questions/29522114/how-to-add-self-signed-ssl-certificate-to-jhipster-sample-app –
另外:https://jhipster.github.io/tips/007_tips_enforce_https.html –