-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add no-subject and no-common-name subdomains. Addresses #268.
- Loading branch information
Showing
10 changed files
with
140 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,19 @@ | ||
[ 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 | ||
|
||
[ req_v3_usr ] | ||
basicConstraints = CA:FALSE | ||
subjectAltName = @alt_names | ||
|
||
[ alt_names ] | ||
DNS.1 = no-subject.__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,14 @@ | ||
[ req ] | ||
default_bits = 2048 | ||
distinguished_name = req_distinguished_name | ||
encrypt_key = no | ||
req_extensions = req_v3_usr | ||
|
||
[ req_distinguished_name ] | ||
|
||
[ req_v3_usr ] | ||
basicConstraints = CA:FALSE | ||
subjectAltName = critical, @alt_names | ||
|
||
[ alt_names ] | ||
DNS.1 = no-subject.__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
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 no-common-name.{{ site.domain }}; | ||
|
||
return 301 https://$server_name$request_uri; | ||
} | ||
|
||
server { | ||
listen 443; | ||
server_name no-common-name.{{ site.domain }}; | ||
|
||
include {{ site.serving-path }}/nginx-includes/subdomain-no-common-name.conf; | ||
include {{ site.serving-path }}/nginx-includes/tls-defaults.conf; | ||
include {{ site.serving-path }}/common/common.conf; | ||
|
||
root {{ site.serving-path }}/domains/cert/no-common-name; | ||
} |
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: no-common-name | ||
layout: page | ||
favicon: gray | ||
background: gray | ||
--- | ||
|
||
<div id="content"> | ||
<h1> | ||
{{ page.subdomain }}.<br>{{ site.domain }} | ||
</h1> | ||
</div> | ||
|
||
<div id="footer"> | ||
This site uses a certificate without a common name. | ||
</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 no-subject.{{ site.domain }}; | ||
|
||
return 301 https://$server_name$request_uri; | ||
} | ||
|
||
server { | ||
listen 443; | ||
server_name no-subject.{{ site.domain }}; | ||
|
||
include {{ site.serving-path }}/nginx-includes/subdomain-no-subject.conf; | ||
include {{ site.serving-path }}/nginx-includes/tls-defaults.conf; | ||
include {{ site.serving-path }}/common/common.conf; | ||
|
||
root {{ site.serving-path }}/domains/cert/no-subject; | ||
} |
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: no-subject | ||
layout: page | ||
favicon: gray | ||
background: gray | ||
--- | ||
|
||
<div id="content"> | ||
<h1> | ||
{{ page.subdomain }}.<br>{{ site.domain }} | ||
</h1> | ||
</div> | ||
|
||
<div id="footer"> | ||
This site uses a certificate without a subject. | ||
</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-no-common-name.pem; | ||
ssl_certificate_key /etc/keys/leaf-main.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-no-subject.pem; | ||
ssl_certificate_key /etc/keys/leaf-main.key; |