Исключение Spring LDAP TLS / SSL: сбой при создании пути PKIX: невозможно найти действительный путь сертификации для запрошенной цели - PullRequest
0 голосов
/ 16 сентября 2011

Сбой подключения к серверу LDAP через TLS, за исключением

org.springframework.ldap.UncategorizedLdapException: Failed to negotiate TLS session; 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
at org.springframework.ldap.core.support.AbstractTlsDirContextAuthenticationStrategy.processContextAfterCreation(AbstractTlsDirContextAuthenticationStrategy.java:155)
at org.springframework.ldap.core.support.AbstractContextSource.getContext(AbstractContextSource.java:109)
at org.springframework.ldap.core.support.AbstractContextSource.getReadOnlyContext(AbstractContextSource.java:125)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:287)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:259)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:571)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:556)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:411)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:431)

Я проверил соответствующие сертификаты, присутствующие в моем хранилище ключей, и импортировал отсутствующие, как описано в Ошибка построения пути PKIX при установлении соединения SSL , однако я все еще получаю исключение. Есть идеи?

Спасибо

Nigel

1 Ответ

0 голосов
/ 26 сентября 2011

Проблема с сертификатами, созданными серверами LDAP, это было проверено, и теперь проблема решена.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...