OS Manuals

/usr/lib/jvm/java-21-openjdk-crac/bin/keytool

OpenJDK 21 with CRaC patches

From openjdk-crac-21 21.0.13.9-r0 (enterprise-packages), captured 2026-11-08 by running keytool --help (exit 0). permalink

Also provided by 1 other package version
Key and Certificate Management Tool

Commands:

 -certreq            Generates a certificate request
 -changealias        Changes an entry's alias
 -delete             Deletes an entry
 -exportcert         Exports certificate
 -genkeypair         Generates a key pair
 -genseckey          Generates a secret key
 -gencert            Generates certificate from a certificate request
 -importcert         Imports a certificate or a certificate chain
 -importpass         Imports a password
 -importkeystore     Imports one or all entries from another keystore
 -keypasswd          Changes the key password of an entry
 -list               Lists entries in a keystore
 -printcert          Prints the content of a certificate
 -printcertreq       Prints the content of a certificate request
 -printcrl           Prints the content of a CRL file
 -storepasswd        Changes the store password of a keystore
 -showinfo           Displays security-related information
 -version            Prints the program version

Use "keytool -?, -h, or --help" for this help message
Use "keytool -command_name --help" for usage of command_name.
Use the -conf <url> option to specify a pre-configured options file.
Options (30)
OptionDescriptionSource
-certreqGenerates a certificate requesthelp + man
-changealiasCommands for Displaying Security-related Information:help + man
-deleteDeletes an entryhelp + man
-exportcertCommands for Displaying Data:help + man
-genkeypairGenerates a key pairhelp + man
-genseckeyGenerates a secret keyhelp + man
-gencertGenerates certificate from a certificate requesthelp + man
-importcertImports a certificate or a certificate chainhelp + man
-importpassCommands for Importing Contents from Another Keystore:help + man
-importkeystoreImports one or all entries from another keystorehelp + man
-keypasswdChanges the key password of an entryhelp + man
-listLists entries in a keystorehelp + man
-printcertPrints the content of a certificatehelp + man
-printcertreqPrints the content of a certificate requesthelp + man
-printcrlCommands for Managing the Keystore:help + man
-storepasswdChanges the store password of a keystorehelp + man
-showinfoCommands for Displaying Program Version:help + man
-versionThe -v option can appear for all commands except --help.help + man
-storetype storetypeThis qualifier specifies the type of keystore to be instantiated. (in the manual page but not in --help)man
-keystore keystoreThe keystore location. (in the manual page but not in --help)man
-cacerts cacertsOperates on the cacerts keystore . (in the manual page but not in --help)man
-storepass :envThe password that is used to protect the integrity of the keystore. (in the manual page but not in --help)man
-providername nameUsed to identify a cryptographic service provider's name when listed in the security properties file. (in the manual page but not in --help)man
-addprovider nameUsed to add a security provider by name (such as SunPKCS11) . (in the manual page but not in --help)man
-providerclass classUsed to specify the name of a cryptographic service provider's master class file when the service provider isn't listed in the security properties file. (in the manual page but not in --help)man
-providerpath listUsed to specify the provider classpath. (in the manual page but not in --help)man
-providerarg argUsed with the -addprovider or -providerclass option to represent an optional string input argument for the constructor of class name. (in the manual page but not in --help)man
-protected true|falseSpecify this value as true when a password must be specified by way of a protected authentication path, such as a dedicated PIN reader. (in the manual page but not in --help)man
-ext name{:criticalDenotes an X.509 certificate extension. (in the manual page but not in --help)man
-conf fileSpecifies a pre-configured options file. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.