Skip to content

Commit 5da6857

Browse files
authored
Check for unsupported ACME v2 endpoints (#389)
1 parent 712bf7c commit 5da6857

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/entrypoint.sh

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ source /app/functions.sh
5858
[[ $DEBUG == true ]] && set -x
5959

6060
if [[ "$*" == "/bin/bash /app/start.sh" ]]; then
61+
acmev2_re='https://acme-.*v02\.api\.letsencrypt\.org/directory'
62+
if [[ "${ACME_CA_URI:-}" =~ $acmev2_re ]]; then
63+
echo "Error: ACME v2 API is not yet supported by simp_le."
64+
echo "See https://github.com/zenhack/simp_le/issues/101"
65+
exit 1
66+
fi
6167
check_docker_socket
6268
if [[ -z "$(get_self_cid)" ]]; then
6369
echo "Error: can't get my container ID !" >&2

0 commit comments

Comments
 (0)