Keytool

From WikiWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

C:\Program Files\Java\jre\bin\keytool.exe


 C:\Program Files\Java\jre1.8.0_45\bin>keytool
 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
 Use "keytool -command_name -help" for usage of command_name


example

  • keytool -printcert -jarfile c:\Windows\Sun\Java\Deployment\DeploymentRuleSet.jar