Skip to content

cert: format convert|verify verb group (§6.1) - #14424

Open
dezren39 wants to merge 2 commits into
mainfrom
cert/13727-format-convert
Open

dezren39 wants to merge 2 commits into
mainfrom
cert/13727-format-convert

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Adds fleet cert format convert --in <file> --to pem|der [--out <file>] and fleet cert format verify --in <file> in pkgs/fleet/crates/fleet-cert.

  • Input is parsed as one X.509 certificate before output; trailing data and multiple PEM certificate blocks are rejected.
  • verify round-trips PEM and DER and requires identical certificate bytes.
  • Tests cover Ed25519, P-256, RSA-2048, RSA-4096 and ML-DSA-44.

Scope: certificates only. Private-key, PKCS#12 and CMS conversion are follow-ups under #9157.

Closes #13727

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T14:35:45Z",
    "session_id": "ses_e5df224ad70ffedKtE0C02Ge9A",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/wt-cert-13727",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/wt-cert-13727",
      "repo": "developing-today/code",
      "branch": "cert/13727-format-convert",
      "sha": "bf9ca3c9abf5dce979dcd32869c5be01941da758"
    },
    "auth_subject": "oc-code-01",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

PEM<->DER conversion for single X.509 certificates, parsed before output.
verify round-trips both encodings. Tests cover all five registered
algorithms including ML-DSA-44.

Closes #13727
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 39d55848-fecd-4a8a-b5b7-2abb1114e83f
Commits

Reviewing files that changed from the base of the PR and between 1e06e71 and bf9ca3c.

Files selected for processing: 3

  • pkgs/fleet/crates/fleet-cert/src/cli.rs
  • pkgs/fleet/crates/fleet-cert/src/format.rs
  • pkgs/fleet/crates/fleet-cert/src/lib.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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.

cert: format conversion verb group (§6.1)

1 participant