Author Topic: Error in AutoSSL  (Read 560 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error in AutoSSL
« on: August 24, 2018, 03:49:17 PM »
Hello everyone!
Does anyone have any tips for this error that is happening in CWP when I try to install a certificate for any domain:
An error occurred, the certificate can not be installed.
The .cert .bundle and .key files are all empty.
No error messages in the log
Thank you

William

Offline
*
Re: Error in AutoSSL
« Reply #1 on: August 24, 2018, 10:18:12 PM »
what information do the log

Offline
****
Re: Error in AutoSSL
« Reply #2 on: August 26, 2018, 10:01:22 PM »
We faced same issue on some of our server which were upgraded from old control panel to new control panel. that happened because acme.sh was not installed. Do check if you have .acme.sh in root

Code: [Select]
ls -lah /root/.acme.sh
The below log will actually report what is wrong with ssl certificate installation

Code: [Select]
cat /var/log/cwp/cwp_sslmod.log

Offline
*
Re: Error in AutoSSL
« Reply #3 on: August 27, 2018, 01:11:22 PM »
Hi. Thanks for answering my question.
The acme.sh script is ok.
The command cat /var/log/cwp/cwp_sslmod.log shows the following:

AutoSSL Issue Failed! [Mon Aug 27 08:04:09 -03 2018] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 56
[Mon Aug 27 08:04:09 -03 2018] Can not init api.
[Mon Aug 27 08:04:09 -03 2018] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 56
[Mon Aug 27 08:04:09 -03 2018] Can not init api.
[Mon Aug 27 08:04:09 -03 2018] Registering account
[Mon Aug 27 08:04:09 -03 2018] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 56
[Mon Aug 27 08:04:09 -03 2018] Can not connect to https://acme-v01.api.letsencrypt.org/directory to get nonce.
[Mon Aug 27 08:04:09 -03 2018] Register account Error:
[Mon Aug 27 08:04:09 -03 2018] Please check log file for more details: /root/.acme.sh/acme.sh.log.

And in the /root/.acme.sh/acme.sh.log, the following messages appear (a summary):

Using config home: /root/.acme.sh
ACME_DIRECTORY = 'https: //acme-v01.api.letsencrypt.org/directory'
DOMAIN_PATH = '/ root / .acme.sh / cwp_certs / www.aaa.bbbb.br'
Using ACME_DIRECTORY: https://acme-v01.api.letsencrypt.org/directory
_init api for server: https://acme-v01.api.letsencrypt.org/directory
GET
url = 'https: //acme-v01.api.letsencrypt.org/directory'
timeout =
_CURL = 'curl -L --silent --dump-header /root/.acme.sh/http.header -g'
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 56
ret = '56'
Can not init api.

Thank you!

Offline
****
Re: Error in AutoSSL
« Reply #4 on: August 27, 2018, 02:26:48 PM »
What does the log says when you run the command below. Replace yourdomain.com with your actual domain name

Quote
sh /root/.acme.sh/acme.sh --home /root/.acme.sh/cwp_certs --issue -d www.yourdomain.com -d yourdomain.com -w /usr/local/apache/autossl_tmp --debug 2

Offline
*****
Re: Error in AutoSSL
« Reply #5 on: August 27, 2018, 02:33:46 PM »
ensure the requests are not blocked by firewall

Offline
*
Re: Error in AutoSSL
« Reply #6 on: August 29, 2018, 10:54:46 AM »
Hello!
I was able to resolve the certificate installation issue. Everything was due to a proxy that was set in a .curlrc file that was not detected.
Anyway, I thank everyone for the help.
And when I can be useful count with me.
Thank you