Browse Source

cmd/derper: disable TLS 1.0 and 1.1.

Updates tailscale/corp#3568

Signed-off-by: David Anderson <[email protected]>
David Anderson 4 years ago
parent
commit
f5ec916214
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cmd/derper/derper.go

+ 2 - 0
cmd/derper/derper.go

@@ -241,6 +241,8 @@ func main() {
 			cert.Certificate = append(cert.Certificate, s.MetaCert())
 			return cert, nil
 		}
+		// Disable TLS 1.0 and 1.1, which are obsolete and have security issues.
+		httpsrv.TLSConfig.MinVersion = tls.VersionTLS12
 		httpsrv.Handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
 			if r.TLS != nil {
 				label := "unknown"