🔐 update minimal TLS version

Co-Authored-By: kiyon <kiyon@gofiber.io>
pull/1078/head
Fenny 2020-12-16 02:50:54 +01:00
parent 23a0f56403
commit f6569040f0
1 changed files with 1 additions and 0 deletions

1
app.go
View File

@ -585,6 +585,7 @@ func (app *App) ListenTLS(addr, certFile, keyFile string) error {
return fmt.Errorf("cannot load TLS key pair from certFile=%q and keyFile=%q: %s", certFile, keyFile, err)
}
config := &tls.Config{
MinVersion: tls.VersionTLS12,
PreferServerCipherSuites: true,
Certificates: []tls.Certificate{
cert,