summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile6
-rw-r--r--crtsh-pem2html.go3
-rw-r--r--index.html43
-rw-r--r--tls-pem2html.go3
5 files changed, 51 insertions, 5 deletions
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").
}
</style>
<script src="sorttable.js"></script>
+ <base target="_parent" />
</head>
<body>
<table class=sortable>
@@ -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 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Dashboard</title>
+ <style>
+ html {
+ height: 100%;
+ }
+ body {
+ font-size: 10px;
+ font-family: monospace;
+ height: 100%;
+ margin: 0;
+ display: flex;
+ align-items: center;
+ }
+ body > * {
+ width: 100%;
+ height: 100%;
+ }
+ iframe {
+ width: 100%;
+ height: 100%;
+ display: block;
+ border: 0;
+ top: 0;
+ position: absolute;
+ }
+ td {
+ position: relative;
+ }
+ </style>
+ <script src="sorttable.js"></script>
+</head>
+<body>
+ <table>
+ <tr><td><iframe src="crtsh.html"></iframe></td></tr>
+ <tr><td><iframe src="tls.html"></iframe></td></tr>
+ <tr><td><iframe src="diff.html"></iframe></td></tr>
+ </table>
+</body>
+</html>
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").
}
</style>
<script src="sorttable.js"></script>
+ <base target="_parent" />
</head>
<body>
<table class=sortable>
@@ -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.