Skip to content

Instantly share code, notes, and snippets.

@maneja81
Last active September 2, 2021 03:00
Show Gist options
  • Save maneja81/4edb27bffcfd69f0e934fdc7f5423075 to your computer and use it in GitHub Desktop.
Save maneja81/4edb27bffcfd69f0e934fdc7f5423075 to your computer and use it in GitHub Desktop.
Commands to generate RSA private and public keys of 4096 bits encrypted via AES256
# Private key
$ openssl genrsa -passout pass:{STRONG-PASSWORD} -out {PATH}/private.pem -aes256 4096
# Pulbic key from the
$ openssl rsa -passin pass:{STRONG-PASSWORD} -pubout -in {PATH}/private.pem -out {PATH}/public.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment