mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:16:28 +01:00
minor
This commit is contained in:
parent
a5c43f1d9d
commit
28af63fd84
|
@ -106,6 +106,7 @@ func CERT(addr string, cert tls.Certificate) (net.Listener, error) {
|
||||||
tlsConfig := &tls.Config{
|
tlsConfig := &tls.Config{
|
||||||
Certificates: []tls.Certificate{cert},
|
Certificates: []tls.Certificate{cert},
|
||||||
PreferServerCipherSuites: true,
|
PreferServerCipherSuites: true,
|
||||||
|
MinVersion: tls.VersionTLS11,
|
||||||
}
|
}
|
||||||
return tls.NewListener(l, tlsConfig), nil
|
return tls.NewListener(l, tlsConfig), nil
|
||||||
}
|
}
|
||||||
|
@ -145,7 +146,7 @@ func LETSENCRYPT(addr string, reuse bool, serverName string, cacheDirOptional ..
|
||||||
} else {
|
} else {
|
||||||
m.Cache = autocert.DirCache(cacheDir)
|
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
|
// use InsecureSkipVerify or ServerName to a value
|
||||||
if serverName == "" {
|
if serverName == "" {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user