-
-
Save paranlee/4db9c5d5bab3c18fe56ea27b0e4cf8cd to your computer and use it in GitHub Desktop.
OpenSSL generate ed25519 and RSA
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 ed25519 privkey | |
openssl genpkey -algorithm ed25519 -out privkey.pem | |
# export its pubkey | |
openssl pkey -in privkey.pem -pubout -out pubkey.pem | |
# Generate RSA privkey | |
openssl genrsa -des3 -out private.pem 2048 | |
# export its pubkey | |
openssl rsa -in private.pem -outform PEM -pubout -out public.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment