728x90
웹로직에 SSL을 추가했음에도 불구하고 로그에 다음과 같은 메시지가 나타나는 현상이 있다.
Exception in thread "Main Thread" 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 ... Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target |
이는 사설 SSL을 사용하려 할 때, 위 인증서가 JAVA의 신뢰하는 인증서 목록에 등록되어 있지 않아 접근이 차단되는 현상이다.
위 문제는 다음과 같이 해결할 수 있다.
1. 사용하고자 하는 jks 파일의 keytool 확인
{JAVA_HOME}/bin/keytool -list -v -keystore ${JKS_PATH}/identity.jks |
2. 위 jks 파일에서 root cer 파일 추출
{JAVA_HOME}/bin/keytool -export -alias ${개인 키 별칭 이름} -file root.cer -keystore ${JKS_PATH}/identity.jks |
3. root cer 파일을 cacerts에 등록
{JAVA_HOME}/bin/keytool -import -trustcacerts -keystore $JAVA_HOME/jre/lib/security/cacerts -alias ${ALIAS} -file root.cer |
3번 시 default password는 changeit 이다.
(참고 : https://www.lesstif.com/system-admin/java-validatorexception-keystore-ssl-tls-import-12451848.html)
728x90
'Oracle > TroubleShooting' 카테고리의 다른 글
Too may open files (0) | 2023.02.28 |
---|---|
weblogic Servlet annotation 관련 이슈 (0) | 2023.02.03 |
WebLogic JDK 7에서 8로 업그레이드 후 TLS 관련 (0) | 2022.12.14 |
Waiting on Condition (0) | 2022.11.21 |
WebLogic console 404 error (0) | 2022.11.14 |