“unable to find valid certification path to requested target”, but browser says it's OK

后端 未结 1 824
萌比男神i
萌比男神i 2020-12-12 21:02

I\'m developing a Java application that connects to SOAP services exposed at https://ut.eurodw.eu/ (test environment for European Datawarehouse). I\'m working on my developm

相关标签:
1条回答
  • 2020-12-12 21:53

    The different certificates can be found in the following keystore :

    %JAVA_HOME%/jre/lib/security/cacerts

    If you want to list the trusted certificates :

    keytool -list -keystore %JAVA_HOME%/jre/lib/security/cacerts
    

    The password is optionnal to list.

    If you want to add an entry :

    First, export the certificate to import, let's say it will be c:\cert.crt. The best way to do it is using firefox, right click on the lock picture in the url, and after a few clicks, you have an export feature.

    Then type :

    keytool -import -alias my-cert -file c:\cert.crt -keystore %JAVA_HOME%/jre/lib/security/cacerts
    

    The password is : changeit

    The alias being a user defined label, choose it wisely, to remember if you need it one day, what it was.

    With all this, you should be able to trust the certificate and have everything working again.

    0 讨论(0)
提交回复
热议问题