openssl genrsa -out server.key 4096

Category: Self-Hosting

openssl genrsa -out server.key 4096

Generate a 4096-bit RSA private key for self-signed certificates or CSRs

Generates a 4096-bit RSA private key. This is the foundation of any TLS certificate — keep this file secret and back it up securely.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.