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'
2 comments:
cheers for this i have had lots of problem with any java app accessing https, this must be the problem. Why does java not download the HTTPS Certificates?
I guess it would be a security issue to automatically download and install the certificates without notifying the user.
Post a Comment