openssl genrsa

Description

Generate RSA private key.

Command
openssl genrsa
Examples
Generate 2048-bit RSA private key
openssl genrsa -out private.key 2048
Generate encrypted private key
openssl genrsa -des3 -out private.key 2048
Parameters
Parameter Type Required Description
-out string No Output file for the private key
-des3 string No Encrypt the private key with DES3
-aes256 string No Encrypt the private key with AES256
2048 string No Key size in bits
Command Info
Category: Key Generation
Type: Openssl
Views: 12
Status: Active
Tags
rsa private-key generation