Я импортировал в хранилище доверенных сертификатов cacerts, используемое приложением, сертификат, который имеет псевдоним DNS в поле SAN:
Код: Выделить всё
#8: ObjectId: 2.5.29.17 Criticality=false
SubjectAlternativeName [
DNSName: dns.alias.com
]
Код: Выделить всё
Connection test failed. Response from the server:
dns.alias.com:636; nested exception is javax.naming.CommunicationException: dns.alias.com:636 [Root exception is javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching dns.alias.com found.]
Подробнее здесь: https://stackoverflow.com/questions/791 ... on-no-subj