Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?

后端 未结 22 2314
名媛妹妹
名媛妹妹 2020-11-21 05:59

Edit :- Tried to format the question and accepted answer in more presentable way at mine Blog

Here is the original issue.

22条回答
  •  有刺的猬
    2020-11-21 06:03

    My cacerts file was totally empty. I solved this by copying the cacerts file off my windows machine (that's using Oracle Java 7) and scp'd it to my Linux box (OpenJDK).

    cd %JAVA_HOME%/jre/lib/security/
    scp cacerts mylinuxmachin:/tmp
    

    and then on the linux machine

    cp /tmp/cacerts /etc/ssl/certs/java/cacerts
    

    It's worked great so far.

提交回复
热议问题