1
0

Check for unsupported ACME v2 endpoints (#389)

This commit is contained in:
Nicolas Duchon 2018-06-04 10:44:19 +02:00 committed by GitHub
parent 712bf7c674
commit 5da685795b
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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