aboutsummaryrefslogtreecommitdiffstats
path: root/roles/znc/templates/acme
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-09-22 10:56:27 +0800
committerAaron LI <aly@aaronly.me>2019-09-22 11:36:12 +0800
commit551a067e37b4aaf9dce260460ce50dc69360da9d (patch)
treea6de4aac24ed1cbe5d6ff1b1dd6cb8c2bd56830e /roles/znc/templates/acme
parentad92886aa888b0e2c646dfe5b26ea0891b7d914f (diff)
downloadansible-dfly-vps-551a067e37b4aaf9dce260460ce50dc69360da9d.tar.bz2
znc: Update certificate deployment w.r.t. acme.sh
Diffstat (limited to 'roles/znc/templates/acme')
-rw-r--r--roles/znc/templates/acme/znc.j234
1 files changed, 0 insertions, 34 deletions
diff --git a/roles/znc/templates/acme/znc.j2 b/roles/znc/templates/acme/znc.j2
deleted file mode 100644
index 0be5dc0..0000000
--- a/roles/znc/templates/acme/znc.j2
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-#
-# ACME deployment script
-#
-
-# NOTE:
-# ZNC supports SSLKeyFile and SSLDHParamFile since v1.7
-#
-#cp -v /usr/local/etc/ssl/acme/private/{{ network.domain }}.pem \
-# {{ znc.data_dir }}/znc.ssl.key
-#cp -v /usr/local/etc/ssl/acme/{{ network.domain }}/fullchain.pem \
-# {{ znc.data_dir }}/znc.ssl.crt
-#chown znc:znc {{ znc.data_dir }}/znc.ssl.key {{ znc.data_dir }}/znc.ssl.crt
-#chmod 0400 {{ znc.data_dir }}/znc.ssl.key {{ znc.data_dir }}/znc.ssl.crt
-
-# SSL: https://wiki.znc.in/Signed_SSL_certificate
-# Everything in a single file, in the order from the most *private* to
-# the most *public* entries, except for the root certificate.
-# i.e., cat ssl.key ssl.cert dhparam.pem > znc.allinone.pem
-#
-cat /usr/local/etc/ssl/acme/private/{{ network.domain }}.pem \
- /usr/local/etc/ssl/acme/{{ network.domain }}/fullchain.pem \
- /usr/local/etc/ssl/dhparam4096.pem \
- > {{ znc.data_dir }}/znc.allinone.pem
-chown znc:znc {{ znc.data_dir }}/znc.allinone.pem
-chmod 0400 {{ znc.data_dir }}/znc.allinone.pem
-
-if pgrep -x znc >/dev/null; then
- echo "Reloading service znc: ..."
- killall -SIGHUP znc
- echo "ok"
-else
- echo "WARNING: service znc is not running" >&2
-fi