certdump - show OCSP servers

This commit is contained in:
Kyle Isom 2016-07-11 17:38:09 -07:00
parent 4720196aaa
commit f710b82899
1 changed files with 12 additions and 0 deletions

View File

@ -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) {