Created
November 20, 2025 13:20
-
-
Save alexgalkin/7e2b82ea2f8a46188ef1bf6ccb472cc9 to your computer and use it in GitHub Desktop.
Private and Public Keys generation
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
| # generate private key | |
| openssl genrsa -out private_key.pem 2048 | |
| # generate public key | |
| openssl rsa -in private_key.pem -pubout -out public_key.pem | |
| # convert to one line for ENV variable | |
| awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' private_key.pem > private-env.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment