*
jharf...@toonboom.com <
jharf...@toonboom.com> [2018-02-09 18:26]:
> I have a functioning federation with a hosted IdP and I'm trying to get the
> SP (same domain) and IdP to sign and validate the messages. Signing alone
> works, but when I try to configure validation, the SP fails after logout
> with the message SimpleSAML_Error_Exception: No private key found in
> metadata
I can't explain the error message without looking at the code, but
guessing and adding all kinds of made-up parameters to all kinds of
config files (as I understand you wwere doing to "fix" this) is not
going to help.
Signing & validation of signatures and encrypting & decrypting all
works out of the box in SSP as soon as the parties have suitable key
material (yes, only public keys wrapped in X.509 certificates for
[in]convenience) available in their metadata (and the correct metadata
is available to the other parties).
There is no extra configuration required to "enable validation of
signatures", and there shouldn't be such a configuration, of course.
You have idp-hosted, sp-remote and idp-remote all on the samle
SimpleSAMLphp instance? For sanity I'd personally separate those out
completely (if needed only their configuration root directories using
the environment variable method mentioned in the documentation). Also
the documentation states that you'll need to use different vhosts in
order to have an IDP and SP on the same machine, AFAIR.
So whatever is happening is environmential and specific to your
deployment.
-peter