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
When you use configtls.ServerConfig or configtls.ClientConfig, our code eventually calls tls.NewListener. This method, as expected, has the following requirement:
The configuration config must be non-nil and must include at least one certificate or else set GetCertificate.
which means that if you set a TLS configuration without certificates you then get the following runtime error (thanks @jade-guiton-dd for checking this):
Component(s)
No response
Describe the issue you're reporting
When you use
configtls.ServerConfig
orconfigtls.ClientConfig
, our code eventually callstls.NewListener
. This method, as expected, has the following requirement:which means that if you set a TLS configuration without certificates you then get the following runtime error (thanks @jade-guiton-dd for checking this):
We can make this into a validation error so that users can detect this faster.
This would mean adding a check in the
Validate
function forconfigtls.Config
.The text was updated successfully, but these errors were encountered: