Fixes #249 Make cert_text a first class anchor - #250
Conversation
|
OASIS SAML V2.0 Metadata Interoperability Profile Version 1.0, section 2.6.1 even says it explicitly:
https://docs.oasis-open.org/security/saml/Post2.0/sstc-metadata-iop.html |
@MartijnVdS can you give a little more context? I read this as you are agreeing with the PR and my comment above but would like to be sure I am not missing anything. Also, I will review your PR to see if I missed anything. |
Sorry, should have given some more context. This is what I found while writing my PR, and it confirms that pinning the certificate you get from the (IdP) metadata is the correct way to handle it. |
cert_text with XML::Sig (which needs a documentation update) ignores any X509 data in the XML and "pins" the verification certificate to the certificate passed in cert_text.
both cacert and cert_text can be used but cert_text is more secure since it does not trust a signature signed a different certificate issued by the same CA as the trusted certificate.