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 ]