Created
July 10, 2022 17:02
-
-
Save japharr/c8261ab4147d7e453c1a03aa83ed320b to your computer and use it in GitHub Desktop.
Generate public and private keys
This file contains hidden or 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
#!/bin/bash | |
openssl genrsa -out private.pem 2048 | |
openssl pkcs8 -topk8 -inform PEM -in private.pem -out private_key.pem -nocrypt | |
openssl rsa -in private.pem -outform PEM -pubout -out public_key.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment