forked from chromium/badssl.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add (known|blocked)-interception.badssl.com tests (chromium#423)
- Loading branch information
1 parent
a965c2a
commit a779188
Showing
9 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ req ] | ||
default_bits = 2048 | ||
distinguished_name = req_distinguished_name | ||
encrypt_key = no | ||
prompt = no | ||
req_extensions = req_v3_usr | ||
|
||
[ req_distinguished_name ] | ||
countryName = US | ||
stateOrProvinceName = California | ||
localityName = San Francisco | ||
organizationName = BadSSL | ||
commonName = blocked-interception.__DOMAIN__ | ||
|
||
[ req_v3_usr ] | ||
basicConstraints = CA:FALSE | ||
subjectAltName = @alt_names | ||
|
||
[ alt_names ] | ||
DNS.1 = blocked-interception.__DOMAIN__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ req ] | ||
default_bits = 2048 | ||
distinguished_name = req_distinguished_name | ||
encrypt_key = no | ||
prompt = no | ||
req_extensions = req_v3_usr | ||
|
||
[ req_distinguished_name ] | ||
countryName = US | ||
stateOrProvinceName = California | ||
localityName = San Francisco | ||
organizationName = BadSSL | ||
commonName = known-interception.__DOMAIN__ | ||
|
||
[ req_v3_usr ] | ||
basicConstraints = CA:FALSE | ||
subjectAltName = @alt_names | ||
|
||
[ alt_names ] | ||
DNS.1 = known-interception.__DOMAIN__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
--- | ||
server { | ||
listen 80; | ||
server_name blocked-interception.{{ site.domain }}; | ||
|
||
return 301 https://$server_name$request_uri; | ||
} | ||
|
||
server { | ||
listen 443; | ||
server_name blocked-interception.{{ site.domain }}; | ||
|
||
include {{ site.serving-path }}/nginx-includes/subdomain-blocked-interception.conf; | ||
include {{ site.serving-path }}/nginx-includes/tls-defaults.conf; | ||
include {{ site.serving-path }}/common/common.conf; | ||
|
||
root {{ site.serving-path }}/domains/cert/blocked-interception; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
subdomain: blocked-interception | ||
layout: page | ||
favicon: red | ||
background: red | ||
--- | ||
|
||
<div id="content"> | ||
<h1 style="font-size: 10vw;"> | ||
{{ page.subdomain }}.<br>{{ site.domain }} | ||
</h1> | ||
</div> | ||
|
||
<div id="footer"> | ||
The certificate for this site is associated with network interception. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
--- | ||
server { | ||
listen 80; | ||
server_name known-interception.{{ site.domain }}; | ||
|
||
return 301 https://$server_name$request_uri; | ||
} | ||
|
||
server { | ||
listen 443; | ||
server_name known-interception.{{ site.domain }}; | ||
|
||
include {{ site.serving-path }}/nginx-includes/subdomain-known-interception.conf; | ||
include {{ site.serving-path }}/nginx-includes/tls-defaults.conf; | ||
include {{ site.serving-path }}/common/common.conf; | ||
|
||
root {{ site.serving-path }}/domains/cert/known-interception; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
subdomain: blocked-interception | ||
layout: page | ||
favicon: gray | ||
background: gray | ||
--- | ||
|
||
<div id="content"> | ||
<h1 style="font-size: 10vw;"> | ||
{{ page.subdomain }}.<br>{{ site.domain }} | ||
</h1> | ||
</div> | ||
|
||
<div id="footer"> | ||
The certificate for this site is associated with network interception. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
--- | ||
|
||
ssl on; | ||
ssl_certificate {{ site.cert-path }}/subdomain-blocked-interception.pem; | ||
ssl_certificate_key /etc/keys/leaf-blocked-interception.key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
--- | ||
|
||
ssl on; | ||
ssl_certificate {{ site.cert-path }}/subdomain-known-interception.pem; | ||
ssl_certificate_key /etc/keys/leaf-known-interception.key; |