Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
For http client side, how to use tls.Config GetClientCertificate() #40185
I'm using the http client to do mutual tls verify for different endpoints(or different client cert for different servers).
Not sure if GetClientCertificate() could be used for it. I'm a little confused about it. Because CertificateRequestInfo doesn't have server endpoint or host info.
GetClientCertificate func(*CertificateRequestInfo) (*Certificate, error) // Go 1.8
It would be great if someone could give such an example? or maybe any other method to meet this requirement?
What version of Go are you using (
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For asking questions, see:
Please ask the question on one of the above forums.
(Quoted from https://golang.org/wiki/Questions)