본문 바로가기
메모메모

[IT] SunCertPathBuilder Exception : unable to find valid certification path to request target 기록

by Traby. 2023. 3. 21.

 

Java app에서 https 요청 시, 현재 프로그램 / 서버 측의 유효한 인증서를 확인하지 못하는 문제였다.

 

인증서를 추가하면 된다.

(1) 현재 사용중인 사내 인증서를 확인하고

(2) jdk 경로의 lib/security/cacerts에 적용해줘야한다.

이건 

keytool 커맨드를 이용해서, 다운로드한 파일을 cacert에 저장하는 느낌이다.

 

https://velog.io/@won2oppa/빌드-에러-대처법-Unable-to-find-valid-certification-path-to-requested-target

댓글