Skip to content

Commit

Permalink
Forcing TLS 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oxtoacart committed Nov 7, 2014
1 parent e249320 commit 7c11866
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func listenTLS(addr string, pkfile string, certfile string) (net.Listener, error
}

cfg := tlsdefaults.Server()
cfg.MinVersion = tls.VersionTLS12 // force newest available version of TLS
cfg.Certificates = []tls.Certificate{cert}
return tls.Listen("tcp", addr, cfg)
}
Expand Down

0 comments on commit 7c11866

Please sign in to comment.