This commit is contained in:
Gerasimos (Makis) Maropoulos 2022-03-06 21:15:11 +02:00
parent a5c43f1d9d
commit 28af63fd84
No known key found for this signature in database
GPG Key ID: 66FCC29BD385FCA6

View File

@ -106,6 +106,7 @@ func CERT(addr string, cert tls.Certificate) (net.Listener, error) {
tlsConfig := &tls.Config{
Certificates: []tls.Certificate{cert},
PreferServerCipherSuites: true,
MinVersion: tls.VersionTLS11,
}
return tls.NewListener(l, tlsConfig), nil
}
@ -145,7 +146,7 @@ func LETSENCRYPT(addr string, reuse bool, serverName string, cacheDirOptional ..
} else {
m.Cache = autocert.DirCache(cacheDir)
}
tlsConfig := &tls.Config{GetCertificate: m.GetCertificate, MinVersion: tls.VersionTLS13}
tlsConfig := &tls.Config{GetCertificate: m.GetCertificate, MinVersion: tls.VersionTLS11}
// use InsecureSkipVerify or ServerName to a value
if serverName == "" {