LetsEncrypt certificate creation works, but takes 15 minutes


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » SSL » Let's Encrypt

LetsEncrypt certificate creation works, but takes 15 minutesLast Modified: Jun 15, 2016, 8:17 pm
Report that if your system has IPv6 present, but is not on a valid IPv6 network, LetsEncrypt calls may try and used IPv6, and timeout after 15 minutes, then using the IPv4.

Related discussion:
https://community.letsencrypt.org/t/client-takes-almost-one-hour-to-create-certificate/8579/5

Solution for the DirectAdmin setup is to edit:

/usr/local/directadmin/scripts/letsencrypt.sh

and add the -4 option to all curl calls.

The simplest way to do this is to add -4 into the ${CURL} variable, after it's been checked for existence.
Find this code:

CURL=/usr/local/bin/curl
if [ ! -x ${CURL} ]; then
       CURL=/usr/bin/curl
fi

and right below it, add a line, so that it looks like this:

CURL=/usr/local/bin/curl
if [ ! -x ${CURL} ]; then
       CURL=/usr/bin/curl
fi
CURL="${CURL} -4"

so that all calls using ${CURL} will have the -4 option added.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST