wood burning stoves 2.0*
The moose likes Security and the fly likes unknown certificate error. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "unknown certificate error." Watch "unknown certificate error." New topic

unknown certificate error.

shyam ramineni
Ranch Hand

Joined: Jul 08, 2005
Posts: 43

I am trying to invoke a webservice which published on https://URL.
I have code a stand alone java program as a client.

I am getting javax.net.ssl.SSLHandshakeException : unknown certificate error.

Please let me know the solution for this.
I am having the Trust, and Key .jks files for the client from the server.
But not able add the certificate to cacerts file.

shyam Ramineni

<a href="http://hyderabaditeducation.com" target="_blank" rel="nofollow">http://hyderabaditeducation.com</a>
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
You didn't post much detail of your code, but have you set any of the following system properties:

[ April 06, 2006: Message edited by: James Swan ]
shyam ramineni
Ranch Hand

Joined: Jul 08, 2005
Posts: 43

Got the issue resolved.

I had to import the certificate file from the https:// location to my keystore.

Shyam Ramineni
I agree. Here's the link: http://aspose.com/file-tools
subject: unknown certificate error.
Similar Threads
Unable to get security certificates from HTTPS Server
Access HTTPS url in Applet
CA Certificates
Failed to access the WSDL
Using multiple X509 certificates for different URLs