jQuery in Action, 2nd edition*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "unknown certificate error." Watch "unknown certificate error." New topic
Author

unknown certificate error.

shyam ramineni
Ranch Hand

Joined: Jul 08, 2005
Posts: 43
Hi,

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.

Thanks
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
Hi,

Got the issue resolved.

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

Thanks
Shyam Ramineni
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unknown certificate error.