SSL/HTTPS Certificate Help
Hello,
I didn't know whcih section to post this in on the site. I was hoping that there was a java security page. Anyway, I'm building a small java program for automation. The site requires a login but is also SSL/HTTPS. I can parse the web-page initially, but I don't know how to code the program to save certificates so that I can use them to authenticate against the https site... could anyone help with this? If you need clarification and more vivid detail, let me know.
Thanks,
dlopez
Re: SSL/HTTPS Certificate Help
well in order to work with SSL certificate from Java program, your keystore (located in JRE/lib/security) directory must have those certificate well in advance. you can either manually or programatically by using InstallCert.java class, add those certificate in keystore. Some time back I have written a post on How to add or list certificates from keystore or trustStore in Java - Keytool Example, you can check that if it helps.
Re: SSL/HTTPS Certificate Help
Thanks for that. I will check that out and see what I can come up with... I tried to manually put the key in the key store (via cmd prompt). However, it wouldn't take. On the business machine, I only have the JRE installed. I'm not for sure if that would be the issue, or not. I'm not as familiar with JAVA as I am with other languages...