Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
--
Hey Ray,
Linos,
You should only need one metadata file, with both certs in it.Could it be that one step uses the new and one uses the old which is causing the mismatch?
Initially, based on the per-SP metadata overrides guide [0], I
was given the impression that I could indeed also override the
metadata too.
The thing is, that the response itself and/or the assertions are
signed with the correct (overriding) key. The only codepath that's
messed up is
the one that generates the SAML response. A sample of the logs
that were generated, right before the response is signed:
```
Nov 27 12:19:57 cas-stg tomcat9[9271]: 2020-11-27 12:19:57,831
TRACE
[org.apereo.cas.support.saml.idp.metadata.locator.FileSystemSamlIdPMetadataLocator]
- <Metadata directory location for [jenk] is
[/etc/cas/saml/jenk-9]>
Nov 27 12:19:57 cas-stg tomcat9[9271]: 2020-11-27 12:19:57,843
TRACE
[org.apereo.cas.support.saml.idp.metadata.locator.FileSystemSamlIdPMetadataLocator]
- <Artifact location for [idp-signing.key] and [jenk] is
[/etc/cas/saml/jenk-9/idp-signing.key]>
Nov 27 12:19:57 cas-stg tomcat9[9271]: 2020-11-27 12:19:57,843
DEBUG
[org.apereo.cas.support.saml.idp.metadata.locator.FileSystemSamlIdPMetadataLocator]
- <Using metadata artifact [idp-signing.key] at
[/etc/cas/saml/jenk-9/idp-signing.key]>
```
Where `jenk-9` is the directory containing all the overrides.
Despite that, I attempted to put both SAML keys (old and new one)
in the same metadata file as you suggested, and thus not override
them in the SP folder.
The results were the same, the response contained the wrong
`KeyInfo`.
[0]
https://apereo.github.io/2019/12/16/cas62x-saml2-metadata-service/
Regards,
Linos
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/15387cae0fc961e68b12ff227052ece911c9ef60.camel%40uvic.ca.