improve HTML output and check it using Tidy
This commit is contained in:
parent
9a61e0eae9
commit
9d8ff3601f
4
Makefile
4
Makefile
|
@ -8,10 +8,12 @@ dev: check
|
|||
|
||||
check:
|
||||
#go fmt
|
||||
reuse lint
|
||||
#golangci-lint run
|
||||
go vet
|
||||
#go test
|
||||
find . -name '*.html' -exec xmllint --noout {} \;
|
||||
find . -name '*.html' -exec sh -c 'tidy -q -errors -access "{}" || ls "{}"' \;
|
||||
reuse lint -q
|
||||
|
||||
run:
|
||||
killall -9 client-hello-mirror || :
|
||||
|
|
108
index.html
108
index.html
|
@ -5,64 +5,68 @@ SPDX-License-Identifier: BSD-3-Clause
|
|||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#000">
|
||||
<meta name="referrer" content="no-referrer">
|
||||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta name="theme-color" content="#000"/>
|
||||
<meta name="referrer" content="no-referrer"/>
|
||||
<title>TLS Client Hello Mirror</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
}
|
||||
::selection {
|
||||
color: #FFF;
|
||||
background-color: #070;
|
||||
}
|
||||
body {
|
||||
color: #DDD;
|
||||
background-color: #000;
|
||||
margin: 1em auto;
|
||||
max-width: 38em;
|
||||
padding: 0 .62em;
|
||||
font: 1.1em/1.62 sans-serif;
|
||||
}
|
||||
@media print{
|
||||
body{
|
||||
max-width: none;
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
}
|
||||
}
|
||||
a:link {color:#EEE;}
|
||||
a:visited {color:#EEE;}
|
||||
a:hover {color:#FFF;}
|
||||
a:active {color:#FFF;}
|
||||
::selection {
|
||||
color: #FFF;
|
||||
background-color: #070;
|
||||
}
|
||||
body {
|
||||
color: #DDD;
|
||||
background-color: #000;
|
||||
margin: 1em auto;
|
||||
max-width: 38em;
|
||||
padding: 0 .62em;
|
||||
font: 1.1em/1.62 sans-serif;
|
||||
tab-size: 4;
|
||||
}
|
||||
@media print{
|
||||
body{
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
a:link {color:#EEE;}
|
||||
a:visited {color:#EEE;}
|
||||
a:hover {color:#FFF;}
|
||||
a:active {color:#FFF;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<center>
|
||||
<h1>TLS Client Hello Mirror</h1>
|
||||
</center>
|
||||
<h3><a href="/json/v1">Your browser's TLS Client Hello, reflected as JSON</a></h3>
|
||||
<p>This test:
|
||||
<ul>
|
||||
<li>reflects the complete Client Hello message, preserving the order in which TLS parameters and extensions are sent;</li>
|
||||
<li>can be used to check for TLS privacy pitfalls (<a href="https://svs.informatik.uni-hamburg.de/publications/2018/2018-12-06-Sy-ACSAC-Tracking_Users_across_the_Web_via_TLS_Session_Resumption.pdf">session resumption</a>, <a href="https://tlsfingerprint.io/">TLS fingerprinting</a>, <a href="https://datatracker.ietf.org/doc/html/draft-mathewson-no-gmtunixtime">system time exposure</a>);</li>
|
||||
<li>supports both HTTP and <a href="https://gemini.circumlunar.space/">Gemini</a>;</li>
|
||||
<li>is <a href="https://www.gnu.org/philosophy/free-sw.en.html">free as in freedom</a> and trivial to self-host.</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p>JSON only, for now, but a UI is on <a href="https://tildegit.org/nervuri/client-hello-mirror#roadmap">the roadmap</a>.</p>
|
||||
<p>The API is largely stable - fields may be added, but existing fields will not be modified or removed. IANA-assigned codes for TLS parameters and extensions are documented at:
|
||||
<ul>
|
||||
<li><a href="https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml">TLS parameters</a></li>
|
||||
<li><a href="https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml">TLS extensions</a></li>
|
||||
</ul>
|
||||
Note that these lists do not include draft extensions and <a href="https://datatracker.ietf.org/doc/html/rfc8701">GREASE</a> values. Missing values will be documented here as the project evolves.
|
||||
</p>
|
||||
<h1>TLS Client Hello Mirror</h1>
|
||||
<h3><a href="/json/v1">Your browser's TLS Client Hello, reflected as JSON</a></h3>
|
||||
<p>This test:</p>
|
||||
<ul>
|
||||
<li>reflects the complete Client Hello message, preserving the order in which TLS parameters and extensions are sent;</li>
|
||||
<li>can be used to check for TLS privacy pitfalls (<a href="https://svs.informatik.uni-hamburg.de/publications/2018/2018-12-06-Sy-ACSAC-Tracking_Users_across_the_Web_via_TLS_Session_Resumption.pdf">session resumption</a>, <a href="https://tlsfingerprint.io/">TLS fingerprinting</a>, <a href="https://datatracker.ietf.org/doc/html/draft-mathewson-no-gmtunixtime">system time exposure</a>);</li>
|
||||
<li>supports both HTTP and <a href="https://gemini.circumlunar.space/">Gemini</a>;</li>
|
||||
<li>is <a href="https://www.gnu.org/philosophy/free-sw.en.html">free as in freedom</a> and trivial to self-host.</li>
|
||||
</ul>
|
||||
<p>JSON only, for now, but a UI is on <a href="https://tildegit.org/nervuri/client-hello-mirror#roadmap">the roadmap</a>.</p>
|
||||
<p>The API is largely stable - fields may be added, but existing fields will not be modified or removed. IANA-assigned codes for TLS parameters and extensions are documented at:</p>
|
||||
<ul>
|
||||
<li><a href="https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml">TLS parameters</a></li>
|
||||
<li><a href="https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml">TLS extensions</a></li>
|
||||
</ul>
|
||||
<p>Note that these lists do not include draft extensions and <a href="https://datatracker.ietf.org/doc/html/rfc8701">GREASE</a> values. Missing values will be documented here as the project evolves.</p>
|
||||
</main>
|
||||
<hr>
|
||||
<hr/>
|
||||
<footer>
|
||||
Author: <a href="https://nervuri.net/">nervuri</a><br>
|
||||
<a href="https://tildegit.org/nervuri/client-hello-mirror">Source</a> (contributions welcome)<br>
|
||||
License: <a href="https://opensource.org/license/BSD-3-clause/">BSD-3-Clause</a>
|
||||
Author: <a href="https://nervuri.net/">nervuri</a><br/>
|
||||
<a href="https://tildegit.org/nervuri/client-hello-mirror">Source</a> (contributions welcome)<br/>
|
||||
License: <a href="https://opensource.org/license/BSD-3-clause/">BSD-3-Clause</a>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue