From f1d1926dfe59a00f98a0a394d955e0a3d8ab203e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 19 Nov 2016 16:35:13 -0500 Subject: show everything at once --- .gitignore | 1 + Makefile | 6 +++--- crtsh-pem2html.go | 3 ++- index.html | 43 +++++++++++++++++++++++++++++++++++++++++++ tls-pem2html.go | 3 ++- 5 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 index.html diff --git a/.gitignore b/.gitignore index 93d345c..bf916c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.html +!index.html *.pem *.txt NET-* diff --git a/Makefile b/Makefile index dda3709..d4ee17b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ all: index.html - -index.html: crtsh.html - cp $< $@ +all: crtsh.html +all: tls.html +all: diff.html %: %.go go build $< diff --git a/crtsh-pem2html.go b/crtsh-pem2html.go index ea54ae9..20953be 100644 --- a/crtsh-pem2html.go +++ b/crtsh-pem2html.go @@ -75,6 +75,7 @@ var tmpl = template.Must(template.New("pem2html"). } + @@ -166,7 +167,7 @@ func (l Certs) Len() int { // Less reports whether the element with // index i should sort before the element with index j. func (l Certs) Less(i, j int) bool { - return l[i].Updated.UTC().After(l[j].Updated.UTC()) + return l[i].Updated.After(l[j].Updated) } // Swap swaps the elements with indexes i and j. diff --git a/index.html b/index.html new file mode 100644 index 0000000..47f5178 --- /dev/null +++ b/index.html @@ -0,0 +1,43 @@ + + + + + Dashboard + + + + +
+ + + +
+ + diff --git a/tls-pem2html.go b/tls-pem2html.go index 9e8e80a..2dce49a 100644 --- a/tls-pem2html.go +++ b/tls-pem2html.go @@ -78,6 +78,7 @@ var tmpl = template.Must(template.New("pem2html"). } + @@ -180,7 +181,7 @@ func (l Certs) Len() int { // Less reports whether the element with // index i should sort before the element with index j. func (l Certs) Less(i, j int) bool { - return l[i].X509.NotAfter.UTC().After(l[j].X509.NotAfter.UTC()) + return l[i].X509.NotAfter.After(l[j].X509.NotAfter) } // Swap swaps the elements with indexes i and j. -- cgit v1.1-4-g5e80