<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Hi folks!</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
We upgraded our Service Provider from version 2.4.3 to 2.5.3, and we’ve run into a problem that I can’t figure out.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
We talk to 3 IdPs successfully, but 1 is having a problem getting their assertions decrypted. </div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
I saw this in the log: </div>
<div>
<div>2014-03-26 22:07:03 WARN XMLTooling.Decrypter [1]: XMLSecurity exception while decrypting key: XSECAlgorithmMapper::mapURIToHandler - URI http://www.w3.org/2001/04/xmlenc#rsa-1_5 disallowed by whitelist/blacklist policy</div>
<div>2014-03-26 22:07:03 WARN XMLTooling.Decrypter [1]: unable to decrypt key, generating random key for defensive purposes</div>
<div>2014-03-26 22:07:03 ERROR Shibboleth.SSO.SAML2 [1]: failed to decrypt assertion: XMLSecurity exception while decrypting: OpenSSL:SymmetricKey::decryptFinish - Out of range padding value in final block</div>
</div>
<div><br>
</div>
<div>And when I look in their assertion I see:</div>
<div><xenc:EncryptionMethod Algorithm="<a href="http://www.w3.org/2001/04/xmlenc#rsa-1_5”/>">http://www.w3.org/2001/04/xmlenc#rsa-1_5”/></a></div>
<div><br>
</div>
<div>So I figured that they are using an encryption method that was blacklisted in version 2.5.1. We have a business reason for letting them come in using that encryption temporarily, even though it’s not the most secure.</div>
<div><br>
</div>
<div>So I added this to the security policy:</div>
<div><AlgorithmBlacklist includeDefaultBlacklist="false”/></div>
<div><br>
</div>
<div>I also added this to the environment because it applies to us:</div>
<div>export LD_LIBRARY_PATH=/opt/shibboleth/lib64</div>
<div><br>
</div>
<div>But that did not fix the problem. We are now getting this error:</div>
<div>
<div>2014-03-31 13:28:18 WARN XMLTooling.Decrypter [33]: XMLSecurity exception while decrypting key: OpenSSL:RSA privateKeyDecrypt - Error Decrypting PKCS1_5 padded RSA encrypt</div>
<div>2014-03-31 13:28:18 WARN XMLTooling.Decrypter [33]: unable to decrypt key, generating random key for defensive purposes</div>
<div>2014-03-31 13:28:18 ERROR Shibboleth.SSO.SAML2 [33]: failed to decrypt assertion: XMLSecurity exception while decrypting: Errors occured during de-serialisation of decrypted element content</div>
</div>
<div><br>
</div>
<div>I’m 99% sure their assertions have not changed. Only the SP version has changed.</div>
<div><br>
</div>
<div>So…</div>
<ol>
<li>What does that error message mean?</li><li>Is there anything I can do to configure Shibboleth here?</li><li>We might need to revert back to 2.4.3 temporarily. I saw where I can get the Shibboleth archive, but it doesn’t have the archived dependencies. We moved to a new server, but the old server has been preserved. Is there a folder on the old server that would
have correct dependency versions that we could copy? </li></ol>
<div>Thanks so much for your help,</div>
<div>Jim</div>
<div><br>
</div>
<div><br>
</div>
<HR>This e-mail may contain information that is privileged, confidential or protected under state or federal law. If you are not an intended recipient of this email, please delete it, notify the sender immediately, and do not copy, use or disseminate any information in the e-mail. Pursuant to IRS Circular 230, any tax advice in this email may not be used to avoid any penalties imposed under U.S. tax laws. E-mail sent to or from this e-mail address may be monitored, reviewed and archived.<BR>
</body>
</html>