OpenSSL Key Generation
Generating a Private Key using openssl
openssl genrsa [NUMBITS] [-out OUTPUT_FILE] [-passout PASSOUT] [-des|des3|-aes128|aes192|aes256|...]
NUMBITS = Size of the key. Defaults to 2048.-out
OUTPUT_FILE = Saves the key to OUTPUT_FILE-passout
PASSOUT = The key in the OUTPUT_FILE can only be read if the PASSPHRASE is porovided.
If passout is not provided then the user will be asked to enter it.
Some common methods to provide the PASSPHRASE are:
pass:PASSPHRASE - provides the passphrase as argument
file:PASSFILE - provides a file that contains the passphrase
stdin - asks the user to provide the passphrase
-des|des3|aes128|aes192|aes256|... = Select the method for file encryption.-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,1C65746D94033797A4EE53B3FCC8FAF6
4aGNgrMRrgFPlZbHFB9JlPUjhu+sCSUL7VSukEt/slhXpOhpSAKM1b8qdg+25E0F
+kbiijjJcssWiyV+eTm6d/Qemn95DhGhi9H3ffstdziKb6VaKUr8Tfrfg6egsLyK
[...]Generating a Public Key using openssl
Other methods of generating keys
Last updated