From f710b828992823db5a13eb4988da944f386fcf53 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Mon, 11 Jul 2016 17:38:09 -0700 Subject: [PATCH] certdump - show OCSP servers --- cmd/certdump/certdump.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmd/certdump/certdump.go b/cmd/certdump/certdump.go index 187e441..27b9d37 100644 --- a/cmd/certdump/certdump.go +++ b/cmd/certdump/certdump.go @@ -182,6 +182,18 @@ func displayCert(cert *x509.Certificate) { wrapPrint(url, 2) } } + + l = len(cert.OCSPServer) + if l > 0 { + title := "OCSP server" + if l > 1 { + title += "s" + } + wrapPrint(title+":\n", 1) + for _, ocspServer := range cert.OCSPServer { + wrapPrint(fmt.Sprintf("- %s\n", ocspServer), 2) + } + } } func displayAllCerts(in []byte, leafOnly bool) {