Created
July 4, 2022 12:16
-
-
Save Bitnik212/223c42fdd4e96a3fc027eb38ff43d071 to your computer and use it in GitHub Desktop.
Gen private and public keys
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
#! /bin/bash | |
openssl genrsa -out rsaPrivateKey.pem 2048 | |
openssl rsa -pubout -in rsaPrivateKey.pem -out publicKey.pem | |
openssl pkcs8 -topk8 -nocrypt -inform pem -in rsaPrivateKey.pem -outform pem -out privateKey.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment