native linux proxy support
This commit is contained in:
parent
9e613a33d1
commit
6a93a32d81
19
get-certs.sh
19
get-certs.sh
@ -4,7 +4,7 @@
|
||||
# define variables
|
||||
|
||||
# enable proxychains?
|
||||
proxychains=false
|
||||
proxychains=true
|
||||
|
||||
# wait for this many seconds before trying certificate issuance/renewal
|
||||
wait_before_renew=30
|
||||
@ -16,7 +16,8 @@ bridge46_ipv4="207.127.103.198"
|
||||
provider="mesh.cat"
|
||||
|
||||
# whoami service
|
||||
whoami_url="https://ygg.mesh.cat/whoami"
|
||||
whoami_domain="ygg.mesh.cat"
|
||||
whoami_url="https://$whoami_domain/whoami"
|
||||
|
||||
# mesh domain provider alternative dns port for acme challenge and bridge46 A records
|
||||
alternative_dns_port="53536"
|
||||
@ -48,10 +49,10 @@ _exists() {
|
||||
_get=""
|
||||
_get_is=""
|
||||
if _exists curl && [ "${ACME_USE_WGET:-0}" = "0" ]; then
|
||||
_get="curl -s -L"
|
||||
_get="curl --noproxy $whoami_domain -s -L"
|
||||
_get_is="curl"
|
||||
elif _exists wget ; then
|
||||
_get="wget -O -"
|
||||
_get="wget --no-proxy -O -"
|
||||
_get_is="wget"
|
||||
else
|
||||
echo "Sorry, you must have curl or wget installed first."
|
||||
@ -115,11 +116,11 @@ if [ "$proxychains" = true ] ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# register zerossl account
|
||||
$acme_cmd \
|
||||
--register-account \
|
||||
-m admin@$domain \
|
||||
--server zerossl
|
||||
# register zerossl account ## we're using letsencrypt by the moment
|
||||
#$acme_cmd \
|
||||
# --register-account \
|
||||
# -m admin@$domain \
|
||||
# --server zerossl
|
||||
|
||||
# get challenge
|
||||
timestamp=`date +"%Y%m%d%H%M%S"`
|
||||
|
Loading…
Reference in New Issue
Block a user