Requirements:
- Have keytool installed (Installed as a part of the jre)
- Have your certificate local (either pem or der format)
- Know where your keystore is
/usr/java/jre1.7.0/bin/keytool -importcert -trustcacerts -noprompt \ -alias custom-root-ca \ -storepass changeit \ -file /etc/ssl/certs/CERT.pem \ -keystore /usr/java/jre1.7.0/lib/security/cacerts