From 840573ffd3875a3cfb322580b3a2df6737cdbcdc Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Thu, 9 Feb 2017 20:13:26 +0100 Subject: [PATCH] Use a per domain config file To be able to use multiple different domains/certificates in one uberspace. Call per each domain with domain=domain.tld environment variable set. --- letsencrypt-renew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letsencrypt-renew.sh b/letsencrypt-renew.sh index 5d010ce..74bfc8e 100755 --- a/letsencrypt-renew.sh +++ b/letsencrypt-renew.sh @@ -8,7 +8,7 @@ openssl x509 -checkend $(( 21 * 86400 )) -in ~/.config/letsencrypt/live/${domain if [ \$? != 0 ]; then # run let's encrypt - letsencrypt certonly + letsencrypt certonly -c ~/.config/letsencrypt/cli-${domain}.ini # import certificate uberspace-add-certificate -k ~/.config/letsencrypt/live/${domain}/privkey.pem -c ~/.config/letsencrypt/live/${domain}/cert.pem fi