wood burning stoves 2.0*
The moose likes Web Services and the fly likes unable to find valid certification path to requested target Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "unable to find valid certification path to requested target" Watch "unable to find valid certification path to requested target" New topic
Author

unable to find valid certification path to requested target

Rafael Angarita
Ranch Hand

Joined: Jan 09, 2009
Posts: 67
Hello,

After running into every possible exception my web services started to work. The last exception I had to deal with was: "unable to find valid certification path to requested target" which I solved doing this : No more Unable to find valid certification path

I was running to web services and a servlet client in my local glassfish server.

Now, I deployed one of my web services to my ubuntu virtual machine. I got again the "unable to find valid certification path to requested target" but I have done everything I did for my local scenario without any success.

I'm getting that exception on my local glassfish (where the servlet client is).

Any idea or advise on how to debug the problem??

Is my local glassfish the one which is not trusting the ubuntu glassfish??

Thank you very much. I'm really confused.


Rafael Angarita.
SCJP 6.
Rafael Angarita
Ranch Hand

Joined: Jan 09, 2009
Posts: 67
I'm trying too add the server's (my glassfish instance running in ubuntu) certificate to my local glassfish truststore by doing this:

keytool -import -trustcacerts -keystore cacerts.jks -storepass changeit -noprompt -file Cert/rafa-laptop.cer

the "unable to find valid certification path to requested target" exception disappears and I get this:




This is the certificate I'm trying to add:

Owner: CN=rafa-laptop, OU=Sun Java System Application Server, O=Sun Microsystems, L=Santa Clara, ST=California, C=US
Issuer: CN=rafa-laptop, OU=Sun Java System Application Server, O=Sun Microsystems, L=Santa Clara, ST=California, C=US
Serial number: 4aff4336
Valid from: Sat Nov 14 19:54:30 VET 2009 until: Tue Nov 12 19:54:30 VET 2019
Certificate fingerprints:
MD5: C823:58:08:40:CB:65:B6:95:9F:95:B1:A7:FE:1B
SHA1: 3A:13:44:44:FA:6B:66:B7:63:7D:68:80:1C:03:7C:82:A0:FA:CB8

Is there something wrong with it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to find valid certification path to requested target
 
Similar Threads
SSL Clarification
javax.net.ssl.SSLHandshakeException
JBoss webservice & ssl
Unable to call webservice over SSL
LDAP Authentication failed due to the following..