Generate a new private key securely in your browser. No data is sent to any server.
Generated Private Key
How to Generate a Private Key with OpenSSL
To create a new private key using OpenSSL, open your terminal and run one of the following commands. All commands will prompt for a password if encryption is enabled.
RSA Keys
openssl genpkey -algorithm RSA -out private_key.pem -aes256
Copied!
Replace RSA with RSA:2048, RSA:3072, or RSA:4096 for specific key sizes.
Elliptic Curve (EC) Keys
openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:prime256v1 -out ec_key.pem -aes256
Copied!
Replace prime256v1 with secp384r1 or secp521r1 for other curves.
Ed25519 Keys
openssl genpkey -algorithm Ed25519 -out ed25519_key.pem
Copied!
Note: Ed25519 keys do not support password encryption in OpenSSL.
General Notes:
- -aes256 encrypts your key with a password for extra security (not available for Ed25519).
- Keep your private key safe and never share it!