I'm getting this error all the time while trying to connect to a remote machine's API and I certainly do not need to check it's certificate when connecting.
ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
How can I get rid of this validation? I've set these variables on my JVM:
-Dcom.sun.net.ssl.checkRevocation=false -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
I'm using Java 17, with Maven and using Eclipse Spring Tool Suite 4.