From f2d3880dd967f3ffc98b23ea8071fda3d463c203 Mon Sep 17 00:00:00 2001 From: Roman Hoellen Date: Thu, 13 Sep 2018 11:20:49 +0200 Subject: [PATCH] update acme_tiny script --- renew_cert.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/renew_cert.sh b/renew_cert.sh index 9c19359..b2e5c80 100644 --- a/renew_cert.sh +++ b/renew_cert.sh @@ -38,18 +38,19 @@ if [ ! -d "$acme_dir" ]; then fi if [ ! -f "$account_key" ]; then - echo "Account Key doesn't exists!" + echo "Account Key doesn't exists!" exit 1 fi if [ ! -f "$acme_tiny" ]; then - echo "Python script acme_tiny.py is missing. Downloading..." - wget -qo $acme_tiny https://raw.githubusercontent.com/diafygi/acme-tiny/4.0.3/acme_tiny.py + echo "Python script acme_tiny.py is missing. Downloading... " + wget -qo $acme_tiny https://raw.githubusercontent.com/diafygi/acme-tiny/4.0.4/acme_tiny.py if [ $? != 0 ]; then echo "Could not download acme_tiny.py script." rm -rf $acme_tiny exit 1 fi + echo "Finished" fi acme_dir=${acme_dir%/} @@ -90,14 +91,14 @@ do fi - # domain key + # domain key key="$arg/$NAME.key" if [ ! -f "$key" ]; then echo "Domain key doesn't exists. Generating..." openssl genrsa 4096 > "$key" #openssl ecparam -out "$key" -name secp384r1 -genkey - fi + fi # domain csr csr="$arg/$NAME.csr"