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 {
}
type TLSConfig struct {
Active bool `yaml:"Active"`
CAFile string `yaml:"CAFile"`
CertFile string `yaml:"CertFile"`
KeyFile string `yaml:"KeyFile"`
Active bool `yaml:"Active"`
InsecureSkipVerify bool `yaml:"InsecureSkipVerify"`
CAFile string `yaml:"CAFile"`
CertFile string `yaml:"CertFile"`
KeyFile string `yaml:"KeyFile"`
}
type QuantumModule struct {
......
......@@ -84,8 +84,9 @@ func GenerateTLSLibraryConfig(tlsConfig config.TLSConfig) (*tls.Config, error) {
}
return &tls.Config{
MinVersion: tls.VersionTLS13,
RootCAs: cp,
Certificates: []tls.Certificate{cert},
MinVersion: tls.VersionTLS13,
RootCAs: cp,
Certificates: []tls.Certificate{cert},
InsecureSkipVerify: tlsConfig.InsecureSkipVerify,
}, nil
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment