program

java.security.InvalidAlgorithmParameterException 에러 발생시

littlecarbb 2016. 11. 2. 17:16

OpenJDK를 설치하고 jar 파일을 실행하려던 도중 아래와 같은 에러가 발생하였다.

SSL 연결과 관련된 부분에서 에러가 발생한 것이다. 



Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty





해결방법은 아래 명령으로 인증서를 업데이트 하니 해결되었다. 


sudo update-ca-certificates -f