Advertisement

05.08.2008 at 09:28AM PDT, ID: 23386706
[x]
Attachment Details

SSL HandshakeException - Can't establish an HTTPS connection with Java

Asked by SteveJ in Java Programming Language, WebApplications

Tags: java https certificate

I have a program that attempts to make an SSL /HTTPS connection but it returns the following java exception:

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 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
 
Loading Advertisement...
 
[+][-]05.08.2008 at 09:34AM PDT, ID: 21526240

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 09:49AM PDT, ID: 21526394

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 10:14AM PDT, ID: 21526603

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 10:24AM PDT, ID: 21526686

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Programming Language, WebApplications
Tags: java https certificate
Sign Up Now!
Solution Provided By: CEHJ
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.08.2008 at 01:32PM PDT, ID: 21528204

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906