Prefer server cipher suites

This commit is contained in:
Paper 2021-01-03 12:45:59 +01:00
parent 92cd40db12
commit 53644b96e0
1 changed files with 5 additions and 3 deletions

View File

@ -56,10 +56,12 @@ func main() {
errorLog.Println("Error loading TLS keypair: " + err.Error())
log.Fatal(err)
}
tlscfg := &tls.Config{
Certificates: []tls.Certificate{cert},
MinVersion: tls.VersionTLS12,
ClientAuth: tls.RequestClientCert,
Certificates: []tls.Certificate{cert},
MinVersion: tls.VersionTLS12,
ClientAuth: tls.RequestClientCert,
PreferServerCipherSuites: true,
}
// Create TLS listener