Skip to content

feat: build X.509 certificate chains #60

Description

@polaz

Summary

Implement ROADMAP task P2-004: build ordered X.509 certificate chains from parsed KeyInfo/X509Data certificates.

Scope

  • Parse and retain embedded X.509 certificates already extracted by P2-003.
  • Identify the signing certificate by X509Data lookup hints where available: subject DN, issuer+serial, and SKI.
  • Order certificates by issuer -> subject relationship with a bounded maximum depth.
  • Preserve unsupported public-key algorithms as parsed certificate metadata without failing chain construction.
  • Include dependency updates in the same PR before feature implementation.

Acceptance Criteria

  • X509Data with unordered certificate entries produces an ordered chain starting at the signing certificate.
  • SubjectName, IssuerSerial, and SKI hints select the expected signing certificate when present.
  • Excessive depth, duplicate/ambiguous links, and missing issuer links are rejected or reported deterministically.
  • Existing X509 parsing behavior remains compatible with current tests.
  • Full workspace build, clippy, nextest, doc tests pass.

Estimate

3d implementation + tests, plus 0.5d dependency update/verification.

Closes: roadmap P2-004

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions