aboutsummaryrefslogtreecommitdiff
path: root/acme.conf
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-07 11:49:49 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-07 11:49:49 +0100
commit586ced4e84a5831cef9870194ee2f94efa026492 (patch)
tree0121505f5fcb409d7ed210c08fd889853207610d /acme.conf
parent8caa85893a44187fdf48f7eb82fa21acb751062a (diff)
Alternative config format
Diffstat (limited to 'acme.conf')
-rw-r--r--acme.conf42
1 files changed, 42 insertions, 0 deletions
diff --git a/acme.conf b/acme.conf
new file mode 100644
index 0000000..7c2205c
--- /dev/null
+++ b/acme.conf
@@ -0,0 +1,42 @@
+# provider definitions
+provider lev1 \
+ directory https://acme-v01.api.letsencrypt.org/directory
+provider les \
+ directory https://acme-staging.api.letsencrypt.org/directory
+
+# account definitions
+account another@example.com \
+ key /etc/another.key \
+ provider les
+
+# domain definitions
+domain www.example.com \
+ altnames { example.com, www2.example.com } \
+ key "/etc/ssl/private/www_example_com.key" \
+ cert "/etc/ssl/cert/www_example_com.pem" \
+ webroot "/var/www/htdocs" \
+ account another@example.com \
+ gracetime 1 week \
+ hook nginx
+
+
+# domains with prefix www imply altname without www
+domain www.example.net \
+ key "/etc/ssl/private/www_example_net.key" \
+ cert "/etc/ssl/cert/www_example_net.pem" \
+ account another@example.com
+
+domain mail.example.com \
+ key "/etc/ssl/private/mail_example_com.key" \
+ cert "/etc/ssl/cert/mail_example_com.pem" \
+ account another@example.com \
+ gracetime 1 week \
+ hook dovecot
+
+# hook definitions
+hook nginx \
+ cmd "sudo service nginx reload"
+
+hook dovecot \
+ cmd "sudo service dovecot reload"
+