Browse Source

Added LE_KEYSIZE environment variable

master 0.1.2
Fábio Kaiser Rauber 7 years ago
parent
commit
7a4ff0b673
  1. 2
      config
  2. 8
      docker-entrypoint.sh

2
config

@ -46,7 +46,7 @@ CERTDIR="/etc/ssl"
WELLKNOWN="/var/www/.well-known/acme-challenge"
# Default keysize for private keys (default: 4096)
#KEYSIZE="4096"
KEYSIZE="4096"
# Path to openssl config file (default: <unset> - tries to figure out system default)
#OPENSSL_CNF=

8
docker-entrypoint.sh

@ -37,5 +37,13 @@ else
fi
fi
if [ "${LE_KEYSIZE}" == '2048' ]; then
echo "***** KEY SIZE ${LE_KEYSIZE} bits *****"
sed -i 's@KEYSIZE=.*@KEYSIZE="2048"@g' /etc/dehydrated/config
else
echo "***** KEY SIZE 4096 bits *****"
fi
echo "${@}"
exec "${@}"

Loading…
Cancel
Save