Add AIA display to certdump.

This commit is contained in:
Kyle Isom 2015-12-07 14:29:30 -08:00
parent ad5a7ca0be
commit 1535cba7a4
1 changed files with 14 additions and 0 deletions

View File

@ -166,6 +166,20 @@ func displayCert(cert *x509.Certificate) {
sans := fmt.Sprintf("SANs (%d): %s\n", len(validNames), strings.Join(validNames, ", ")) sans := fmt.Sprintf("SANs (%d): %s\n", len(validNames), strings.Join(validNames, ", "))
wrapPrint(sans, 1) wrapPrint(sans, 1)
l := len(cert.IssuingCertificateURL)
if l != 0 {
var aia string
if l == 1 {
aia = "AIA"
} else {
aia = "AIAs"
}
wrapPrint(fmt.Sprintf("%d %s:", l, aia), 1)
for _, url := range cert.IssuingCertificateURL {
wrapPrint(url, 2)
}
}
} }
func displayAllCerts(in []byte, leafOnly bool) { func displayAllCerts(in []byte, leafOnly bool) {