tls.Config.VerifyPeerCertificate should have serverHandshakeState or tls.Conn argument #29895
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I want to be able to validate a client certificate's hostname on a TLS server with
ClientAuth: tls.RequireAndVerifyClientCert,
set on the servertls.Config
by using theVerifyPeerCertificate
method.What did you expect to see?
I expected the
serverHandshakeState
ortls.Conn
from theserverHandshakeState
to be passed to theVerifyPeerCertificate
methodWhat did you see instead?
No connection information is passed to the
VerifyPeerCertificate
methodThe text was updated successfully, but these errors were encountered: