info > openssl-genrsa(1)

Not found locally for openssl-genrsa. Try Google search

๐Ÿ“› NAME

openssl-genrsa - generate an RSA private key

๐Ÿš€ Quick Reference

Use CaseCommandDescription
Generate default 2048-bit RSA keyopenssl genrsa -out key.pemGenerates a 2048-bit RSA private key and writes to file
Generate encrypted 2048-bit keyopenssl genrsa -aes256 -out key.pemGenerates a key encrypted with AES-256, prompts for passphrase
Generate 4096-bit keyopenssl genrsa -out key.pem 4096Generates a larger 4096-bit RSA key for stronger security
Generate multi-prime key (RFC 8017)openssl genrsa -primes 3 -out key.pem 2048Generates a 3-prime RSA key
Output in traditional PKCS#1 formatopenssl genrsa -traditional -out key.pemGenerates key using legacy PKCS#1 format instead of PKCS#8

๐Ÿ“‹ SYNOPSIS

openssl genrsa [-help] [-out filename] [-passout arg] [-aes128]
       [-aes192] [-aes256] [-aria128] [-aria192] [-aria256] [-camellia128]
       [-camellia192] [-camellia256] [-des] [-des3] [-idea] [-F4] [-f4] [-3]
       [-primes num] [-verbose] [-traditional] [-rand files] [-writerand file]
       [-engine id] [-provider name] [-provider-path path] [-propquery propq]
       [numbits]

๐Ÿ“ DESCRIPTION

โš ๏ธ This command has been deprecated. The openssl-genpkey(1) command should be used instead.

This command generates an RSA private key.

โš™๏ธ OPTIONS

๐Ÿ“Œ NOTES

RSA private key generation essentially involves the generation of two or more prime numbers. When generating a private key various symbols will be output to indicate the progress of the generation:

Because key generation is a random process the time taken to generate a key may vary somewhat. But in general, more primes lead to less generation time of a key.

๐Ÿ”— SEE ALSO

openssl(1), openssl-genpkey(1), openssl-gendsa(1)

๐Ÿ“œ HISTORY

This command was deprecated in OpenSSL 3.0.

ยฉ๏ธ COPYRIGHT

Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.

openssl-genrsa(1)
๐Ÿ“› NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“ DESCRIPTION โš™๏ธ OPTIONS ๐Ÿ“Œ NOTES ๐Ÿ”— SEE ALSO ๐Ÿ“œ HISTORY ยฉ๏ธ COPYRIGHT

Generated by phpman v4.10.0-16-g1a0e228 Author: Che Dong Under GNU General Public License
2026-09-22 07:18 @216.73.216.44
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!