Skip to content

Commit 232ade6

Browse files
trondvhJrCs
authored andcommitted
Support for alternative TOS hashes (#189)
1 parent 9c1a7b2 commit 232ade6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ $ docker run -d \
150150

151151
* `NGINX_PROXY_CONTAINER`- If for some reason you can't use the docker --volumes-from option, you can specify the name or id of the nginx-proxy container with this variable.
152152

153+
* `ACME_TOS_HASH` - Let´s you pass an alternative TOS hash to simp_le, to support other CA´s ACME implentation.
154+
153155
#### Examples:
154156

155157
If you want other examples how to use this container, look at:

app/letsencrypt_service

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44

55
seconds_to_wait=3600
66
ACME_CA_URI="${ACME_CA_URI:-https://acme-v01.api.letsencrypt.org/directory}"
7+
ACME_TOS_HASH="${ACME_TOS_HASH:-6373439b9f29d67a5cd4d18cbc7f264809342dbf21cb2ba2fc7588df987a6221}"
78

89
source /app/functions.sh
910

@@ -103,7 +104,7 @@ update_certs() {
103104
echo "Creating/renewal $base_domain certificates... (${hosts_array_expanded[*]})"
104105
/usr/bin/simp_le \
105106
-f account_key.json -f key.pem -f chain.pem -f fullchain.pem -f cert.pem \
106-
--tos_sha256 6373439b9f29d67a5cd4d18cbc7f264809342dbf21cb2ba2fc7588df987a6221 \
107+
--tos_sha256 $ACME_TOS_HASH \
107108
$params_d_str \
108109
--email "${!email_varname}" \
109110
--server=$acme_ca_uri \

0 commit comments

Comments
 (0)