Sometimes you need to install a security certificate for authentication to work for certain services – services that are accessed by your java application that requirement a secure connection. For instance, needing to authenticate against an LDAP server from one of our apps, we had to run a little InstallCert.java on all JDKs used to run the app.
Interesting to me, the InstallCert.java code is found mostly on Sun blogs. But, there you have it. If you have much trouble with the manual process of installing these certificates, there’s a good blog post to help you figure it out.
After multiple updates to my JDK, my biggest problem was not so much that I couldn’t figure out how to do it, but more that I had to do it again and again because the certs were being blown away.
So, here’s a quick python script to help make the process a little more automatic:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
I have only run/tested this in Linux. Make sure that you run this script with the proper user/permissions to write all the needed files. For instance, I have to sudo this because my JDKs are in /usr/lib/…