Solutions Log

Add Certificate to Java Keystore

1 min read
java

Resolution

This is something I find myself doing annually and always need to look it up. I am putting this here to save me a few searches.

sudo keytool -importcert -alias dev -file certfile.cer -keystore /Library/Java/Home/lib/security/cacerts

The password will either be changeme or changeit

References