Author Topic: Error in AutoSSL  (Read 12903 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

Offline
*
Re: Error in AutoSSL
« Reply #7 on: July 26, 2019, 08:31:26 AM »
same issue with me also


[root@srv ~]# ls -lah /root/.acme.sh
total 276K
drwx------  7 root root  186 Jul 20 00:54 .
dr-xr-x---. 6 root root 4.0K Jul 26 13:33 ..
-rw-r--r--  1 root root   95 Jul 26 03:05 account.conf
-rwxr-xr-x  1 root root 185K Jul 20 00:50 acme.sh
-rw-r--r--  1 root root   78 Jul 20 00:50 acme.sh.csh
-rw-r--r--  1 root root   78 Jul 20 00:50 acme.sh.env
-rw-r--r--  1 root root  62K Jul 26 03:52 acme.sh.log
drwxr-xr-x  3 root root   42 Jul 20 00:54 ca
drwxr-xr-x  7 root root  139 Jul 26 02:59 cwp_certs
drwxr-xr-x  2 root root 4.0K Jul 20 00:50 deploy
drwxr-xr-x  2 root root 4.0K Jul 20 00:50 dnsapi
-rw-r--r--  1 root root    0 Jul 26 03:50 http.header
drwxr-xr-x  2 root root  122 Jul 20 00:50 notify
You have mail in /var/spool/mail/root
[root@srv ~]#

Offline
*
Re: Error in AutoSSL
« Reply #8 on: July 26, 2019, 08:34:15 AM »
[root@srv ~]# cat /var/log/cwp/cwp_sslmod.log
The check was not successful
The check was not successful
The check was not successful
The check was not successful
The check was not successful
nowww.s11.manyvideos.xyz
AutoSSL Issue Failed![Thu Jul 25 20:54:41 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 20:54:41 IST 2019] Can not init api.
[Thu Jul 25 20:56:49 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 20:56:49 IST 2019] Can not init api.
[Thu Jul 25 20:56:49 IST 2019] Registering account
[Thu Jul 25 20:58:56 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 20:58:56 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 20:56:49 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 20:56:49 IST 2019] Can not init api.
[Thu Jul 25 20:56:49 IST 2019] Registering account
[Thu Jul 25 20:58:56 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 20:58:56 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:01:06 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:01:06 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:03:15 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:03:15 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:05:24 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:05:24 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:07:34 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:07:34 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:09:43 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:09:43 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:11:52 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:11:52 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:14:01 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:14:02 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:16:11 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:16:11 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:18:20 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:18:20 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:20:29 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:20:29 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:22:39 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:22:39 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:24:48 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:24:48 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:26:57 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:26:57 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:29:07 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:29:07 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:31:16 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:31:16 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:33:25 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:33:25 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:35:35 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:35:35 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:37:44 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:37:44 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:39:59 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 21:39:59 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:40:01 IST 2019] Registered
[Thu Jul 25 21:40:01 IST 2019] Can not find account id url.
[Thu Jul 25 21:40:01 IST 2019]
[Thu Jul 25 21:40:01 IST 2019] Please check log file for more details: /root/.acme.sh/acme.sh.log
  - nowww
AutoSSL Issue Failed![Thu Jul 25 20:54:41 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 20:54:41 IST 2019] Can not init api.
[Thu Jul 25 20:56:49 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 20:56:49 IST 2019] Can not init api.
[Thu Jul 25 20:56:49 IST 2019] Registering account
[Thu Jul 25 20:58:56 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
[Thu Jul 25 20:58:56 IST 2019] Could not get nonce, let's try again.
[Thu Jul 25 21:01:06 IST 2019] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7
« Last Edit: July 26, 2019, 08:40:50 AM by rejithr1995 »