Skip to content

feat: add full certificate chain download and display support#7

Merged
krakenhavoc merged 2 commits into
mainfrom
feat/cert-chain-support
May 14, 2026
Merged

feat: add full certificate chain download and display support#7
krakenhavoc merged 2 commits into
mainfrom
feat/cert-chain-support

Conversation

@krakenhavoc

@krakenhavoc krakenhavoc commented May 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add ChainPem field to TlsCert type and TlsCertChainInfo/TlsCertChainEntry types
  • Add GetCertChain() API client method for GET /certs/tls/:id/chain
  • cert download now supports --format flag: cert (leaf only), chain (intermediates), fullchain (leaf + intermediates)
  • cert issue and cert submit now write chain and fullchain files alongside the leaf cert (--chain-out, --fullchain-out)
  • cert show displays intermediate chain details (subject, issuer, fingerprint)

Test plan

  • 9 new tests: download formats (chain, fullchain, no-chain error, invalid format, default filenames), show with intermediates, issue/submit chain file output
  • All 38 CLI cert tests pass (go vet + go test -race)
  • Manual: krakenkey cert download <id> --format fullchain against staging API
  • Depends on: feat: add full certificate chain support app#79 (backend chain endpoint)

@krakenhavoc
krakenhavoc merged commit 5c60776 into main May 14, 2026
4 checks passed
@krakenhavoc
krakenhavoc deleted the feat/cert-chain-support branch May 14, 2026 14:15
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.

1 participant