update acme_tiny script

This commit is contained in:
Roman Hoellen 2018-09-13 11:20:49 +02:00
parent ec33027e5f
commit f2d3880dd9

View File

@ -38,18 +38,19 @@ if [ ! -d "$acme_dir" ]; then
fi fi
if [ ! -f "$account_key" ]; then if [ ! -f "$account_key" ]; then
echo "Account Key doesn't exists!" echo "Account Key doesn't exists!"
exit 1 exit 1
fi fi
if [ ! -f "$acme_tiny" ]; then if [ ! -f "$acme_tiny" ]; then
echo "Python script acme_tiny.py is missing. Downloading..." 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 wget -qo $acme_tiny https://raw.githubusercontent.com/diafygi/acme-tiny/4.0.4/acme_tiny.py
if [ $? != 0 ]; then if [ $? != 0 ]; then
echo "Could not download acme_tiny.py script." echo "Could not download acme_tiny.py script."
rm -rf $acme_tiny rm -rf $acme_tiny
exit 1 exit 1
fi fi
echo "Finished"
fi fi
acme_dir=${acme_dir%/} acme_dir=${acme_dir%/}
@ -90,14 +91,14 @@ do
fi fi
# domain key # domain key
key="$arg/$NAME.key" key="$arg/$NAME.key"
if [ ! -f "$key" ]; then if [ ! -f "$key" ]; then
echo "Domain key doesn't exists. Generating..." echo "Domain key doesn't exists. Generating..."
openssl genrsa 4096 > "$key" openssl genrsa 4096 > "$key"
#openssl ecparam -out "$key" -name secp384r1 -genkey #openssl ecparam -out "$key" -name secp384r1 -genkey
fi fi
# domain csr # domain csr
csr="$arg/$NAME.csr" csr="$arg/$NAME.csr"