-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcerts_html.tmpl
More file actions
54 lines (53 loc) · 936 Bytes
/
certs_html.tmpl
File metadata and controls
54 lines (53 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<html>
<head>
<style>
table, th, td {
border: 1px solid;
}
table {
width: 100%;
border-collapse: collapse;
}
.expired_true {
background-color: red;
}
.verified_false {
background-color: yellow;
}
.sni_true {
background-color: green;
}
</style>
</head>
<h1>Certs</h1>
<table>
<tr>
<th>HostIP</th>
<th>HostDNS</th>
<th>HostPort</th>
<th>Hostname Verified</th>
<th>SNI Verified</th>
<th>Subject CN</th>
<th>DNS Names</th>
<th>IP Addresses</th>
<th>Issuer</th>
<th>Expiry</th>
<th>Expired</th>
</tr>
{{range .TlsCerts }}
<tr>
<td>{{.HostIP}}</td>
<td>{{.HostDNS}}</td>
<td>{{.HostPort}}</td>
<td class="verified_{{.HostNameVerified}}">{{.HostNameVerified}}</td>
<td class="sni_{{.SNIVerified}}">{{.SNIVerified}}</td>
<td>{{.SubjectCN}}</td>
<td>{{.DNSNames}}</td>
<td>{{.IPAddresses}}</td>
<td>{{.Issuer}}</td>
<td>{{.Expiry}}</td>
<td class="expired_{{.Expired}}">{{.Expired}}</td>
</tr>
{{end}}
</table>
</html>