key algorithm didn't match ('AES' != 'RSA') failed to decrypt assertion: Unable to locate an encrypted key.
Lipscomb, Gary
glipscomb at csu.edu.au
Tue Sep 18 22:20:59 EDT 2018
Hi list,
Shibboleth SP v3.0.2
Shibboleth IDP v3.3.3
RHEL 7
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.
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.
Where do I look next ?
Regards
Gary
Shibd.log
2018-09-19 11:58:10 INFO Shibboleth.Application : building CredentialResolver of type Chaining...
2018-09-19 11:58:10 INFO XMLTooling.CredentialResolver.Chaining : building CredentialResolver of type File
2018-09-19 11:58:10 INFO XMLTooling.SecurityHelper : loading private key from file (/etc/shibboleth/sp-signing-key.pem)
2018-09-19 11:58:10 INFO XMLTooling.SecurityHelper : loading certificate(s) from file (/etc/shibboleth/sp-signing-cert.pem)
2018-09-19 11:58:10 INFO XMLTooling.CredentialResolver.Chaining : building CredentialResolver of type File
2018-09-19 11:58:10 INFO XMLTooling.SecurityHelper : loading private key from file (/etc/shibboleth/sp-encrypt-key.pem)
2018-09-19 11:58:10 INFO XMLTooling.SecurityHelper : loading certificate(s) from file (/etc/shibboleth/sp-encrypt-cert.pem)
2018-09-19 11:58:10 INFO Shibboleth.Listener : listener service starting
Snip
</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></saml2:EncryptedAssertion></saml2p:Response>
2018-09-19 11:58:35 DEBUG OpenSAML.MessageDecoder.SAML2 [2] [default]: extracting issuer from SAML 2.0 protocol message
2018-09-19 11:58:35 DEBUG OpenSAML.MessageDecoder.SAML2 [2] [default]: message from (https://redacted/idp/shibboleth)
2018-09-19 11:58:35 DEBUG OpenSAML.MessageDecoder.SAML2 [2] [default]: searching metadata for message issuer...
2018-09-19 11:58:35 DEBUG OpenSAML.SecurityPolicyRule.MessageFlow [2] [default]: evaluating message flow policy (replay checking on, expiration 60)
2018-09-19 11:58:35 DEBUG OpenSAML.SecurityPolicyRule.XMLSigning [2] [default]: validating signature profile
2018-09-19 11:58:35 DEBUG XMLTooling.TrustEngine.ExplicitKey [2] [default]: attempting to validate signature with the peer's credentials
2018-09-19 11:58:35 DEBUG XMLTooling.TrustEngine.ExplicitKey [2] [default]: signature validated with credential
2018-09-19 11:58:35 DEBUG OpenSAML.SecurityPolicyRule.XMLSigning [2] [default]: signature verified against message issuer
2018-09-19 11:58:35 DEBUG XMLTooling.CredentialCriteria [2] [default]: usage didn't match (4 != 3)
2018-09-19 11:58:35 DEBUG XMLTooling.CredentialCriteria [2] [default]: key algorithm didn't match ('AES' != 'RSA')
2018-09-19 11:58:35 ERROR Shibboleth.SSO.SAML2 [2] [default]: failed to decrypt assertion: Unable to locate an encrypted key.
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.
Shibboleth2.xml
<CredentialResolver type="Chaining">
<CredentialResolver type="File" key="sp-signing-key.pem" certificate="sp-signing-cert.pem" use="signing" extractNames="false"/>
<CredentialResolver type="File" key="sp-encrypt-key.pem" certificate="sp-encrypt-cert.pem" use="encryption" extractNames="false"/>
</CredentialResolver>
Permissions
-rw-r--r--. 1 shibd shibd 1493 Sep 19 11:16 sp-encrypt-cert.pem
-rw-------. 1 shibd shibd 2484 Sep 19 11:16 sp-encrypt-key.pem
-rw-r--r--. 1 shibd shibd 1493 Sep 19 11:16 sp-signing-cert.pem
-rw-------. 1 shibd shibd 2484 Sep 19 11:16 sp-signing-key.pem
| ALBURY-WODONGA | BATHURST | CANBERRA | DUBBO | GOULBURN | MELBOURNE | ORANGE | PORT MACQUARIE | SYDNEY | WAGGA WAGGA |
LEGAL NOTICE
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.
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
Consider the environment before printing this email.
More information about the users
mailing list