Skip to content

Dont allow unknown issuer when we have a custom root-of-trust#27

Open
ameba23 wants to merge 1 commit intomainfrom
peg/fix-private-ca-cert-verification
Open

Dont allow unknown issuer when we have a custom root-of-trust#27
ameba23 wants to merge 1 commit intomainfrom
peg/fix-private-ca-cert-verification

Conversation

@ameba23
Copy link
Copy Markdown
Collaborator

@ameba23 ameba23 commented Apr 16, 2026

Fix AttestedCertificateVerifier so a configured private RootCertStore will not allow an UnknownIssuer error.

This changes the server and client certificate verifiers:

  • If there is a configured private CA (root of trust) it is used to verify the cert, and UnknownIssue error will result in failure.
  • Otherwise allow self-signed attested certs with the existing manual name/time validation.

Added tests covering both server and client verification with given root of trust.

Closes #25

@ameba23 ameba23 requested a review from 0x416e746f6e April 16, 2026 10:42
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.

bug: private CA ignores UnknownIssuer error

1 participant