Skip to content

Commit 870b501

Browse files
authored
v3.3.12 (#91)
Minor updates * Enable getssl debug flag using PROXY_GETSSL_DEBUG
1 parent f846db1 commit 870b501

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.11
1+
3.3.12

overlay/etc/bf/init.d/20-env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ bf-env "PROXY_SITES" "/sites"
2929
PROXY_ACME_CHALLENGE=.well-known/acme-challenge
3030
bf-env "PROXY_ACME_CHALLENGE" "${PROXY_ACME_CHALLENGE}"
3131
bf-env "PROXY_WWW_ACME_CHALLENGE" "${NGINX_WWW}/${PROXY_ACME_CHALLENGE}"
32+
33+
if [ "${PROXY_GETSSL_DEBUG-}" = "1" ] ; then
34+
bf-env "PROXY_GETSSL_FLAGS" "-d -U"
35+
else
36+
bf-env "PROXY_GETSSL_FLAGS" "-U"
37+
fi

overlay/usr/lib/bf/inc/proxy-setup-ssl.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ setup-ssl () {
6161
[[ -f ${FILE} ]] && bf-debug " already set up." "inc/proxy-setup-ssl.sh" && return 0
6262

6363
# getssl flags
64+
# -d enable debug output
6465
# -U stop upgrade checks
6566
# -w set working directory
6667
# -c create default configuration files
67-
${PROXY_GETSSL} -U -w ${PROXY_SSL_CERTS} -c ${DOMAIN_NAME}
68+
${PROXY_GETSSL} ${PROXY_GETSSL_FLAGS} -w ${PROXY_SSL_CERTS} -c ${DOMAIN_NAME}
6869

6970
# set default values
7071
local SANS=$(printf ",%s" ${DOMAIN_ALIASES[@]})

overlay/usr/lib/bf/proxy/request

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ source ${BF_INC}/proxy-setup-ssl.sh
1313
# Request certificates for all domains.
1414
#
1515
# getssl flags
16+
# -d enable debug output
1617
# -U stop upgrade checks
1718
# -w set working directory
1819
#======================================================================================================================
1920

2021
request() {
21-
${PROXY_GETSSL} -U -w ${PROXY_SSL_CERTS} "${1}"
22+
${PROXY_GETSSL} ${PROXY_GETSSL_FLAGS} -w ${PROXY_SSL_CERTS} "${1}"
2223
create-pem "${1}"
2324
}
2425

overlay/usr/lib/bf/proxy/update

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ source ${BF_INC}/proxy-setup-ssl.sh
1313
# Run update.
1414
#
1515
# getssl flags
16+
# -d enable debug output
1617
# -U stop upgrade checks
1718
# -w set working directory
1819
# -a check all certificates
1920
#======================================================================================================================
2021

2122
bf-echo "Updating all SSL certificates..." "proxy/update"
22-
${PROXY_GETSSL} -U -w ${PROXY_SSL_CERTS} -a
23+
${PROXY_GETSSL} ${PROXY_GETSSL_FLAGS} -w ${PROXY_SSL_CERTS} -a
2324
bf-done "proxy/update"
2425

2526

0 commit comments

Comments
 (0)