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/pem-diff.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin-src/pem-diff.go') diff --git a/bin-src/pem-diff.go b/bin-src/pem-diff.go index da27a62..0159349 100644 --- a/bin-src/pem-diff.go +++ b/bin-src/pem-diff.go @@ -10,6 +10,8 @@ import ( "os" "sort" "strings" + + "./util" ) func handleErr(err error, str string, a ...interface{}) { @@ -89,6 +91,9 @@ func readCrtSh(filename string, hosts []string) (map[string]Cert, error) { if err != nil { return nil, err } + if util.IsPrecertificate(certX509) { + continue + } for _, host := range hosts { if certX509.VerifyHostname(host) == nil { if old, haveold := ret[host]; !haveold || certX509.NotBefore.After(old.X509.NotBefore) { -- cgit v1.2.3