I have a class that will download a file from a https server. When I try to run it, unfortunately it returns a lot of errors. It guess I have a problem with my own certificate. Is it possible to ignore the client-server authentication? If so, how?
The problem mainly occurs when your server has self signed certificate. To workaround it you can add this certificate to the list of trusted certificates of your JVM.
You can either edit JAVA_HOME/jre/lib/security/cacerts file or run you application with -Djavax.net.ssl.trustStore parameter. Verify which JDK/JRE you are using too as this is often a source of confusion.
This topic was automatically closed after 180 days. New replies are no longer allowed.