Skip to content

Instantly share code, notes, and snippets.

@seagalputra
Created August 5, 2020 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seagalputra/2737d7dc47270e47bf88156b93e7c88b to your computer and use it in GitHub Desktop.
Save seagalputra/2737d7dc47270e47bf88156b93e7c88b to your computer and use it in GitHub Desktop.
Cheat sheet for generating public and private keys using keytool

Generating Keys with Keytool

$ keytool -genkey -alias <name> -keyalg RSA -keystore <filename.jks> -keysize 2048

Replace and <filename.jks> with appropriate name without arrow brackets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment