Keytool

From WikiWiki
Jump to navigation Jump to search

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