Skip to content
Snippets Groups Projects
Unverified Commit 84dfc663 authored by Max Adamo's avatar Max Adamo
Browse files

remove debug messages

parent 2588f544
Branches
Tags
No related merge requests found
......@@ -214,8 +214,12 @@ func checkCertificates(dnsname string, certificate string, fullchain string, ca
func checkPrivkey(privkey string, pubkey string, fail bool) bool {
_, errFileExist := os.Stat(privkey)
if os.IsNotExist(errFileExist) {
fmt.Printf("%v could not access the private key %v\n", errMsg, privkey)
appExit(255)
if fail == true {
fmt.Printf("%v could not access the private key %v\n", errMsg, privkey)
appExit(255)
} else {
return false
}
}
_, err := tls.LoadX509KeyPair(pubkey, privkey)
if fail == true {
......@@ -560,6 +564,7 @@ Options:
fmt.Printf("%v the certificate is still valid\n", infoMsg)
appExit(0)
}
certificate := GetRedisKey(RedisCertURL, RedisToken)
ca := GetRedisKey(RedisCAURL, RedisToken)
fullChain := GetRedisKey(RedisFullChainURL, RedisToken)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment