Commit 2ddf7d9f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use -k (--insecure) option in trying to access Zope in https.

parent e0b94a68
...@@ -8,7 +8,7 @@ challenge_token="${3}" ...@@ -8,7 +8,7 @@ challenge_token="${3}"
case "${1}" in case "${1}" in
"deploy_challenge") "deploy_challenge")
url_effective="$(curl -s -n -L -o /dev/null -w "%{url_effective}" -F "id=${challenge_token}" -F "file=@${WELLKNOWN}/${challenge_token}" "https://${domain}/.well-known/acme-challenge/manage_addFile")" url_effective="$(curl -s -k -n -L -o /dev/null -w "%{url_effective}" -F "id=${challenge_token}" -F "file=@${WELLKNOWN}/${challenge_token}" "https://${domain}/.well-known/acme-challenge/manage_addFile")"
if [[ "${url_effective}" != "https://${domain}/.well-known/acme-challenge/manage_main" ]]; then if [[ "${url_effective}" != "https://${domain}/.well-known/acme-challenge/manage_main" ]]; then
url_effective="$(curl -s -n -L -o /dev/null -w "%{url_effective}" -F "id=${challenge_token}" -F "file=@${WELLKNOWN}/${challenge_token}" "http://${domain}/.well-known/acme-challenge/manage_addFile")" url_effective="$(curl -s -n -L -o /dev/null -w "%{url_effective}" -F "id=${challenge_token}" -F "file=@${WELLKNOWN}/${challenge_token}" "http://${domain}/.well-known/acme-challenge/manage_addFile")"
if [[ "${url_effective}" != "http://${domain}/.well-known/acme-challenge/manage_main" ]]; then if [[ "${url_effective}" != "http://${domain}/.well-known/acme-challenge/manage_main" ]]; then
...@@ -18,7 +18,7 @@ case "${1}" in ...@@ -18,7 +18,7 @@ case "${1}" in
fi fi
;; ;;
"clean_challenge") "clean_challenge")
url_effective="$(curl -s -n -L -o /dev/null -w "%{url_effective}" -F "ids:list=${challenge_token}" "https://${domain}/.well-known/acme-challenge/manage_delObjects")" url_effective="$(curl -s -k -n -L -o /dev/null -w "%{url_effective}" -F "ids:list=${challenge_token}" "https://${domain}/.well-known/acme-challenge/manage_delObjects")"
if [[ "${url_effective}" != "https://${domain}/.well-known/acme-challenge/manage_delObjects" ]]; then if [[ "${url_effective}" != "https://${domain}/.well-known/acme-challenge/manage_delObjects" ]]; then
url_effective="$(curl -s -n -L -o /dev/null -w "%{url_effective}" -F "ids:list=${challenge_token}" "http://${domain}/.well-known/acme-challenge/manage_delObjects")" url_effective="$(curl -s -n -L -o /dev/null -w "%{url_effective}" -F "ids:list=${challenge_token}" "http://${domain}/.well-known/acme-challenge/manage_delObjects")"
if [[ "${url_effective}" != "http://${domain}/.well-known/acme-challenge/manage_delObjects" ]]; then if [[ "${url_effective}" != "http://${domain}/.well-known/acme-challenge/manage_delObjects" ]]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment