diff options
author | Luke Shumaker <lukeshu@datawire.io> | 2018-12-26 15:40:10 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@datawire.io> | 2018-12-26 15:40:10 -0500 |
commit | 20376a66d52ea418213bb5ac7e9328cd0d513851 (patch) | |
tree | 181f6edb070f8e5bf4211feea1b4104bd59fe440 /bin-src/pem-diff.go | |
parent | 36aeaec0b6a04edf7887ecc57393ce2962a6e39c (diff) |
pem-diff: Learn about precertificates
Diffstat (limited to 'bin-src/pem-diff.go')
-rw-r--r-- | bin-src/pem-diff.go | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |