[SOLVED] Unable to find valid certification path to requested target

Error added: 2022-11-18T09:23:33Z

0 people waiting for the answer...

1 answers found.

Answer 2730 (100.0% helpful)

Your JVM doesn't have the correct CA certificate in cacerts, (possibly because your company is performing Man in the Middle proxying, and is generating its own certificates)
Get the right CA cert from the target server.
Find out what JVM you are actually using (you might have more than one - IntelliJ bundles one with its software for example).
Run the keytool command to add the CA cert to the cacerts file. The command will be something like this on Linux
keytool -importcert -keystore /usr/local/java/jdk1.8.0_60/jre/lib/security/cacerts -storepass changeit -file ~/Downloads/cert_file.crt -alias "root_cert"
Restart the software

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.

Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: