FreeKB - Java keytool command - Export a certificate
Java keytool command - Export a certificate

Home > Search

If you are not familiar with the Java keytool command, check out our Getting Started article.

The export option can be used to export a certificate from a keystore. Some aliases have spaces, so it is usually a good pratice to place double quotes around the alias name.

keytool -export -alias "alias name" -file example.crt -keystore "/path/to/keystore" -storepass "keystore_password"


If the keystore is a pkcs12 / p12 file, include the following option.

-storetype pkcs12

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 64573 in the box below so that we can be sure you are a human.