Skip to content
Snippets Groups Projects
Commit f78f77dd authored by Malte Bauch's avatar Malte Bauch Committed by Neil-Jocelyn Schark
Browse files

Add additional TLS config option: InsecureSkipVerify

See merge request !207
parent 9a9029b9
No related branches found
No related tags found
1 merge request!207Add additional TLS config option: InsecureSkipVerify
Pipeline #223551 passed
...@@ -31,10 +31,11 @@ type Peer struct { ...@@ -31,10 +31,11 @@ type Peer struct {
} }
type TLSConfig struct { type TLSConfig struct {
Active bool `yaml:"Active"` Active bool `yaml:"Active"`
CAFile string `yaml:"CAFile"` InsecureSkipVerify bool `yaml:"InsecureSkipVerify"`
CertFile string `yaml:"CertFile"` CAFile string `yaml:"CAFile"`
KeyFile string `yaml:"KeyFile"` CertFile string `yaml:"CertFile"`
KeyFile string `yaml:"KeyFile"`
} }
type QuantumModule struct { type QuantumModule struct {
......
...@@ -84,8 +84,9 @@ func GenerateTLSLibraryConfig(tlsConfig config.TLSConfig) (*tls.Config, error) { ...@@ -84,8 +84,9 @@ func GenerateTLSLibraryConfig(tlsConfig config.TLSConfig) (*tls.Config, error) {
} }
return &tls.Config{ return &tls.Config{
MinVersion: tls.VersionTLS13, MinVersion: tls.VersionTLS13,
RootCAs: cp, RootCAs: cp,
Certificates: []tls.Certificate{cert}, Certificates: []tls.Certificate{cert},
InsecureSkipVerify: tlsConfig.InsecureSkipVerify,
}, nil }, nil
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment