• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to make JDK trust a Certificate

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


How to copy a certificate to your disk?

1.Hit the HTTPS URL, it would pup up a Security Alert window - that means browser doesn�t trust the certificate that site has.

2.Click on View Certificate button on that window.

3.Click on Install Certificate�.

4.Follow the default options and finish the task.

5.Go to Tools -> Internet Options -> Content -> Certificates�.

6.You can see recently installed certificate in Immediate Certificate Authority tab.

7.Select the certificate you want to export and click on Export....

8.Follow the default options, give the name & location for the cer file and save it at your disk.


How to make a certificate trusted by JDK?

1.To make a certificate trusted by a JDK, it has to added to JRE�s trust keystore.

2.To view the trusted certificate list, go to JRE�s security folder (jre1.5.0_06\lib\security) and issue following command: keytool -list -keystore cacerts.

3.To add a certificate in this list: keytool -import -alias mycert -keystore cacerts -file d:\mycert.cer.

4.The default password for cacerts is changeit.




Also available at: http://ankurrathi.googlepages.com/trustingacertificate.

Let me know your feedback.
[ September 09, 2008: Message edited by: ankur rathi ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic