From 9342adcd9328ef1fc2005cad9e59d3990d8d7181 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Mon, 9 May 2016 15:41:00 -0700 Subject: [PATCH] Tighten up the cert information output Remove subject and SANs since they are redundant with earlier identifier listing. Remove serial number because who cares? Put type of entry on same line as log entry info. If people want this info they can always examine the saved file or the crt.sh page. --- helpers.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/helpers.go b/helpers.go index 4c1feb4..30bec3f 100644 --- a/helpers.go +++ b/helpers.go @@ -334,21 +334,11 @@ func (info *EntryInfo) Write (out io.Writer) { writeField(out, "Parse Error", "*** " + info.ParseError.Error() + " ***", nil) } else if info.CertInfo != nil { writeField(out, "Pubkey", info.CertInfo.PubkeyHash(), nil) - writeField(out, "Subject", info.CertInfo.Subject, info.CertInfo.SubjectParseError) - if info.CertInfo.SANsParseError != nil { - writeField(out, "Alt Names", nil, info.CertInfo.SANsParseError) - } else { - for _, san := range info.CertInfo.SANs { - writeField(out, "Alt Name", san.String(), nil) - } - } writeField(out, "Issuer", info.CertInfo.Issuer, info.CertInfo.IssuerParseError) - writeField(out, "Serial", info.CertInfo.SerialNumber, info.CertInfo.SerialNumberParseError) writeField(out, "Not Before", info.CertInfo.NotBefore(), info.CertInfo.ValidityParseError) writeField(out, "Not After", info.CertInfo.NotAfter(), info.CertInfo.ValidityParseError) } - writeField(out, "Type", info.typeFriendlyString(), nil) - writeField(out, "Log Entry", fmt.Sprintf("%d @ %s", info.Entry.Index, info.LogUri), nil) + writeField(out, "Log Entry", fmt.Sprintf("%d @ %s (%s)", info.Entry.Index, info.LogUri, info.typeFriendlyString()), nil) writeField(out, "crt.sh", "https://crt.sh/?q=" + fingerprint, nil) if info.Filename != "" { writeField(out, "Filename", info.Filename, nil)