* tlsConfigStatus.usable is public, renamed ("ValidPair") and is exported to json ("valid_pair")

This commit is contained in:
Simon Zolin
2019-02-27 17:36:02 +03:00
parent f4a6ca726c
commit 5ad9f8ead2
5 changed files with 8 additions and 4 deletions

2
app.go
View File

@@ -179,7 +179,7 @@ func run(args options) {
address := net.JoinHostPort(config.BindHost, strconv.Itoa(config.TLS.PortHTTPS))
// validate current TLS config and update warnings (it could have been loaded from file)
data := validateCertificates(config.TLS.CertificateChain, config.TLS.PrivateKey, config.TLS.ServerName)
if !data.usable {
if !data.ValidPair {
log.Fatal(data.WarningValidation)
os.Exit(1)
}