본문 바로가기
project

javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

by setung 2021. 12. 23.

ubuntu환경인 서버에 spring boot 프로젝트를 배포하고 실행하는 작업에서 아래와 같은 에러가 발생했다.

javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

구글링을 통해 원인을 찾아보니 ubuntu에 open-jdk를 설치를 하면 $JAVA_HOME/lib/security 경로에 cacerts 파일이 없기 때문이란 것을 알게 되었다.

 

정확한 해결책을 못 찾았지만 나의 로컬에 있는 cacerts 파일을 ubuntu 서버에 그대로 복사하여 해결은 하였다.

cacerts이 무엇인지 왜 필요한지 알아봐야겠다.

댓글