mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
openssl_pkcs12: fix crash due to wrong path used for loading key in check mode (#56808)
* Used wrong path for private key. * Add changelog.
This commit is contained in:
committed by
René Moser
parent
eb9009c4f4
commit
391a1042c2
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- "openssl_pkcs12 - fixes crash when private key has a passphrase and the module is run a second time."
|
||||
@@ -227,7 +227,7 @@ class Pkcs(crypto_utils.OpenSSLObject):
|
||||
def _check_pkey_passphrase():
|
||||
if self.privatekey_passphrase:
|
||||
try:
|
||||
crypto_utils.load_privatekey(self.path,
|
||||
crypto_utils.load_privatekey(self.privatekey_path,
|
||||
self.privatekey_passphrase)
|
||||
except crypto.Error:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user