Inhibit IPv6, in an attempt to prevent `urn:acme:error:badNonce' reports.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 22 Sep 2017 09:39:29 +0000 (10:39 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 22 Sep 2017 09:39:29 +0000 (10:39 +0100)
bin/make-cert
dehydrated-config.sh

index fd0cdf5..9dcf15b 100755 (executable)
@@ -14,6 +14,10 @@ case $# in 0) ;; *) fail_usage ;; esac
 
 prepare_tmp $tag
 
+## Make sure there's no proxy.  I get `urn:acme:error:badNonce' with high
+## probability if I use IPv6, so avoid rolling the dice.
+unset http_proxy
+
 ## Let's go.
 cert=$home/cert/$tag
 cd $cert
index 3dbf84b..985ce24 100644 (file)
@@ -7,4 +7,8 @@ PRIVATE_KEY_RENEW=no
 ACCOUNTDIR=$BASEDIR/etc/account
 LOCKFILE=$BASEDIR/etc/lock
 
+## For some reason, I get `urn:acme:error:badNonce' errors if I try to use
+## IPv6.  This causes sadness.
+IP_VERSION=4
+
 ##CA="https://acme-staging.api.letsencrypt.org/directory"