Saturday, December 5, 2015

Trust CA certificate in Java JDK on Mac OS X 10.11

Replace jdk1.8.0_66.jdk with your JDK version. You will need to run this for each major version you have installed (1.7, 1.8, etc.).

cd /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/lib/security/
cp cacerts cacerts.bak
sudo keytool -importcert -file myca.crt -keystore cacerts

Thank http://blog.alwold.com/2011/06/30/how-to-trust-a-certificate-in-java-on-mac-os-x/

No comments: