-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Caddyfile adapt tests for preferred_chains
- Loading branch information
Showing
2 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
caddytest/integration/caddyfile_adapt/global_options_preferred_chains.txt
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,56 @@ | ||
{ | ||
preferred_chains smallest | ||
} | ||
|
||
localhost | ||
---------- | ||
{ | ||
"apps": { | ||
"http": { | ||
"servers": { | ||
"srv0": { | ||
"listen": [ | ||
":443" | ||
], | ||
"routes": [ | ||
{ | ||
"match": [ | ||
{ | ||
"host": [ | ||
"localhost" | ||
] | ||
} | ||
], | ||
"terminal": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"tls": { | ||
"automation": { | ||
"policies": [ | ||
{ | ||
"subjects": [ | ||
"localhost" | ||
], | ||
"issuers": [ | ||
{ | ||
"module": "acme", | ||
"preferred_chains": { | ||
"smallest": true | ||
} | ||
}, | ||
{ | ||
"module": "zerossl", | ||
"preferred_chains": { | ||
"smallest": true | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
caddytest/integration/caddyfile_adapt/tls_acme_preferred_chains.txt
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,57 @@ | ||
localhost | ||
|
||
tls { | ||
issuer acme { | ||
preferred_chains { | ||
any_common_name "Generic CA 1" "Generic CA 2" | ||
} | ||
} | ||
} | ||
---------- | ||
{ | ||
"apps": { | ||
"http": { | ||
"servers": { | ||
"srv0": { | ||
"listen": [ | ||
":443" | ||
], | ||
"routes": [ | ||
{ | ||
"match": [ | ||
{ | ||
"host": [ | ||
"localhost" | ||
] | ||
} | ||
], | ||
"terminal": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"tls": { | ||
"automation": { | ||
"policies": [ | ||
{ | ||
"subjects": [ | ||
"localhost" | ||
], | ||
"issuers": [ | ||
{ | ||
"module": "acme", | ||
"preferred_chains": { | ||
"any_common_name": [ | ||
"Generic CA 1", | ||
"Generic CA 2" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |