mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
openssl_*: improve passphrase handling for private keys in PyOpenSSL (#53489)
* Raise OpenSSLBadPassphraseError if passphrase is wrong. * Improve handling of passphrase errors. Current behavior for modules is: if passphrase is wrong (or wrongly specified), fail. Current behavior for openssl_privatekey is: if passphrase is worng (or wrongly specified), regenerate. * Add changelog. * Add tests. * Adjustments for some versions of PyOpenSSL. * Update lib/ansible/modules/crypto/openssl_certificate.py Improve text. Co-Authored-By: felixfontein <felix@fontein.de>
This commit is contained in:
committed by
John R Barker
parent
1d91e03119
commit
caf7fd2245
@@ -0,0 +1,6 @@
|
||||
bugfixes:
|
||||
- "openssl_privatekey - no longer hang or crash when passphrase does not match or was
|
||||
not specified, but key is protected with one. Also regenerate key if passphrase is
|
||||
specified but existing key has no passphrase."
|
||||
- "openssl_csr, openssl_certificate, openssl_publickey - properly validate private key
|
||||
passphrase; if it doesn't match, fail (and not crash or ignore)."
|
||||
Reference in New Issue
Block a user