Letsencrypt error ./letsencrypt.sh: line 279: [: : integer expression expected

2webmen

Verified User
Joined
Mar 18, 2016
Messages
14
Hello,

I am trying to use letsencrypt according to

http://help.directadmin.com/item.php?id=15

but get the following error,

[root@boabdil scripts]# ./letsencrypt.sh request boabdil.tobeonthe.net 4096
Setting up certificate for a hostname: boabdil.tobeonthe.net
Getting challenge for boabdil.tobeonthe.net from acme-server...
./letsencrypt.sh: line 279: [: : integer expression expected
./letsencrypt.sh: line 295: [: : integer expression expected
./letsencrypt.sh: line 319: /var/www/html/.well-known/acme-challenge/: Is a directory
./letsencrypt.sh: line 322: [: -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...

I had already a self signed certificate installed according to the same instructions
any idea what is happening?

thanks?
 
Hi Martynas
we are on CentOS release 6.7 (Final)

it says her on the bottom, I have to run
http://www.directadmin.com/features.php?id=1828

update-ca-certificates

because of a curl issue but I am on CENTOS and am not sure how to do that there.

I don't think I can access the pre-release binaries as I am on a internal license, i think. Is that so or not?

thanks for your quick reply
 
As soon as you have access to the DirectAdmin License Panel, you can get the pre-release binary as far as i know.

If you rent a server with the license provided by the provider, than you may ask them to provide you the steps for the pre-release binary.

Regards
 
I'm also getting the same error on line 279 with CentOS 6 and DA 1.50
Adding some debug line shows that ${HTTP_STATUS} is empty because $RESPONSE in the send_signed_request() function is empty so the HTTP_STATUS couldn't be grepped.

I've checked that $CURL set to the correct curl binary path so it seems like there is no response from LE to the request.

However, if I use the LE client script i.e. letsencrypt-auto.sh from the LE site, I am able to get the challenge as well as see the LE server connecting to the domain to perform verification.
 
I'm also getting the same error on line 279 with CentOS 6 and DA 1.50
Adding some debug line shows that ${HTTP_STATUS} is empty because $RESPONSE in the send_signed_request() function is empty so the HTTP_STATUS couldn't be grepped.

I've checked that $CURL set to the correct curl binary path so it seems like there is no response from LE to the request.

However, if I use the LE client script i.e. letsencrypt-auto.sh from the LE site, I am able to get the challenge as well as see the LE server connecting to the domain to perform verification.

Do you experience the problem with DA pre-release binaries too? http://help.directadmin.com/item.php?id=408
 
Back
Top