Skip to content

Bug report: The "Parse X.509 certificate" ingredient shows wrong values for r and s in an ECDSA signature #1494

@david-bakker

Description

@david-bakker

Describe the bug
The Parse X.509 certificate shows wrong values for r and s in an ECDSA signature

To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:

  • Version: 9.55.0
  • Compile time: 09/12/2022 11:42:13 UTC
  • User-Agent:
    Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
  • Link to reproduce

Expected behaviour
The example certificate above was signed using curve P-521. Therefore, both r and s should be 521 bits (66 bytes). But r is only 2 bytes, and s is 29 bytes; both very strange lengths. The certificate itself is correct. If I parse it using 'Parse ASN.1 hex string', the signature is a SEQUENCE of two INTEGERS of 66 bytes each, as expected.

Screenshots
If applicable, add screenshots to help explain your problem.

Picture1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions