From 9bfeb25d16db94023ffa548b7ff8839cfcfc00f6 Mon Sep 17 00:00:00 2001 From: Luca Dorigo Date: Thu, 28 May 2020 11:03:35 +0200 Subject: [PATCH] openssl-genrsa: add page (#4050) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Zlatan Vasović Co-authored-by: Ein Verne Co-authored-by: Starbeamrainbowlabs --- pages/common/openssl-genrsa.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/openssl-genrsa.md diff --git a/pages/common/openssl-genrsa.md b/pages/common/openssl-genrsa.md new file mode 100644 index 0000000000..8a743561a2 --- /dev/null +++ b/pages/common/openssl-genrsa.md @@ -0,0 +1,16 @@ +# openssl genrsa + +> OpenSSL command to generate RSA private keys. +> More information: . + +- Generate an RSA private key of 2048 bits to stdout: + +`openssl genrsa` + +- Save an RSA private key of an arbitrary number of bits to the output file: + +`openssl genrsa -out {{output_file.key}} {{1234}}` + +- Generate an RSA private key and encrypt it with AES256 (you will be prompted for a passphrase): + +`openssl genrsa {{-aes256}}`