summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt/tls_acme_preferred_chains.txt
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest/integration/caddyfile_adapt/tls_acme_preferred_chains.txt')
-rw-r--r--caddytest/integration/caddyfile_adapt/tls_acme_preferred_chains.txt57
1 files changed, 57 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/tls_acme_preferred_chains.txt b/caddytest/integration/caddyfile_adapt/tls_acme_preferred_chains.txt
new file mode 100644
index 0000000..d6242d7
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/tls_acme_preferred_chains.txt
@@ -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"
+ ]
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+}