I have a program that attempts to make an SSL /HTTPS connection but it returns the following java exception:
javax.net.ssl.SSLHandshake
Exception:
sun.security.validator.Val
idatorExce
ption:
PKIX path building failed: sun.security.provider.cert
path.SunCe
rtPathBuil
derExcepti
on: unable to find valid certification path to requested target
So I downloaded a program from the Sun/Java site called "InstallCert.java" that retrieves the certificate from the URL supplied at the command line and then installs it. I compiled and ran the InstallCert program and it installed a certificate in my c:\work\java\class directory which is where I ran the InstallCert program from. Yet I still receive the message posted above leading me to believe that the installed certificate isn't where it is supposed to be. If that's the case, where should it be? I cant figure out where java is looking by default to find the certificates I have.
Any ideas?
Start Free Trial