Hi Jon,

 

      I've used these commands to create & import my server.crt file to
cacerts and executed my program, but I'm still getting the same
exception "unable to find valid certification path to requested target"

 

Anything else I have to do?

 

%JAVA_HOME%\bin\keytool -delete -alias tomcat -keypass changeit

%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keypass changeit -keyalg
RSA

%JAVA_HOME%\bin\keytool -export -alias tomcat -keypass changeit  -file
server.crt

%JAVA_HOME%\bin\keytool -import -file server.crt -keypass changeit
-keystore %JAVA_HOME%/jre/lib/security/cacerts

%JAVA_HOME%\bin\keytool -import -file server.crt -keypass changeit

 

Thanks

Raghu

 

-----Original Message-----
From: Jon Horsman [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 04, 2007 2:21 PM
To: [email protected]
Subject: Re: Client connection options

 

On 6/4/07, Raghu Upadhyayula <[EMAIL PROTECTED]> wrote:

> Jon,

> I'm getting the "unable to find valid certification path to requested
target"

> exception when trying to access my web service using https

> 

> From your email it looks like you were able to get this working and
you

> are looking for something else.

> 

> Can you please let me know what changes should I be doing for this to
work?

 

Hey Raghu, figured i'd post back on the list since it can be searched

by someone later, hopefully that is ok with you...

 

Anyways, i can't comment on your actual program since i've still a new

with axis and have never tried to use SSL before.  I can tell you how

i got mine working though.

 

Pretty much all i did was import my cert using keytool, as follows

$JAVA_HOME/bin/keytool -import -trustcacerts -alias "your_alias" -file

/path/to/server.crt -keystore $JAVA_HOME/lib/security/cacerts

 

This got rid of the "unable to find valid certification path to

requested target" exceptions and my webservice seems to work as

expected.

 

For my application though i can't be messing around with certs as it

will be a pain to deploy in the field, which is why i need to simply

tell axis to trust all certs.

 

Hope this helps.

 

Jon.

Reply via email to