미니옵빠의 code stubs

신뢰하는 인증기관 인증서 목록(keystore)에 없는 remote site의 인증서를 JDK keystore에 추가 본문

Language/Java

신뢰하는 인증기관 인증서 목록(keystore)에 없는 remote site의 인증서를 JDK keystore에 추가

미니옵빠 2017. 9. 19. 15:16

thawte(써트) 인증서는 유료 인증서임에도 불구하고 해당 인증서를 사용하는 URI에 접근 시 아래와 같은 Exception이 발생.

(다 그런지, 일부 인증서만 그런지는 미확인)


Caused by: javax.naming.CommunicationException: simple bind failed: <server-name> [Root 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]


이 경우 아래 URL을 참고하여 해당 machine의 JDK (jre) keystore에 추가해 주면 됨


https://www.lesstif.com/pages/viewpage.action?pageId=12451848