Let's Encrypt and DA beta

Ieuan

Verified User
Joined
Dec 26, 2015
Messages
21
Basically, I tried to get Let's Encrypt working on my server. Updated DA to the latest beta build, and while it does show all the config options that have been added since 1.49.1, the version number I'm seeing in Licensing/Updates is still 1.49.1. Is this normal?

Also, when I try to generate a certificate I get this output;
Code:
Getting challenge for <domain> from acme-server...
/usr/local/directadmin/scripts/letsencrypt.sh: line 51: curl: command not found
/usr/local/directadmin/scripts/letsencrypt.sh: line 70: curl: command not found
/usr/local/directadmin/scripts/letsencrypt.sh: line 272: [: : integer expression expected
/usr/local/directadmin/scripts/letsencrypt.sh: line 288: [: : integer expression expected
/usr/local/directadmin/scripts/letsencrypt.sh: line 312: /var/www/html/.well-known/acme-challenge/: Is a directory
/usr/local/directadmin/scripts/letsencrypt.sh: line 51: curl: command not found
/usr/local/directadmin/scripts/letsencrypt.sh: line 70: curl: command not found
/usr/local/directadmin/scripts/letsencrypt.sh: line 315: [: -ne: unary operator expected
Waiting for domain verification...
rm: cannot remove `/var/www/html/.well-known/acme-challenge/': Is a directory
Challenge is . Details: . Exiting...

letsencrypt is set to 1 in directadmin.conf and I have no issue running curl from CLI over SSH.

Is there a very obvious point that I'm missing or is there an actual issue?
 
Do you have curl installed on your system? Please post the output of:
Code:
whereis curl
 
Do you have curl installed on your system? Please post the output of:
Code:
whereis curl

Like I said, I have no issue running curl in terminal. which/whereis curl outputs /usr/local/bin/curl as expected
 
Fixed by replacing every occurence of curl in /usr/local/directadmin/scripts/letsencrypt.sh with /usr/local/bin/curl
 
Thanks for the info. I've replaced "curl" with ${CURL} and set that to /usr/local/bin/curl (or /usr/bin/curl if that doesn't exist)
Same idea with openssl, replaced with ${OPENSSL}, set to /usr/bin/openssl. Should rule out any $PATH issues now.

John
 
Back
Top