Добрый день!
Хотел почту через SSL прикрутить, как в доке
https://docs.bitel.ru/pages/viewpage.action?pageId=43384879При отправке почты получаю в логе:
Код:
server 04-01/22:31:25 ERROR [https-jsse-nio-0.0.0.0-8443-exec-10] LoggingPrintStream - javax.mail.MessagingException: Could not connect to SMTP host: 11.22.33.44, port: 465;
nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCe
rtPathBuilderException: unable to find valid certification path to requested target
server 04-01/22:31:25 ERROR [https-jsse-nio-0.0.0.0-8443-exec-10] LoggingPrintStream - at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.jav
a:1986)
Сертификат на почте самоподписанный.
Добавил его в .keystore - не помогло.
Может кто-нибудь сталкивался - как победить это?