File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to import Self signed Certificate to be used in java program ..???

 
Hassam Khan
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

Can anyone have idea how to import Self-signed certificate? I want to connect a https URL having self-signed certificate. When i tried to hit from program get the following error:

"unable to find valid certification path to requested target"

I have the Certificate file.

Reference link:
http://www.coderanch.com/t/207236/sockets/java/java-io-IOException-HTTPS-hostname

Thanks,
Regards,
Hassam
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Is this a certificate you want to use in the browser as a client certificate, or one you use on the server, so as to enable SSL?

If the latter, that depends on the server. E.g., instructions for Tomcat can be found here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic