/tls/ -- add ValidCert, without it being true https is not usable
This commit is contained in:
@@ -1155,6 +1155,8 @@ func validateCertificates(data tlsConfig) tlsConfig {
|
||||
return data
|
||||
}
|
||||
|
||||
data.ValidCert = true
|
||||
|
||||
// spew.Dump(parsedCerts)
|
||||
|
||||
opts := x509.VerifyOptions{
|
||||
@@ -1172,9 +1174,6 @@ func validateCertificates(data tlsConfig) tlsConfig {
|
||||
opts.Intermediates = pool
|
||||
}
|
||||
|
||||
// clear out all warnings and statuses
|
||||
data.tlsConfigStatus = tlsConfigStatus{}
|
||||
|
||||
// TODO: save it as a warning rather than error it out -- shouldn't be a big problem
|
||||
mainCert := parsedCerts[0]
|
||||
_, err := mainCert.Verify(opts)
|
||||
|
||||
Reference in New Issue
Block a user