Warn user to send a password if the privatekey is password protected (#53360)

* Warn user to send a password if the privatekey is password protected

* Edit openssl_cert doc change

* remove trailing whitespace

* update openssl_csr doc to warn user of private key passphrase requirement.

* Update lib/ansible/modules/crypto/openssl_csr.py

Co-Authored-By: johnwesley <johnwesley@users.noreply.github.com>

* grammer correction, privatekey => private key
This commit is contained in:
John Wesley 2019-03-08 03:24:54 -05:00 committed by John R Barker
parent b45b599433
commit 853f65059a
3 changed files with 5 additions and 3 deletions

View file

@ -77,6 +77,7 @@ options:
privatekey_passphrase: privatekey_passphrase:
description: description:
- The passphrase for the I(privatekey_path). - The passphrase for the I(privatekey_path).
- This is required if the private key is password protected.
type: str type: str
selfsigned_version: selfsigned_version:

View file

@ -40,12 +40,13 @@ options:
default: sha256 default: sha256
privatekey_path: privatekey_path:
description: description:
- The path to the privatekey to use when signing the certificate signing request. - The path to the private key to use when signing the certificate signing request.
type: path type: path
required: true required: true
privatekey_passphrase: privatekey_passphrase:
description: description:
- The passphrase for the privatekey. - The passphrase for the private key.
- This is required if the private key is password protected.
type: str type: str
version: version:
description: description:

View file

@ -56,7 +56,7 @@ options:
required: true required: true
privatekey_passphrase: privatekey_passphrase:
description: description:
- The passphrase for the privatekey. - The passphrase for the private key.
type: str type: str
version_added: "2.4" version_added: "2.4"
extends_documentation_fragment: extends_documentation_fragment: