This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Security and the fly likes How to import Self signed Certificate to be used in java program ..??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "How to import Self signed Certificate to be used in java program ..???" Watch "How to import Self signed Certificate to be used in java program ..???" New topic
Author

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

Hassam Khan
Greenhorn

Joined: Dec 21, 2006
Posts: 3
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
Marshal

Joined: Mar 22, 2005
Posts: 41630
    
  55
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to import Self signed Certificate to be used in java program ..???