Showing posts with label https. Show all posts
Showing posts with label https. Show all posts

10 Feb 2009

How to install HTTPS Certificate at Java environment

To install an HTTPS certificate to be used by a Java application, using Java 6 we can use the following procedure:

$JAVA_HOME/bin/keytool -import -trustcacerts -alias [THE CERTIFICATE ALIAS] -file [THE CERTIFICATE FILE] -keystore $JAVA_HOME/lib/security/cacerts

Note: the default password for 'cacerts' is 'changeit'