diff options
-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> |