From c88719ac6b70341546c7f22061d7977c1f3bf68b Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Sat, 2 Jun 2018 10:53:45 +0200 Subject: [PATCH] Check for unsupported ACME v2 endpoints --- app/entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/entrypoint.sh b/app/entrypoint.sh index 246cebe1..2b239eed 100755 --- a/app/entrypoint.sh +++ b/app/entrypoint.sh @@ -58,6 +58,12 @@ source /app/functions.sh [[ $DEBUG == true ]] && set -x if [[ "$*" == "/bin/bash /app/start.sh" ]]; then + acmev2_re='https://acme-.*v02\.api\.letsencrypt\.org/directory' + if [[ "${ACME_CA_URI:-}" =~ $acmev2_re ]]; then + echo "Error: ACME v2 API is not yet supported by simp_le." + echo "See https://github.com/zenhack/simp_le/issues/101" + exit 1 + fi check_docker_socket if [[ -z "$(get_self_cid)" ]]; then echo "Error: can't get my container ID !" >&2