Skip to content

Commit d828602

Browse files
author
Andrew Kerr
committed
Disable TLS 1.0/1.1 on inbound HTTPS connections
1 parent 27e4366 commit d828602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/rest/apiserver_https.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 NetApp, Inc. All Rights Reserved.
1+
// Copyright 2021 NetApp, Inc. All Rights Reserved.
22

33
package rest
44

@@ -34,7 +34,7 @@ func NewHTTPSServer(
3434
server: &http.Server{
3535
Addr: fmt.Sprintf("%s:%s", address, port),
3636
Handler: &tlsAuthHandler{handler: handler},
37-
TLSConfig: &tls.Config{ClientAuth: tls.RequireAndVerifyClientCert},
37+
TLSConfig: &tls.Config{ClientAuth: tls.RequireAndVerifyClientCert, MinVersion: config.MinTLSVersion},
3838
ReadTimeout: config.HTTPTimeout,
3939
WriteTimeout: config.HTTPTimeout,
4040
},

0 commit comments

Comments
 (0)