Skip to content

cert: OCSP verb group (§6.1) #13722

Done

Description

@dezren39

Child of #9157 (fleet cert build-out, program #9155). Foundation landed in PR #13720: the fleet-cert crate, bundle format (fleet-cert-manifest/v1), chain validator, and the core create/inspect/list verbs exist; this issue is the remaining verb group.

Scope (spec §6.1): fleet cert ocsp sign|inspect|test and responder profile support — delegated OCSP signing certificates from issuer bundles, response generation/verification against the crate chain code. Acceptance: synthetic end-to-end — leaf status good/revoked served and verified locally.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage verdict (lane any-o, queue task 22391, 2026-11-24): genuine remaining work — routed as a feature_slice.

    Fresh verification on current main: fleet cert --help shows root/issuer/leaf/chain/bundle/profile/algorithms/explain/doctor — no ocsp group; fleet-cert/src/cli.rs NOT_BUILT table confirms ocsp unbuilt (spec §4.3 responder-gated). Foundation PR #13720 merged; parent #9157 open and active. No existing queue item for this issue. Follow-on packet enqueued (see queue task referencing this issue).

  3. added a commit that references this issue on Nov 24, 2026
  4. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    Contributor

    Slice complete — landed via PR #14316 (merged 2026-11-24T11:14:12Z, merge commit 65cf7bb41ffd08c2517ffe28209efaf01c85c64f; queue task 23219).

    What shipped, per this issue's scope (fleet cert ocsp sign|inspect|test + responder profile support):

    • Delegated responder profile ocsp-responder — P-256, digitalSignature, EKU id-kp-OCSPSigning only, 30-day default validity, id-pkix-ocsp-nocheck extension (RFC 6960 §3.2). Minted through the existing leaf issue --profile ocsp-responder path; a new LeafProfile.ocsp_no_check flag drives the extension in issue_leaf.
    • fleet cert ocsp sign — builds and signs a real BasicOCSPResponse from an issuer bundle: directly with the issuer key (--issuer-key-dir), or delegated (--responder bundle + its key dir; signer cert embedded, responderID byKey). --status good|revoked|unknown, --reason, --hash sha1|sha256, explicit --this-update/--next-update or defaults (now / +7d), DER or PEM output.
    • fleet cert ocsp inspect — parses a response (DER or PEM) and, with --issuer + --leaf/--serial, verifies it against the crate's chain code: signature, responder authorization (direct, or issuer signature over the responder cert + OCSP-signing EKU + producedAt inside responder validity), CertID binding (the response's own serial is never trusted — the expected serial is a required input), freshness with a 300 s skew allowance, and status. Exit 0 only when every check passes.
    • fleet cert ocsp test — the synthetic end-to-end from the acceptance criteria: hierarchy + responder built in a temp dir; delegated good and revoked responses produced and verified locally; direct-signed good verified; tamper, wrong-serial, and stale cases all rejected.
    • doctor no longer lists ocsp as not built; explain ocsp added; crate README updated.

    Evidence:

    • cargo test -p fleet-cert: 24 unit + 7 hierarchy + 3 new OCSP integration tests pass (responder profile shape pinned against an openssl oracle; SHA-1 hand-rolled with FIPS known-answer tests — the sha1 crate is absent from the workspace lock and SHA-1 here is identifier hashing only).
    • Independent oracle: OpenSSL verifies both a delegated good and a delegated revoked response produced by this code (Response verify OK; revoked reads reason superseded with correct times). That check caught two real DER tagging bugs pre-merge — ResponderID is EXPLICIT-tagged, and certs [0] wraps the SEQUENCE OF encoding — both fixed and covered by the round-trip tests.
    • Live CLI run: ceremony → leaf + responder issuance → delegated good sign → inspect VALID → issuer-signed revoked sign → inspect VALID → ocsp test PASS.

    Deliberately out of scope (per spec §4.3): no OCSP URL is embedded in any certificate, and no HTTP responder serving — this is the signing-authorized responder core a deployment serves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions