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
{{ message }}
Repository navigation
[configtls] Fail fast if configuration does not have a certificate #13130
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):
Activity
areebahmeddd commentedon Jun 2, 2025
Hi @mx-psi!
should validation also check that certificate files exist and are readable at config validation time?
feat(configtls): add validation to fail fast on missing certificates (#…
chore(deps): update devdependencies (non-major) (#23)