Let's encrypt error line 508

Ludovic

New member
Joined
May 9, 2016
Messages
4
Hi, since many day I cannot made new certificat. Certificat was generate but i've got error line 508

"/usr/local/directadmin/scripts/letsencrypt.sh: ligne 508 : exit: 0n : argument numérique nécessaire".
Can be translated "numeric argument required".

This is all result, thanks for you help.

Code:
Generating 4096 bit RSA key for let's encrypt account...
openssl genrsa 4096 > "/usr/local/directadmin/data/users/customer/letsencrypt.key"
Generating RSA private key, 4096 bit long modulus
...............................................................................++
......++
e is 65537 (0x10001)
Account has been registered.
Getting challenge for domain.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for www.domain.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Generating 4096 bit RSA key for domain.com...
openssl genrsa 4096 > "/usr/local/directadmin/data/users/customer/domains/domain.com.key.new"
Generating RSA private key, 4096 bit long modulus
...........................++
.......................................++
e is 65537 (0x10001)
Certificate for domain.com has been created successfully!
/usr/local/directadmin/scripts/letsencrypt.sh: ligne 508 : exit: 0n : argument numérique nécessaire
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
Hello,

Try and see whether or not it solves the issue:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build letsencrypt
 

Ludovic

New member
Joined
May 9, 2016
Messages
4
Hi thanks for you fast reply. I still have same error.
For more information my server was on Debian 7.11

If you have other idea I can try it.

Thanks for you help.
 

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,789
Location
A Coruña, Spain
Are you sure has been updated?
Can you paste line 508 of the /usr/local/directadmin/scripts/letsencrypt.sh script?

Best regards
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
If you run it from console (vs Directadmin interface), then try to use it the following way:

Code:
LANG=C [COLOR=#333333]/usr/local/directadmin/scripts/letsencrypt.sh request example.com
where you should replace example.com with your actual domain name.

And be the way, did the SSL cert actually install on your server?[/COLOR]
 

Ludovic

New member
Joined
May 9, 2016
Messages
4
Hi,

The result of command in terminal has same error:
Code:
root@server:/home/customer/public_html# LANG=C /usr/local/directadmin/scripts/letsencrypt.sh request domain.com
Getting challenge for domain.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for www.domain.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Generating 4096 bit RSA key for domain.com...
openssl genrsa 4096 > "/usr/local/directadmin/data/users/customer/domains/domain.com.key.new"
Generating RSA private key, 4096 bit long modulus
..................................++
...................................................................................................................................++
e is 65537 (0x10001)
Certificate for domain.com has been created successfully!
/usr/local/directadmin/scripts/letsencrypt.sh: line 508: exit: 0n: numeric argument required

The line of the script was:

Line 507: echo "Certificate for ${DOMAIN} has been created successfully!"
Line 508: exit 0n root:root ${NGINXKEY} ${NGINXCERT} ${NGINXCACERT} ${NGINXCERTCOMBINED}
chmod 600 ${NGINXKEY} ${NGINXCERT} ${NGINXCACERT} ${NGINXCERTCOMBINED}


Thanks for your help
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
Your script seems to be corrupted. Run:

Code:
cd /usr/local/directadmin/custombuild
./build set_fastest
./build update
./build letsencrypt
and check md5 sum

Code:
md5sum /usr/local/directadmin/custombuild/letsencrypt.sh
and update us with your results.
 
Top