Last active
October 15, 2022 14:12
-
-
Save j5bot/ddf5ec9ee5310496f5fd5c335c264922 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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