mirror of
https://github.com/square/certigo.git
synced 2024-04-21 12:32:40 +00:00
Avoid null key on verify error in JSON output
This commit is contained in:
@@ -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++ {
|
||||
|
||||
Reference in New Issue
Block a user