During the attempt to reissue a Let's Encrypt certificate, a problem was detected at step 5 for one specific domain with error Let's Encrypt validation status and empty status code in /var/log/vesta/letsencrypt.log. It is noteworthy that all other domains received and renewed the certificate without any problems.
As you can see, after parsing the URL from the JSON response in step 4, an incorrect URL with a line break with a piece of the token from the "token" field is passed to step 5:
Operating System (OS/VERSION):
CentOS 7.7.1908 (x86_64)
VestaCP Version:
Vesta core package version: 1.0.0 (x86_64) Release: 6
Bug description
During the attempt to reissue a Let's Encrypt certificate, a problem was detected at step 5 for one specific domain with error
Let's Encrypt validation status
and empty status code in/var/log/vesta/letsencrypt.log
. It is noteworthy that all other domains received and renewed the certificate without any problems.As you can see, after parsing the URL from the JSON response in step 4, an incorrect URL with a line break with a piece of the token from the
"token"
field is passed to step 5:but it should be like this:
After researching and running the commands from the
v-add-letsencrypt-domain
file line by line, it turned out that the problem lies in this line:The
grep url
reacts to the combination ofurl
characters in the token and does not correctly extract the URL value from JSON.To fix this problem, you need to add quotes on line 172 so that the line looks like this: