|
|
@ -7,6 +7,7 @@ if [ -z "$DOMAIN_NAME" ]; then |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
certdir="/etc/letsencrypt/live/${DOMAIN_NAME}" |
|
|
|
certdir="/etc/letsencrypt/live/${DOMAIN_NAME}" |
|
|
|
|
|
|
|
mkdir -p "$certdir" |
|
|
|
|
|
|
|
|
|
|
|
# ensure that the keys are available with a fixed path |
|
|
|
# ensure that the keys are available with a fixed path |
|
|
|
for key in fullchain.pem privkey.pem ; do |
|
|
|
for key in fullchain.pem privkey.pem ; do |
|
|
@ -17,7 +18,6 @@ if [ -r "$certdir/fullchain.pem" ]; then |
|
|
|
exit 0 |
|
|
|
exit 0 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p "$certdir" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo >&2 "$certdir: Creating temporary keys" |
|
|
|
echo >&2 "$certdir: Creating temporary keys" |
|
|
|
openssl req \ |
|
|
|
openssl req \ |
|
|
|