diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-01 13:28:13 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-01 13:31:19 -0500 |
commit | 2660b8c3da781f3f582c4e1bb5cf7513f0072f6b (patch) | |
tree | f90a89414d87c3fffd32bf3ea3473f2bc2c7dc0e | |
parent | 6d0038fa279324124fffa44b442fe7692f2aa50b (diff) |
Hopefully now Andrew's certs are under control; only hide the old ones.
-rw-r--r-- | crtsh-pem2html.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crtsh-pem2html.go b/crtsh-pem2html.go index 78fd97f..0a64848 100644 --- a/crtsh-pem2html.go +++ b/crtsh-pem2html.go @@ -44,7 +44,7 @@ var tmpl = template.Must(template.New("pem2html"). <th>Issuer.O</th> </tr> {{range $cert := .certs}} -{{if eq $cert.X509.Subject.CommonName "andrewdm.me"|not}} +{{if and (eq $cert.X509.Subject.CommonName "andrewdm.me") (lt $cert.X509.NotBefore.Local.Year 2017)|not}} <tr> <td style="background-color: {{$cert.Updated | green}}"><a target="_blank" href="{{$cert.Url}}">{{$cert.Updated | date}}</a></td> <td style="background-color: {{$cert.X509.NotBefore | green}}"><a target="_blank" href="{{$cert.Url}}">{{$cert.X509.NotBefore | date}}</a></td> |