Skip to content

Instantly share code, notes, and snippets.

@DoZator
Created March 5, 2025 20:10
Show Gist options
  • Save DoZator/681386ca096808b2ac32ad5180d626e5 to your computer and use it in GitHub Desktop.
Save DoZator/681386ca096808b2ac32ad5180d626e5 to your computer and use it in GitHub Desktop.
Generate OpenSSL private and public keys

Generate RSA 1024 bit key:

openssl genrsa -out private_key.pem 1024

Get public key from private:

openssl rsa -in private_key.pem -pubout -out public_key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment