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

crypto/tls: add an example for using VerifyPeerCertificate to customize verification logic #31792

FiloSottile opened this issue May 1, 2019 · 2 comments


Copy link

@FiloSottile FiloSottile commented May 1, 2019

A number of proposals to add knobs to tls.Config were closed by providing a way to achieve the same result with InsecureSkipVerify and VerifyPeerCertificate. There should be a basic example that replicates the standard verification logic, so users can edit if needed.


This comment has been minimized.

Copy link
Member Author

@FiloSottile FiloSottile commented May 1, 2019

@andybons andybons modified the milestones: Go1.13, Go1.14 Jul 8, 2019

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Sep 5, 2019

Change mentions this issue: crypto/tls: add ExampleConfig_VerifyPeerCertificate

@rsc rsc modified the milestones: Go1.14, Backlog Oct 9, 2019
@FiloSottile FiloSottile modified the milestones: Backlog, Go1.14 Oct 23, 2019
@gopherbot gopherbot closed this in 29cfb4d Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.