From 20376a66d52ea418213bb5ac7e9328cd0d513851 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 26 Dec 2018 15:40:10 -0500 Subject: pem-diff: Learn about precertificates --- bin-src/crtsh-pem2html.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin-src/crtsh-pem2html.go') diff --git a/bin-src/crtsh-pem2html.go b/bin-src/crtsh-pem2html.go index c0b815c..2c9debb 100644 --- a/bin-src/crtsh-pem2html.go +++ b/bin-src/crtsh-pem2html.go @@ -29,10 +29,8 @@ func handleBool(ok bool, str string, a ...interface{}) { } func rfc6962type(certX509 *x509.Certificate) string { - for _, ext := range certX509.Extensions { - if ext.Id.Equal(util.OID_RFC6962_Poison) { - return "Precertificate" - } + if util.IsPrecertificate(certX509) { + return "Precertificate" } return "Certificate" } -- cgit v1.2.3