aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--https/tls_config.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/https/tls_config.go b/https/tls_config.go
index 7d381b8..4b29862 100644
--- a/https/tls_config.go
+++ b/https/tls_config.go
@@ -50,7 +50,9 @@ func getTLSConfig(configPath string) (*tls.Config, error) {
50 50
51// ConfigToTLSConfig generates the golang tls.Config from the TLSStruct config. 51// ConfigToTLSConfig generates the golang tls.Config from the TLSStruct config.
52func ConfigToTLSConfig(c *TLSStruct) (*tls.Config, error) { 52func ConfigToTLSConfig(c *TLSStruct) (*tls.Config, error) {
53 cfg := &tls.Config{} 53 cfg := &tls.Config{
54 MinVersion: tls.VersionTLS12,
55 }
54 if len(c.TLSCertPath) == 0 { 56 if len(c.TLSCertPath) == 0 {
55 return nil, errors.New("missing TLSCertPath") 57 return nil, errors.New("missing TLSCertPath")
56 } 58 }