Mittwoch, 11. September 2013

commands for java keystore

HOW TO USE
Open commandline and open directory of your java jdk where you find "jarsigner.exe" (Windows: C:\Program Files\Java\jdk1.7.0_21\bin).

USEFUL COMMAND LINES:

list all certificates in a keystore:
  • keytool -v -list "path to keystore"
show key of an existing certicificate:
  •  keytool -keypassw -keystore myKeystore -alias myAlias
show alias:
  • keytool -list -alias -keystore "path to keystore"
delete:
  •  keytool -delete -alias -keystore "path to keystore"
 copy a certificate from one keystore to another:
  • keytool -importkeystore -srckeystore "path to src keystore" -destkeystore "path to dest keystore" -srcstorepass "src keystore password" -deststorepass "dest keystore password" -srcalias -destalias

Keine Kommentare:

Kommentar veröffentlichen