SAML Response generated by CAS IDP is giving error at SP side (SimpleSAMLphp) as "Unable to validate Signature".
I have already running application of CAS 3.5.2 with external integration with Shibboleth IdP and now I am tring to integrate new CAS 5.3.5 version using CAS IDP.
Following in the SAML Response generate by IdP for both CAS 5.3.5 and CAS 3.5.2 with external Shibboleth IdP.
<?xml version="1.0" encoding="UTF-8"?>
<saml2p:Response
ID="_5811688302419932870"
InResponseTo="_2eaf2e28b5216f16033c9426d54214ab6388f7e81f"
IssueInstant="2018-11-29T21:01:43.318Z" Version="2.0" xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol">
<saml2:Issuer
Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">https://localhost:8443/idp</saml2:Issuer> <ds:Signature
<ds:SignedInfo>
<ds:CanonicalizationMethod
<ds:SignatureMethod
<ds:Reference
URI="#_5811688302419932870">
<ds:Transforms>
<ds:Transform
<ds:Transform
</ds:Transforms>
<ds:DigestValue>b7YffVN2OeWjVJwE+M7Ubu8Y8yuT7AJH0UyZCbSfifY=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
O9KIQejb18K/ME5x0sVfa3vuSJfPDxz5kDLWo6afmWip4LZzA3YNJf7v4e3Fb+9myw1aEPC3XP3b
As0WFTeVIzB2zzM7k7PxKQFpZyZ4sWR2gYcpj85AobJVYIJA9uv2CfTPaERE9w5hfU4Pkc/bJ4cb
41oHsm6hLVRPZj1Tq68=
</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>**** DELETED ****</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
<saml2p:Status xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol">
<saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
</saml2p:Status>
<saml2:EncryptedAssertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
<xenc:EncryptedData Id="_820da790be35c89c155513777cd62a67"
<xenc:EncryptionMethod
<ds:RetrievalMethod
</ds:KeyInfo>
<xenc:CipherValue>**** DELETED ****</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
<xenc:EncryptedKey Id="_a624d6692b8ac5cf1b149f831bd1aee4"
<xenc:EncryptionMethod
<ds:DigestMethod
</xenc:EncryptionMethod>
<xenc:CipherValue>**** DELETED ****</xenc:CipherValue>
</xenc:CipherData>
<xenc:ReferenceList>
<xenc:DataReference URI="#_820da790be35c89c155513777cd62a67"/>
</xenc:ReferenceList>
</xenc:EncryptedKey>
</saml2:EncryptedAssertion>
</saml2p:Response>
SAML Response - CAS 3.5.2 with external Shibboleth IdP
ID="_2d92ed1015600c258406df9be22f95be" InResponseTo="_3c79c509762462fa063e035b4ac9b6fa"
IssueInstant="2018-11-29T15:41:52.149Z" Version="2.0"
xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol">
<saml2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity"
<saml2p:Status><saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/></saml2p:Status>
<saml2:EncryptedAssertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
<xenc:EncryptedData Id="_6d71ffd770ca214f19d05dd34c179bf7"
<xenc:EncryptedKey Id="_2062d09a80fbd4810e9e733fa0132d9f"
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>**** DELETED ****</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
<xenc:CipherValue>**** DELETED ****</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedKey>
</ds:KeyInfo>
<xenc:CipherValue>**** DELETED ****</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
</saml2:EncryptedAssertion>
</saml2p:Response>
And following the my SP Service Registry entry
{
"@class" : "org.apereo.cas.support.saml.services.SamlRegisteredService",
"name" : "SAMLService",
"id" : 10000003,
"evaluationOrder" : 10,
"metadataLocation" : "mylocation/metadata/testsp_metadata.xml",
"signAssertions": false,
"signResponses": true,
"encryptAssertions": true
}
Can anyone please help me in finding out what is the issue in my configuration??
TIA
Jitendra