Skip to content

Conversation

@yerlibilgin
Copy link
Contributor

https://datatracker.ietf.org/doc/html/rfc5758#section-3.2 says this:

When the ecdsa-with-SHA224, ecdsa-with-SHA256, ecdsa-with-SHA384, or
ecdsa-with-SHA512 algorithm identifier appears in the algorithm field
as an AlgorithmIdentifier, the encoding MUST omit the parameters
field. That is, the AlgorithmIdentifier SHALL be a SEQUENCE of one
component, the OID ecdsa-with-SHA224, ecdsa-with-SHA256, ecdsa-with-
SHA384, or ecdsa-with-SHA512.

Otherwise, the certiticates generated by tools that conform this rule, cannot be verified, or der encodings add that parameter and chain verifications of the TBS certificate fail.

This pull request fixes this, by omitin the parameter for algid where the signature algorithm is one of the mentioned above.

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