Skip to content

Commit cafc297

Browse files
authored
Add passphrase support for RSA key import
missing parameter
1 parent 96baf7e commit cafc297

File tree

1 file changed

+1
-1
lines changed
  • desktop/core/ext-py3/pysaml2-7.3.1/src/saml2

1 file changed

+1
-1
lines changed

desktop/core/ext-py3/pysaml2-7.3.1/src/saml2/sigver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def import_rsa_key_from_file(filename, passphrase=None):
481481
with open(filename, "rb") as fd:
482482
data = fd.read()
483483
passphrase = bytes(passphrase, 'ascii') if passphrase else None
484-
key = saml2.cryptography.asymmetric.load_pem_private_key(data)
484+
key = saml2.cryptography.asymmetric.load_pem_private_key(data, passphrase)
485485
return key
486486

487487

0 commit comments

Comments
 (0)