keystore default password is changeit
1. change folder to $JAVA_HOME/jre/lib/security using user root
# cd $JAVA_HOME/jre/lib/security
2. backup cacerts
3. aquire certificate will be imported as /var/tmp/my-root-cert.cert
4. import it into cacerts
# keytool -import -alias MY-ROOT-CERT -keystore cacerts -file /var/tmp/my-root-cert.cert
5. verify the imported certificate
# keytool -list -v -keystore cacerts
Alias name: my-root-cert
Creation date: 19-Oct-2012
Entry type: trustedCertEntry
Owner: O=MY, C=CA
Issuer: O=MY, C=CA
Serial number: 4eb0261b
Valid from: Tue Nov 01 12:32:27 EDT 2011 until: Sat Nov 01 13:02:27 EDT 2031
Certificate fingerprints:
MD5: 97:F6:B9:70:6B:FA:A6:BD:B9:17:52:77:2E:E7:AC:11
SHA1: D6:CF:7E:5A:BD:6A:76:EF:54:7D:95:B0:EC:4E:80:B1:62:9D:61:A1
or
# keytool -list -v -keystore cacerts -alias my-root-cert
No comments:
Post a Comment