What is the purpose of the -nodes
argument in openssl?
edit: nginx v1.7.3 has added an ssl_password_file directive which reads passphrases from a specified file trying each passphrase on the context's encrypted-private.key
indiv is correct that the -nodes
argument means that OpenSSL will create UNencrypted private.key; otherwise, there will be a passphrase prompt to create encrypted-private.key. see req, pkcs12, CA.pl
however, I feel the purpose (for programmers) is because:
ssl_password_file file.keys;
in http { }
or server { }
context. [ref]-nodes
to create private.key without encryptionuseful: lock down private.key
sudo chown root:ssl-cert private.key
- change owner of private.key to root user, ssl-cert group sudo chmod 640 private.key
- change access permissions of private.key to owner R/W, group ROption A
stronger security, yet when server restarts, have to manually type in passphrase for encrypted-private.key
Option B
medium security, and probably good balance between A/C
Option C
weaker security, yet NOT prompted for UNencrypted private.key passphrase