@ -401,23 +401,8 @@ func (m *ServerMux) ListenAndServe(certFile, keyFile string) (err error) {
// Causes servers to use Go's default ciphersuite preferences,
// Causes servers to use Go's default ciphersuite preferences,
// which are tuned to avoid attacks. Does nothing on clients.
// which are tuned to avoid attacks. Does nothing on clients.
PreferServerCipherSuites : true ,
PreferServerCipherSuites : true ,
// Only use curves which have assembly implementations
CurvePreferences : [ ] tls . CurveID {
tls . CurveP256 ,
} ,
// Set minimum version to TLS 1.2
// Set minimum version to TLS 1.2
MinVersion : tls . VersionTLS12 ,
MinVersion : tls . VersionTLS12 ,
CipherSuites : [ ] uint16 {
tls . TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 ,
tls . TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ,
tls . TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,
tls . TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 ,
// Best disabled, as they don't provide Forward Secrecy,
// but might be necessary for some clients
// tls.TLS_RSA_WITH_AES_256_GCM_SHA384,
// tls.TLS_RSA_WITH_AES_128_GCM_SHA256,
} ,
} // Always instantiate.
} // Always instantiate.
if tlsEnabled {
if tlsEnabled {