You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 5
Next »
Java keystore
# List what is in keystore
keytool -list -v -keystore /path/to/keystore.jks-storepass keystore_password
# Add certificate (public key) to keystore
keytool -import -alias certificate_alias -file project.crt -keystore /path/to/project.jks -storepass keystore_password
#Export certificate (public key) from keystore
keytool -exportcert -rfc -file export.crt -keystore /path/to/project.jks -alias certificate_alias -storepass keystore_password
# Delete certificate (public key) from keystore
keytool -delete -keystore /path/to/project.jks -alias certificate_alias -storepass keystore_password