summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2022-01-05 22:45:41 -0500
committerGitHub <noreply@github.com>2022-01-05 22:45:41 -0500
commit4b9849c7922c3a0a7b1bd487f5d890fcff32aaba (patch)
tree13afa68ac4edcabeff5b60a1daede60f0c76f659 /caddytest
parent80d7a356b3443e0a994e5d6abfa6082ba3d5e6e7 (diff)
httpcaddyfile: Support configuring `pki` app names via global options (#4450)
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/global_options_skip_install_trust.txt92
1 files changed, 92 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/global_options_skip_install_trust.txt b/caddytest/integration/caddyfile_adapt/global_options_skip_install_trust.txt
index f949ac1..39c118f 100644
--- a/caddytest/integration/caddyfile_adapt/global_options_skip_install_trust.txt
+++ b/caddytest/integration/caddyfile_adapt/global_options_skip_install_trust.txt
@@ -1,10 +1,34 @@
{
skip_install_trust
+ pki {
+ ca {
+ name "Local"
+ root_cn "Custom Local Root Name"
+ intermediate_cn "Custom Local Intermediate Name"
+ }
+ ca foo {
+ name "Foo"
+ root_cn "Custom Foo Root Name"
+ intermediate_cn "Custom Foo Intermediate Name"
+ }
+ }
}
a.example.com {
tls internal
}
+
+acme.example.com {
+ acme_server {
+ ca foo
+ }
+}
+
+acme-bar.example.com {
+ acme_server {
+ ca bar
+ }
+}
----------
{
"apps": {
@@ -19,6 +43,56 @@ a.example.com {
"match": [
{
"host": [
+ "acme-bar.example.com"
+ ]
+ }
+ ],
+ "handle": [
+ {
+ "handler": "subroute",
+ "routes": [
+ {
+ "handle": [
+ {
+ "ca": "bar",
+ "handler": "acme_server"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "terminal": true
+ },
+ {
+ "match": [
+ {
+ "host": [
+ "acme.example.com"
+ ]
+ }
+ ],
+ "handle": [
+ {
+ "handler": "subroute",
+ "routes": [
+ {
+ "handle": [
+ {
+ "ca": "foo",
+ "handler": "acme_server"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "terminal": true
+ },
+ {
+ "match": [
+ {
+ "host": [
"a.example.com"
]
}
@@ -31,7 +105,19 @@ a.example.com {
},
"pki": {
"certificate_authorities": {
+ "bar": {
+ "install_trust": false
+ },
+ "foo": {
+ "name": "Foo",
+ "root_common_name": "Custom Foo Root Name",
+ "intermediate_common_name": "Custom Foo Intermediate Name",
+ "install_trust": false
+ },
"local": {
+ "name": "Local",
+ "root_common_name": "Custom Local Root Name",
+ "intermediate_common_name": "Custom Local Intermediate Name",
"install_trust": false
}
}
@@ -41,6 +127,12 @@ a.example.com {
"policies": [
{
"subjects": [
+ "acme-bar.example.com",
+ "acme.example.com"
+ ]
+ },
+ {
+ "subjects": [
"a.example.com"
],
"issuers": [