summaryrefslogtreecommitdiff
path: root/bin-src/crtsh-pem2html.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2018-12-26 15:40:10 -0500
committerLuke Shumaker <lukeshu@datawire.io>2018-12-26 15:40:10 -0500
commit20376a66d52ea418213bb5ac7e9328cd0d513851 (patch)
tree181f6edb070f8e5bf4211feea1b4104bd59fe440 /bin-src/crtsh-pem2html.go
parent36aeaec0b6a04edf7887ecc57393ce2962a6e39c (diff)
pem-diff: Learn about precertificates
Diffstat (limited to 'bin-src/crtsh-pem2html.go')
-rw-r--r--bin-src/crtsh-pem2html.go6
1 files changed, 2 insertions, 4 deletions
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"
}