Skip to content

Instantly share code, notes, and snippets.

@hotienvu
Created May 11, 2018 03:49
Show Gist options
  • Save hotienvu/928bdd156b5a9bf34d91b3176a6427b4 to your computer and use it in GitHub Desktop.
Save hotienvu/928bdd156b5a9bf34d91b3176a6427b4 to your computer and use it in GitHub Desktop.
keytool cheatsheet
## create new keystore
keytool -genkeypair [-keyalg EC -keysize 256 -sigalg SHA256withECDSA] -keystore keystore.jks -alias domain.com
## list entries in keystore
keytool -list -keystore keystore.jks -v
## concatinate multiple keystores
keytool -importkeystore -srckeystore keystore1.jks -destkeystore keystore2.jks -deststoretype pkcs12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment