<div dir="ltr"><div style="font-size:12.8px">Hello,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am trying to configure a SAML SP with the <a href="http://www.testshib.org/" target="_blank">http://www.testshib.org/</a> IDP using the onelogin python-saml toolkit </div><div style="font-size:12.8px">located here: <a href="https://github.com/onelogin/python-saml" target="_blank">https://github.com/onelogin/python-saml</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">When I try to login I get redirected back to my SP but the the IDP fails to encrypt the assertion. </div><div style="font-size:12.8px">It gives the following error:</div><div style="font-size:12.8px"><pre style="white-space:pre-wrap;color:rgb(0,0,0);word-wrap:break-word"><pre style="white-space:pre-wrap;word-wrap:break-word">17:55:15.117 - ERROR [edu.internet2.middleware.shibboleth.idp.profile.saml2.AbstractSAML2ProfileHandler:927] - Could not resolve a key encryption credential for peer entity: <a href="http://local.origami42.com:8000/metadata/" target="_blank">http://local.origami42.com:8000/metadata/</a>
17:55:15.117 - ERROR [edu.internet2.middleware.shibboleth.idp.profile.saml2.AbstractSAML2ProfileHandler:289] - Unable to construct encrypter
org.opensaml.xml.security.SecurityException: Could not resolve key encryption credential</pre></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0);word-wrap:break-word"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;white-space:normal">I included the full error in the idp-process.log file, as well as my SP metadata file.<br>I searched trough the archives and found some similar questions, but I couldn't really make sense of them.</span></pre><pre style="white-space:pre-wrap;word-wrap:break-word"><font face="arial, sans-serif"><span style="white-space:normal">Why can't the IDP encrypt the assertion ?<br></span></font><span style="white-space:normal;font-family:arial,sans-serif">Am I using an incorrect certificate / public key, should I update the medata somehow ?<br><br></span></pre><pre style="white-space:pre-wrap;word-wrap:break-word"><span style="white-space:normal;font-family:arial,sans-serif">( Sorry for the duplicate email, forgot the subject in the previous one... )</span></pre></div></div>