Skip to content

Instantly share code, notes, and snippets.

@NetOpWibby
Forked from NULLx76/openssl.sh
Created February 29, 2024 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NetOpWibby/e0c593f294c0d549e3d29202bcb7511c to your computer and use it in GitHub Desktop.
Save NetOpWibby/e0c593f294c0d549e3d29202bcb7511c 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