Skip to content

Instantly share code, notes, and snippets.

@paranlee
Forked from NULLx76/openssl.sh
Created July 4, 2024 15:06
Show Gist options
  • Save paranlee/4db9c5d5bab3c18fe56ea27b0e4cf8cd to your computer and use it in GitHub Desktop.
Save paranlee/4db9c5d5bab3c18fe56ea27b0e4cf8cd 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