Skip to content

Instantly share code, notes, and snippets.

@j5bot
Last active October 15, 2022 14:12
Show Gist options
  • Save j5bot/ddf5ec9ee5310496f5fd5c335c264922 to your computer and use it in GitHub Desktop.
Save j5bot/ddf5ec9ee5310496f5fd5c335c264922 to your computer and use it in GitHub Desktop.
# Generate key pair 2048 bit
openssl genrsa -des3 -out WM_IO_my_rsa_key_pair 2048
# Export private key WM_IO_private_key.pem
openssl pkcs8 -topk8 -inform PEM -in WM_IO_my_rsa_key_pair -outform PEM -out WM_IO_private_key.pem -nocrypt
#### THIS IS NEW ####
# Export private key WM_IO_private_key
openssl rsa -in WM_IO_private_key.pem -out > WM_IO_private_key
#### THIS IS NEW ####
# Export public key WM_IO_public_key.pem
openssl rsa -in WM_IO_private_key.pem -pubout > WM_IO_public_key.pem
#### THIS IS CHANGED SO IT COPIES DIRECTLY TO CLIPBOARD ####
# Copy and paste public key to Key upload page
cat WM_IO_public_key.pem | sed -e '1d;$d' -eP\;D | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment