If you’ve ever had to add a SSL certificate to a java keystore, you know that the command is a little convoluted. Here for your and my reference is the command…
"D:\Program Files\Java\jre1.5.0_22\bin\keytool" -import -trustcacerts -alias MyCA2 -file C:\MyCA2.crt -keystore "D:\Program Files\Java\jre1.5.0_22\lib\security\cacerts"
When promoted for the password, the default is “changeit”, and make sure to choose/type “yes” when asked if you want to trust the cert.
Please remember to subscribe to the newsletter or feed to stay up to date!Disclaimer: Thoughts and opinions are my own, and do not reflect the views of any employer, family member, friend, or anyone else. Some links may be affiliate links, but I don't link to anything I don't use myself.