diff --git a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php index b963b8a6ae01d7961541cf1cfab63c524dc0a6e8..d3f99895f394254800817a4a5b506e925cd0eb9a 100644 --- a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php +++ b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php @@ -202,6 +202,9 @@ class SimpleSAML_XML_SAML20_AuthnResponse extends SimpleSAML_XML_AuthnResponse { if ($privatekey === FALSE) { throw new Exception("Private key for decrypting assertion specified but not found for saml20-sp-hosted id: " . $spid . " Filename: " . $spmd['privatekey']); } + if(array_key_exists('privatekey_pass', $spmd)) { + $objKeyInfo->passphrase = $spmd['privatekey_pass']; + } $objKeyInfo->loadKey($privatekey); $key = $objencKey->decryptKey($objKeyInfo); } else {