<div dir="ltr"><div dir="ltr">Gary,<div><br></div><div>I'm a little uncertain about this, but it looks to me like a plain key-in-metadata and key-in-configuration mismatch. I'm unsure because of:</div><div><br></div><div><a href="http://shibboleth.1660669.n2.nabble.com/Unable-to-locate-an-encrypted-key-td5557791.html">http://shibboleth.1660669.n2.nabble.com/Unable-to-locate-an-encrypted-key-td5557791.html</a><br></div><div><br></div><div>Anyway, AFAIK the generator and validator both evaluate the same configuration directives, thus pulling the same keys, so it's hard to explain why the IdP is using the wrong key unless the same SP entityID is registered and loaded somewhere else in the IdP and taking precedence.</div><div><br></div><div>Have you tried a sanity check using a service like SAMLtest at <a href="http://samltest.id">samltest.id</a>? You can upload the SP metadata directly from /Shibboleth.sso/Metadata if the site is publicly exposed.</div><div><br></div><div>Otherwise, my next step would be comparing the encryption key sent in the SAML assertion to the encryption keys in the metadata and the configuration and seeing where the discrepancy is.</div><div><br></div><div>Probably going to be corrected by morning,</div><div>List.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 18, 2018 at 8:20 PM, Lipscomb, Gary <span dir="ltr"><<a href="mailto:glipscomb@csu.edu.au" target="_blank">glipscomb@csu.edu.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list,<br>
<br>
Shibboleth SP v3.0.2<br>
Shibboleth IDP v3.3.3<br>
RHEL 7<br>
<br>
This is our first clean install of a new SP v3.0.2 and trying to resolve the above issue. All the rest have been upgrades and still use the v2 configuration.<br>
<br>
Metadata sent to IdP generated from /Shibboleth.sso/Metadata. The public keys in the metadata for signing and encryption match the appropriate certs on the SP.<br>
Where do I look next ?<br>
<br>
Regards<br>
<br>
Gary<br>
<br>
Shibd.log<br>
<br>
2018-09-19 11:58:10 INFO Shibboleth.Application : building CredentialResolver of type Chaining...<br>
2018-09-19 11:58:10 INFO XMLTooling.CredentialResolver.<wbr>Chaining : building CredentialResolver of type File<br>
2018-09-19 11:58:10 INFO XMLTooling.SecurityHelper : loading private key from file (/etc/shibboleth/sp-signing-<wbr>key.pem)<br>
2018-09-19 11:58:10 INFO XMLTooling.SecurityHelper : loading certificate(s) from file (/etc/shibboleth/sp-signing-<wbr>cert.pem)<br>
2018-09-19 11:58:10 INFO XMLTooling.CredentialResolver.<wbr>Chaining : building CredentialResolver of type File<br>
2018-09-19 11:58:10 INFO XMLTooling.SecurityHelper : loading private key from file (/etc/shibboleth/sp-encrypt-<wbr>key.pem)<br>
2018-09-19 11:58:10 INFO XMLTooling.SecurityHelper : loading certificate(s) from file (/etc/shibboleth/sp-encrypt-<wbr>cert.pem)<br>
2018-09-19 11:58:10 INFO Shibboleth.Listener : listener service starting<br>
<br>
Snip<br>
<br>
</xenc:CipherValue></xenc:<wbr>CipherData></xenc:<wbr>EncryptedData></saml2:<wbr>EncryptedAssertion></saml2p:<wbr>Response><br>
2018-09-19 11:58:35 DEBUG OpenSAML.MessageDecoder.SAML2 [2] [default]: extracting issuer from SAML 2.0 protocol message<br>
2018-09-19 11:58:35 DEBUG OpenSAML.MessageDecoder.SAML2 [2] [default]: message from (<a href="https://redacted/idp/shibboleth" rel="noreferrer" target="_blank">https://redacted/idp/<wbr>shibboleth</a>)<br>
2018-09-19 11:58:35 DEBUG OpenSAML.MessageDecoder.SAML2 [2] [default]: searching metadata for message issuer...<br>
2018-09-19 11:58:35 DEBUG OpenSAML.SecurityPolicyRule.<wbr>MessageFlow [2] [default]: evaluating message flow policy (replay checking on, expiration 60)<br>
2018-09-19 11:58:35 DEBUG OpenSAML.SecurityPolicyRule.<wbr>XMLSigning [2] [default]: validating signature profile<br>
2018-09-19 11:58:35 DEBUG XMLTooling.TrustEngine.<wbr>ExplicitKey [2] [default]: attempting to validate signature with the peer's credentials<br>
2018-09-19 11:58:35 DEBUG XMLTooling.TrustEngine.<wbr>ExplicitKey [2] [default]: signature validated with credential<br>
2018-09-19 11:58:35 DEBUG OpenSAML.SecurityPolicyRule.<wbr>XMLSigning [2] [default]: signature verified against message issuer<br>
2018-09-19 11:58:35 DEBUG XMLTooling.CredentialCriteria [2] [default]: usage didn't match (4 != 3)<br>
2018-09-19 11:58:35 DEBUG XMLTooling.CredentialCriteria [2] [default]: key algorithm didn't match ('AES' != 'RSA')<br>
2018-09-19 11:58:35 ERROR Shibboleth.SSO.SAML2 [2] [default]: failed to decrypt assertion: Unable to locate an encrypted key.<br>
2018-09-19 11:58:35 WARN Shibboleth.SSO.SAML2 [2] [default]: error processing incoming assertion: A valid authentication statement was not found in the incoming message.<br>
<br>
<br>
Shibboleth2.xml<br>
<br>
<CredentialResolver type="Chaining"><br>
<CredentialResolver type="File" key="sp-signing-key.pem" certificate="sp-signing-cert.<wbr>pem" use="signing" extractNames="false"/><br>
<CredentialResolver type="File" key="sp-encrypt-key.pem" certificate="sp-encrypt-cert.<wbr>pem" use="encryption" extractNames="false"/><br>
</CredentialResolver><br>
<br>
Permissions<br>
-rw-r--r--. 1 shibd shibd 1493 Sep 19 11:16 sp-encrypt-cert.pem<br>
-rw-------. 1 shibd shibd 2484 Sep 19 11:16 sp-encrypt-key.pem<br>
-rw-r--r--. 1 shibd shibd 1493 Sep 19 11:16 sp-signing-cert.pem<br>
-rw-------. 1 shibd shibd 2484 Sep 19 11:16 sp-signing-key.pem<br>
<br>
| ALBURY-WODONGA | BATHURST | CANBERRA | DUBBO | GOULBURN | MELBOURNE | ORANGE | PORT MACQUARIE | SYDNEY | WAGGA WAGGA |<br>
<br>
LEGAL NOTICE<br>
This email (and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone. Any confidentiality is not waived or lost by reason of mistaken delivery. Email should be checked for viruses and defects before opening. Charles Sturt University (CSU) does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with CSU may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at CSU. The views expressed in this email are not necessarily those of CSU.<br>
Charles Sturt University in Australia The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551; CRICOS Provider Number: 00005F (National)). TEQSA Provider Number: PV12018<br>
Consider the environment before printing this email.<br>
<span class="HOEnZb"><font color="#888888">-- <br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/<wbr>confluence/x/coFAAg</a><br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.<wbr>net</a><br>
</font></span></blockquote></div><br></div>