Skip to content

cocli corim verify — x5chain + --root verification #59

Description

@magickli1

Hi,

corim-tool already supports verifying a signed CoRIM via the embedded COSE x5chain header and optional --root (README). cocli corim verify currently only documents --key (JWK).

I'm working on adding the same x5chain-based verification to cocli:

cocli corim verify --file signed-corim.cbor --root root-ca.der

--key would remain supported as an alternative, as in corim-tool.

Before I open a PR, I'd like to confirm:

  1. Is this the expected direction for CLI parity with corim-tool?
  2. For x5chain validation, is full PKIX path validation the expected approach (validity, CA/basic constraints, key usage, chain building to trusted roots)? Or should a lighter check (e.g. signature chain only) be sufficient?
  3. Any preferences on --root flag naming or trust-store behavior (system roots + explicit --root)?
  4. Should optional --crl support be included? (corim-tool does not have this yet.)

Happy to contribute if this aligns with the project's roadmap.

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