keytool -export

Description

Export a certificate from a keystore.

Command
keytool -export
Examples
Export certificate
keytool -export -alias mykey -file mycert.crt -keystore keystore.jks
Export in RFC format
keytool -export -alias mykey -file mycert.crt -keystore keystore.jks -rfc
Parameters
Parameter Type Required Description
-alias string No Alias name for the certificate entry
-file string No Output certificate file
-keystore string No Keystore location
-storepass string No Keystore password
-rfc string No Output in RFC style
Command Info
Category: Certificate Management
Type: Java-Keytool
Views: 12
Status: Active
Tags
export certificate extract