Skip to content

Conversation

@aloopkin
Copy link
Contributor

Ensure that the encoding used for the signed attributes is the one specified in the original message

Reason behind that:

  • some SCEP clients do not fully comply with RFC 5652, and e.g. encode the signed attributes in BER or other attributes ordering issues
  • BC by defaults rebuilds the signed attributes before verification using ASN1Encoding.DER
    As a result, verification fails because the hash of the signed attributes does not match the signature, since the signed attributes have been rebuilt.
    More information there: PKCS#7 / CMS Signature validation failure with unordered attributes bcgit/bc-java#1365

The current PR allows to retrieve the "raw" signed attributes, coming from the request, instead of rebuilding them for signature verification.

ensure that the encoding used for the signed attributes is the one specified in the original message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant