Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have some Java code running that has to open a https page and fetch data, which has been running for the last 7-8 years. The only thing i do once every 2 years is to update the certificate in Java. In May the certificate was updated on the page, which i have updated locally afterwards, but suddenly something has gone completely wrong.

I currently run JRE6 but in my desperate attempt to see if Java was borked i installed JRE7 and reinstalled the certificate, but without any luck at all.

The exception is:

sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I have checked the cacerts file and it has the certificate which is neccessary. Furthermore i have even tried to insure myself by using InstallCert.java utility, but it verified that i have been using the correct certificate all along. I contacted the page owner and they had not heard of any unusual problems with their certificate.

So basically, what or which procedure havent i tried?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.