@@ -1271,7 +1271,7 @@ _createcsr() {
12711271 _savedomainconf Le_ExtKeyUse " $Le_ExtKeyUse "
12721272 printf " \nextendedKeyUsage=$Le_ExtKeyUse \n" >> " $csrconf "
12731273 else
1274- printf " \nextendedKeyUsage=serverAuth,clientAuth \n" >> " $csrconf "
1274+ printf " \nextendedKeyUsage=serverAuth\n" >> " $csrconf "
12751275 fi
12761276
12771277 if [ " $acmeValidationv1 " ]; then
@@ -1897,6 +1897,11 @@ _inithttp() {
18971897
18981898 if [ -z " $_ACME_CURL " ] && _exists " curl" ; then
18991899 _ACME_CURL=" curl --silent --dump-header $HTTP_HEADER "
1900+ if [ " $ACME_USE_IPV6_REQUESTS " ]; then
1901+ _ACME_CURL=" $_ACME_CURL --ipv6 "
1902+ elif [ " $ACME_USE_IPV4_REQUESTS " ]; then
1903+ _ACME_CURL=" $_ACME_CURL --ipv4 "
1904+ fi
19001905 if [ -z " $ACME_HTTP_NO_REDIRECTS " ]; then
19011906 _ACME_CURL=" $_ACME_CURL -L "
19021907 fi
@@ -1924,6 +1929,11 @@ _inithttp() {
19241929
19251930 if [ -z " $_ACME_WGET " ] && _exists " wget" ; then
19261931 _ACME_WGET=" wget -q"
1932+ if [ " $ACME_USE_IPV6_REQUESTS " ]; then
1933+ _ACME_WGET=" $_ACME_WGET --inet6-only "
1934+ elif [ " $ACME_USE_IPV4_REQUESTS " ]; then
1935+ _ACME_WGET=" $_ACME_WGET --inet4-only "
1936+ fi
19271937 if [ " $ACME_HTTP_NO_REDIRECTS " ]; then
19281938 _ACME_WGET=" $_ACME_WGET --max-redirect 0 "
19291939 fi
@@ -7137,6 +7147,8 @@ Parameters:
71377147 --auto-upgrade [0|1] Valid for '--upgrade' command, indicating whether to upgrade automatically in future. Defaults to 1 if argument is omitted.
71387148 --listen-v4 Force standalone/tls server to listen at ipv4.
71397149 --listen-v6 Force standalone/tls server to listen at ipv6.
7150+ --request-v4 Force client requests to use ipv4 to connect to the CA server.
7151+ --request-v6 Force client requests to use ipv6 to connect to the CA server.
71407152 --openssl-bin <file> Specifies a custom openssl bin location.
71417153 --use-wget Force to use wget, if you have both curl and wget installed.
71427154 --yes-I-know-dns-manual-mode-enough-go-ahead-please Force use of dns manual mode.
@@ -7255,6 +7267,24 @@ _processAccountConf() {
72557267 _saveaccountconf " ACME_USE_WGET" " $ACME_USE_WGET "
72567268 fi
72577269
7270+ if [ " $_request_v6 " ]; then
7271+ _saveaccountconf " ACME_USE_IPV6_REQUESTS" " $_request_v6 "
7272+ _clearaccountconf " ACME_USE_IPV4_REQUESTS"
7273+ ACME_USE_IPV4_REQUESTS=
7274+ elif [ " $_request_v4 " ]; then
7275+ _saveaccountconf " ACME_USE_IPV4_REQUESTS" " $_request_v4 "
7276+ _clearaccountconf " ACME_USE_IPV6_REQUESTS"
7277+ ACME_USE_IPV6_REQUESTS=
7278+ elif [ " $ACME_USE_IPV6_REQUESTS " ]; then
7279+ _saveaccountconf " ACME_USE_IPV6_REQUESTS" " $ACME_USE_IPV6_REQUESTS "
7280+ _clearaccountconf " ACME_USE_IPV4_REQUESTS"
7281+ ACME_USE_IPV4_REQUESTS=
7282+ elif [ " $ACME_USE_IPV4_REQUESTS " ]; then
7283+ _saveaccountconf " ACME_USE_IPV4_REQUESTS" " $ACME_USE_IPV4_REQUESTS "
7284+ _clearaccountconf " ACME_USE_IPV6_REQUESTS"
7285+ ACME_USE_IPV6_REQUESTS=
7286+ fi
7287+
72587288}
72597289
72607290_checkSudo () {
@@ -7420,6 +7450,8 @@ _process() {
74207450 _local_address=" "
74217451 _log_level=" "
74227452 _auto_upgrade=" "
7453+ _request_v4=" "
7454+ _request_v6=" "
74237455 _listen_v4=" "
74247456 _listen_v6=" "
74257457 _openssl_bin=" "
@@ -7885,6 +7917,18 @@ _process() {
78857917 fi
78867918 AUTO_UPGRADE=" $_auto_upgrade "
78877919 ;;
7920+ --request-v4)
7921+ _request_v4=" 1"
7922+ ACME_USE_IPV4_REQUESTS=" 1"
7923+ _request_v6=" "
7924+ ACME_USE_IPV6_REQUESTS=" "
7925+ ;;
7926+ --request-v6)
7927+ _request_v6=" 1"
7928+ ACME_USE_IPV6_REQUESTS=" 1"
7929+ _request_v4=" "
7930+ ACME_USE_IPV4_REQUESTS=" "
7931+ ;;
78887932 --listen-v4)
78897933 _listen_v4=" 1"
78907934 Le_Listen_V4=" $_listen_v4 "
0 commit comments