You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returns tls: neither Certificates nor GetCertificate set in Config.
What did you expect to see?
tls.Listen should accept a tls.Config that has GetConfigForClient set, even if Certificates and GetCertificate is not set.
It should use the tls.Config returned by that callback, and close the connection with an error in case the returned tls.Config is nil or doesn't have any certificate configured, depending on the SNI.
What did you see instead?
tls.Listen didn't accept the tls.Config and returned an error.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?What did you do?
Assume that I have a valid
tls.Config
(withCertificates
set), saved in the variableconf
.Then I can start listening on a new connection by running
Now I want to build a more sophisticated
tls.Config
, which in the simplest case takes the following formNow
returns
tls: neither Certificates nor GetCertificate set in Config
.What did you expect to see?
tls.Listen
should accept atls.Config
that hasGetConfigForClient
set, even ifCertificates
andGetCertificate
is not set.It should use the
tls.Config
returned by that callback, and close the connection with an error in case the returnedtls.Config
isnil
or doesn't have any certificate configured, depending on the SNI.What did you see instead?
tls.Listen
didn't accept thetls.Config
and returned an error.The text was updated successfully, but these errors were encountered: