I'm written a program in Java that logs me into a website and gathers some information. This website has a self-signed cert and it’s obviously not trusted. When I run my program I started getting this error:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
So I downloaded the cert and imported it into the default truststore that java uses, then it ran fine in Eclipse. But when I run the program from Windows CMD I get the same error again, I already trusted it in the windows cert store (certmgr.msc). I am not sure where else to trust it to get this program to work from windows command line?