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
I have been looking at the code and found that the certificate algorithm is not considered which I found odd. Instead the implementation does the following:
The decision is made based on the PrivateKey, not the X509Certificate
Our solution to this would be to use X509Certificate#getSigAlgName() and map it to the required URI. The current implementation would remain as fallback should the mapping not find any URI.
Are there any concerns about evaluating the certificate as first source for the algorithm URI or are there any side effects we are currently not aware of?
We would appreciate your ideas and thoughts on this. Thank you.
UPDATE:
See here for the proposed implementation. Unfortunately we could not find a better way to map the URI to the algorithm name.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
while working on our project we changed the signing certificate to ECDSA. However this triggered an exception during sso:
Reduced stacktrace. Full stack trace see ec-stacktrace.log.
I have been looking at the code and found that the certificate algorithm is not considered which I found odd. Instead the implementation does the following:
com.sun.identity.saml.xmlsig.xmlSigAlgorithm
)http://www.w3.org/2000/09/xmldsig#rsa-sha1
. I could not find yet where this comes from.dsa-sha1
orrsa-sha1
PrivateKey
, not theX509Certificate
Our solution to this would be to use
X509Certificate#getSigAlgName()
and map it to the required URI. The current implementation would remain as fallback should the mapping not find any URI.Are there any concerns about evaluating the certificate as first source for the algorithm URI or are there any side effects we are currently not aware of?
We would appreciate your ideas and thoughts on this. Thank you.
UPDATE:
See here for the proposed implementation. Unfortunately we could not find a better way to map the URI to the algorithm name.
Beta Was this translation helpful? Give feedback.
All reactions