You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default algorithm is used. This is sha1. Sha1 in FIPS mode (openssl) is not permitted. xmlsec1 will crash or error out. I'll put error messages in a comment.
Possible Solution
In Entity constructor, when getting the algorithms from the config, include the context which is self.entity_type.
Or, alter config getattr such that if context is specified, look there first. If the attribute is not there, then look it up (inherit) from one level up.
And/Or, drop the {context}{attr}, and stick with nested dictionaries.
Or, set the default algorithm to be anything but sha1 which is considered insecure.
Steps to Reproduce
Use PySAML2 with OpenSSL in FIPS mode. Otherwise pretty generic config. set authn_requests_signed to true.
The text was updated successfully, but these errors were encountered:
sp specific algorithms not being used
Code Version
7.4
Expected Behavior
https://pysaml2.readthedocs.io/en/latest/howto/config.html#signing-algorithm should be used as demonstrated.
Current Behavior
The default algorithm is used. This is sha1. Sha1 in FIPS mode (openssl) is not permitted. xmlsec1 will crash or error out. I'll put error messages in a comment.
Possible Solution
In Entity constructor, when getting the algorithms from the config, include the context which is self.entity_type.
Or, alter config getattr such that if context is specified, look there first. If the attribute is not there, then look it up (inherit) from one level up.
And/Or, drop the {context}{attr}, and stick with nested dictionaries.
Or, set the default algorithm to be anything but sha1 which is considered insecure.
Steps to Reproduce
Use PySAML2 with OpenSSL in FIPS mode. Otherwise pretty generic config. set authn_requests_signed to true.
The text was updated successfully, but these errors were encountered: