...
펼치기 |
---|
- Check a stand-alone certificate
keytool -printcert -v -file mydomain.crt - Check which certificates are in a Java keystore
keytool -list -v -keystore keystore.jks - Check a particular keystore entry using an alias
keytool -list -v -keystore keystore.jks -alias mydomain
|
Export a cert from one keystore to another as a trusted CA cert
펼치기 |
---|
- Export the cert from the first keystore (it can be a cert/key pair or a trusted CA cert)
keytool -exportcert -rfc -keystore keystore1.jks -storepass changeit -alias aliastoexport -file aliastoexport.pem
- Import the cert into the second keystore
keytool -importcert -file aliastoexport.pem -keystore keystore2.jks -storepass changeit -alias aliastoexport -trustcacerts -noprompt
|
Other Java Keytool Commands
...