October is Cyber Security Awareness Month!
How to Generate a Private Key with OpenSSL
To create a new private key using OpenSSL, open your terminal and run:
openssl genpkey -algorithm RSA -out private_key.pem -aes256
- RSA is the algorithm (you can use
EC
for elliptic curve keys). - private_key.pem is the output file name.
- -aes256 encrypts your key with a password for extra security.
This will prompt you to set a password.
Keep your private key safe and never share it!