Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback to Verify x5Chains #27

Open
ben-krieger opened this issue Dec 9, 2024 · 0 comments
Open

Callback to Verify x5Chains #27

ben-krieger opened this issue Dec 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ben-krieger
Copy link
Member

TO2 verifies the public key of the x5chain using the leaf certificate in the same way as with x509-encoded public keys. This ignores all other contents of the leaf certificate as well as the rest of the chain.

TO2Config should contain a callback similar in style to (*tls.Config).VerifyPeerCertificate that allows TO2 to fail if any chains are untrusted. There should also probably be a simpler configuration for the most common convention - such as verifying all chains with a single https://pkg.go.dev/crypto/x509#VerifyOptions.

@ben-krieger ben-krieger added the enhancement New feature or request label Dec 9, 2024
@ben-krieger ben-krieger self-assigned this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant