Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 26f9180

Browse files
committed
Add untrusted-root.badssl.com. Closes #170.
1 parent effbe5e commit 26f9180

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

domains/cert/untrusted-root.conf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
---
3+
server {
4+
listen 80;
5+
server_name untrusted-root.{{ site.domain }};
6+
7+
return 301 https://$server_name$request_uri;
8+
}
9+
10+
server {
11+
listen 443;
12+
server_name untrusted-root.{{ site.domain }};
13+
14+
include {{ site.serving-path }}/nginx-includes/wildcard.untrusted-root.conf;
15+
include {{ site.serving-path }}/nginx-includes/tls-defaults.conf;
16+
include {{ site.serving-path }}/common/common.conf;
17+
18+
root {{ site.serving-path }}/domains/cert/untrusted-root;
19+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
subdomain: untrusted-root
3+
layout: page
4+
favicon: red
5+
background: red
6+
---
7+
8+
<div id="content">
9+
<h1 style="font-size: 8vw;">
10+
{{ page.subdomain }}.<br>{{ site.domain }}
11+
</h1>
12+
</div>
13+
14+
<div id="footer">
15+
The certificate for this site is signed using an untrusted root.
16+
</div>

domains/misc/badssl.com/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ <h2>Certificate:</h2>
216216
<a href="https://expired.{{ site.domain }}/" class="bad">expired</a>
217217
<a href="https://wrong.host.{{ site.domain }}/" class="bad">wrong.host</a>
218218
<a href="https://self-signed.{{ site.domain }}/" class="bad">self-signed</a>
219+
<a href="https://untrusted-root.{{ site.domain }}/" class="bad">untrusted-root</a>
219220
<hr>
220221
<a href="https://sha1-2016.{{ site.domain }}/" class="dubious">sha1-2016</a>
221222
<a href="https://sha1-2017.{{ site.domain }}/" class="bad">sha1-2017</a>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
---
3+
4+
ssl on;
5+
ssl_certificate {{ site.cert-path }}/wildcard-untrusted-root.pem;
6+
ssl_certificate_key /etc/keys/leaf-main.key;

0 commit comments

Comments
 (0)