Skip to content

Instantly share code, notes, and snippets.

@NULLx76
Created September 15, 2020 22:37
Show Gist options
  • Save NULLx76/c7e5b9b6fef2b130df43963560c5278e to your computer and use it in GitHub Desktop.
Save NULLx76/c7e5b9b6fef2b130df43963560c5278e to your computer and use it in GitHub Desktop.
OpenSSL generate ed25519 and RSA
# 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