[ACME] Fix insecure http verifications

master
andryyy 2019-07-22 22:52:45 +02:00
parent a89010940a
commit cbdd6b0dfa
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ verify_challenge_path(){
if [[ ${SKIP_HTTP_VERIFICATION} == "y" ]]; then if [[ ${SKIP_HTTP_VERIFICATION} == "y" ]]; then
echo '(skipping check, returning 0)' echo '(skipping check, returning 0)'
return 0 return 0
elif [[ "$(curl -${2} -L http://${1}/.well-known/acme-challenge/${RANDOM_N} --silent)" == "${RANDOM_N}" ]]; then elif [[ "$(curl --insecure -${2} -L http://${1}/.well-known/acme-challenge/${RANDOM_N} --silent)" == "${RANDOM_N}" ]]; then
rm /var/www/acme/${RANDOM_N} rm /var/www/acme/${RANDOM_N}
return 0 return 0
else else