Skip to content

Harden CKTAP certificate validation and add production-root checks - #72

Merged
reez merged 1 commit into
bitcoindevkit:masterfrom
bitcoinppl:fix-cert-check
Aug 10, 2026
Merged

Harden CKTAP certificate validation and add production-root checks#72
reez merged 1 commit into
bitcoindevkit:masterfrom
bitcoinppl:fix-cert-check

Conversation

@praveenperera

@praveenperera praveenperera commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an explicit production-root certificate check
  • reject empty or malformed certificate data with validation errors
  • use the production-only check from UniFFI

Scope

This hardens rust-cktap certificate validation. It does not make certificate checking automatic. Applications must call the check before setup, import, signing, or other operations that depend on card authenticity.

Cove had a separate integration defect: it created and used a TAPSIGNER without calling the certificate check. That call-site fix belongs in Cove.

Verification

All GitHub Actions build, test, formatting, and Clippy checks pass.

Require certificate validation to enforce the production Coinkite factory
root so a fake TAPSIGNER is reported as counterfeit. Reject malformed or
empty certificate data as a validation error.
@praveenperera praveenperera changed the title Fix counterfeit TAPSIGNER detection Harden CKTAP certificate validation and add production-root checks Aug 10, 2026

@reez reez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK ac1654f

Thanks for this!

@reez
reez merged commit 421664d into bitcoindevkit:master Aug 10, 2026
10 checks passed
@praveenperera
praveenperera deleted the fix-cert-check branch August 10, 2026 19:09
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.

2 participants