Skip to content

Commit 2247b57

Browse files
committed
Require minimum TLSv1.3
1 parent d3d6782 commit 2247b57

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

servers/https.go

+1-10
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,7 @@ func NewHttpsServer(conf *conf.Conf, registry *prometheus.Registry) *http.Server
4444
return &http.Server{
4545
Handler: hsts,
4646
TLSConfig: &tls.Config{
47-
// Suggested by https://ssl-config.mozilla.org/#server=go&version=1.21.5&config=intermediate
48-
MinVersion: tls.VersionTLS12,
49-
CipherSuites: []uint16{
50-
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
51-
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
52-
tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
53-
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
54-
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
55-
tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,
56-
},
47+
MinVersion: tls.VersionTLS13,
5748
GetCertificate: func(info *tls.ClientHelloInfo) (*tls.Certificate, error) {
5849
// error out on invalid domains
5950
if !conf.Domains.IsValid(info.ServerName) {

0 commit comments

Comments
 (0)