From ccb418c3a26fd687bfcd01cb42151f9507fcbe66 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 19 Nov 2016 18:39:07 -0500 Subject: tls-pem2html: s/Link/Url/g --- tls-pem2html.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tls-pem2html.go b/tls-pem2html.go index 50d5104..be93b44 100644 --- a/tls-pem2html.go +++ b/tls-pem2html.go @@ -94,10 +94,10 @@ var tmpl = template.Must(template.New("pem2html"). {{range $cert := .certs}} - {{$cert.X509.NotBefore.Local.Format "2006-01-02"}} - {{$cert.X509.NotAfter.Local.Format "2006-01-02"}} - {{$cert.X509.Subject.CommonName | html}} - {{$cert.Socket | html}} + {{$cert.X509.NotBefore.Local.Format "2006-01-02"}} + {{$cert.X509.NotAfter.Local.Format "2006-01-02"}} + {{$cert.X509.Subject.CommonName | html}} + {{$cert.Socket | html}} {{end}} @@ -168,7 +168,7 @@ type Cert struct { X509 *x509.Certificate } -func (cert Cert) Link() string { +func (cert Cert) Url() string { return fmt.Sprintf("https://crt.sh/?serial=%036x", cert.X509.SerialNumber) } -- cgit v1.2.3-2-g168b