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:
parent
eb9009c4f4
commit
391a1042c2
2 changed files with 3 additions and 1 deletions
|
@ -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():
|
def _check_pkey_passphrase():
|
||||||
if self.privatekey_passphrase:
|
if self.privatekey_passphrase:
|
||||||
try:
|
try:
|
||||||
crypto_utils.load_privatekey(self.path,
|
crypto_utils.load_privatekey(self.privatekey_path,
|
||||||
self.privatekey_passphrase)
|
self.privatekey_passphrase)
|
||||||
except crypto.Error:
|
except crypto.Error:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue