summaryrefslogtreecommitdiff
path: root/provider_base/common.json
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-25 12:49:39 -0700
committerelijah <elijah@riseup.net>2014-06-25 12:49:39 -0700
commitfba004bc8cbee0d9556538342ce78ac1c9d1229b (patch)
treee7a74fec9706554c9820b3121f0d82b64e5a26f4 /provider_base/common.json
parentc20aa4f8c35a4cba982de92105da2566ecdfa1ae (diff)
more friendly error message in `leap compile` when commercial certificate is missing.
Diffstat (limited to 'provider_base/common.json')
-rw-r--r--provider_base/common.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/provider_base/common.json b/provider_base/common.json
index a4d9c5f2..565633c0 100644
--- a/provider_base/common.json
+++ b/provider_base/common.json
@@ -25,9 +25,13 @@
"hosts": "=> hosts_file",
"x509": {
"use": true,
+ "use_commercial": false,
"cert": "= x509.use ? file(:node_x509_cert, :missing => 'x509 certificate for node $node. Run `leap cert update`') : nil",
"key": "= x509.use ? file(:node_x509_key, :missing => 'x509 key for node $node. Run `leap cert update`') : nil",
- "ca_cert": "= try_file :ca_cert"
+ "ca_cert": "= try_file :ca_cert",
+ "commercial_cert": "= x509.use_commercial ? file([:commercial_cert, webapp.domain], :missing => 'commercial x509 certificate for node $node. Add file $file, or run `leap cert csr` to generate a temporary self-signed cert and CSR you can use to purchase a real cert.') : nil",
+ "commercial_key": "= x509.use_commercial ? file([:commercial_key, webapp.domain], :missing => 'commercial x509 certificate for node $node. Add file $file, or run `leap cert csr` to generate a temporary self-signed cert and CSR you can use to purchase a real cert.') : nil",
+ "commercial_ca_cert": "= x509.use_commercial ? try_file(:commercial_ca_cert) : nil"
},
"service_type": "internal_service",
"development": {