You are here: Home Cheat Sheets Java Snippets

Java Snippets

Little tidbits of things Java

Adding a Certificate Authority to the Java Keystore

This took me a while to try and figure out, until Jupin showed me how.

sudo keytool -importcert -trustcacerts -file ~/tmp/certs/ca.cer \
             -keystore /usr/java/default/jre/lib/security/cacerts
Enter keystore password:
The default password is 'changeit'. Replace /usr/java/default with your $JDK_HOME and ~/tmp/certs/ca.cer with the certificate you want to import.

 

Document Actions

Copyright © 2007-2015 Mario Theodoridis. All rights reserved. Content licensed under AFL.   Impressum   Datenschutz
Content from the underlying Plone CMS is © 2000-2009 by the Plone Foundation