Skip to content

Instantly share code, notes, and snippets.

@pundoo
Forked from NULLx76/openssl.sh
Created May 8, 2024 00:50
Show Gist options
  • Save pundoo/446c47ecc506a1d39ea4ee3972fa671f to your computer and use it in GitHub Desktop.
Save pundoo/446c47ecc506a1d39ea4ee3972fa671f 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