Exception unable to validate certificate of the target in spring MVC

前端 未结 4 1674
逝去的感伤
逝去的感伤 2021-01-02 09:57

i am trying to get issue details from jira server using my username and password but i am getting an ssl error saying unable to validate certificate

so how to valida

4条回答
  •  情歌与酒
    2021-01-02 10:28

    Check if the file $JAVA_HOME/lib/security/cacerts exists! In my case it was not a file but a link to /etc/ssl/certs/java/cacerts and also this was a link to itself (WHAT???) so due to it JVM can't find the file.

    Solution: Copy the real cacerts file (I did it from another JDK) to /etc/ssl/certs/java/ directory and it'll solve your problem :)

提交回复
热议问题