Avoid null key on verify error in JSON output

This commit is contained in:
Cedric Staub
2016-09-27 13:49:20 -07:00
parent 1c5b5737cb
commit 501b8c17ac
+3 -1
View File
@@ -51,7 +51,9 @@ func caBundle(caPath string) *x509.CertPool {
}
func verifyChain(certs []*x509.Certificate, dnsName, caPath string) simpleVerification {
result := simpleVerification{}
result := simpleVerification{
Chains: [][]simpleVerifyCert{},
}
intermediates := x509.NewCertPool()
for i := 1; i < len(certs); i++ {