summaryrefslogtreecommitdiff
path: root/provider_base
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-11-21 13:47:41 -0800
committerelijah <elijah@riseup.net>2012-11-21 13:47:41 -0800
commit9491f15a64c13f2424b781d32d5734db3bb4a22f (patch)
tree266bb0158a108e356b76e0da2c7426c5af9154be /provider_base
parentc2d57624c15dfaff038f9991f04ade46b5ad1d40 (diff)
added x509.commercial_ca_cert. x509.ca_cert is now optional, except for webapp.
Diffstat (limited to 'provider_base')
-rw-r--r--provider_base/common.json2
-rw-r--r--provider_base/services/webapp.json4
2 files changed, 4 insertions, 2 deletions
diff --git a/provider_base/common.json b/provider_base/common.json
index 4e85c9b0..0eeef6e5 100644
--- a/provider_base/common.json
+++ b/provider_base/common.json
@@ -20,7 +20,7 @@
"use": false,
"cert": "= x509.use ? file(:node_x509_cert, :missing => 'x509 certificate for node $node. Run `leap update-cert`') : nil",
"key": "= x509.use ? file(:node_x509_key, :missing => 'x509 key for node $node. Run `leap update-cert`') : nil",
- "ca_cert": "= file :ca_cert"
+ "ca_cert": "= try_file :ca_cert"
},
"local": "= self.vagrant?"
}
diff --git a/provider_base/services/webapp.json b/provider_base/services/webapp.json
index ca9edf33..bdef5761 100644
--- a/provider_base/services/webapp.json
+++ b/provider_base/services/webapp.json
@@ -15,7 +15,9 @@
},
"x509": {
"use": true,
+ "ca_cert": "= file :ca_cert, :missing => 'provider CA. Run `leap init-ca`'",
"commercial_cert": "= file [:commercial_cert, global.provider.domain]",
- "commercial_key": "= file [:commercial_key, global.provider.domain]"
+ "commercial_key": "= file [:commercial_key, global.provider.domain]",
+ "commercial_ca_cert": "= try_file :commercial_ca_cert"
}
} \ No newline at end of file