Author Topic: Missing .acme.sh and hanging AutoSSL  (Read 3184 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Missing .acme.sh and hanging AutoSSL
« on: October 01, 2022, 04:17:35 PM »
After fresh installation of the CWP (0.9.8.1145) on centos 7.9.2009 (Core), I realized that when I install / renew SSL certificate, without completing the process, the whole panel hangs!

Also when I creating a new account, if Auto SSL checked, after long time below error is displayed in the popup:
Quote
504 Gateway Time-out
cwpsrv

Upon further investigation I found that there is no /.acme.sh in my /root directory!

How can I fix this issue?
« Last Edit: October 01, 2022, 04:34:31 PM by WISTFUL »

Offline
*
Re: Missing .acme.sh and hanging AutoSSL
« Reply #1 on: October 01, 2022, 09:28:56 PM »
During the installation, due to issue in my server network, acme was not downloaded from repository.

I solved the issue by doing following steps:

1. Install acme (with proxy)
Code: [Select]
[root@server ~]# sh /scripts/install_acme
--2022-10-01 19:45:48--  http://get.acme.sh/
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’
2022-10-01 19:45:48 (20.4 MB/s) - ‘index.html’ saved [1032]
[Sat Oct  1 19:45:50 BST 2022] Installing from online archive.
[Sat Oct  1 19:45:50 BST 2022] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
[Sat Oct  1 19:45:52 BST 2022] Extracting master.tar.gz
[Sat Oct  1 19:45:53 BST 2022] Installing to /root/.acme.sh
[Sat Oct  1 19:45:53 BST 2022] Installed to /root/.acme.sh/acme.sh
[Sat Oct  1 19:45:53 BST 2022] Installing alias to '/root/.bashrc'
[Sat Oct  1 19:45:53 BST 2022] OK, Close and reopen your terminal to start using acme.sh
[Sat Oct  1 19:45:53 BST 2022] Installing alias to '/root/.cshrc'
[Sat Oct  1 19:45:53 BST 2022] Installing alias to '/root/.tcshrc'
[Sat Oct  1 19:45:53 BST 2022] Installing cron job
18 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
[Sat Oct  1 19:45:53 BST 2022] Good, bash is found, so change the shebang to use bash as preferred.
[Sat Oct  1 19:45:56 BST 2022] OK
[Sat Oct  1 19:45:56 BST 2022] Install success!
[Sat Oct  1 19:45:56 BST 2022] Changed default CA to: https://acme-v02.api.letsencrypt.org/directory

2. Update Crontab for user root:
Code: [Select]
0 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh/cwp_certs" > /dev/null
3. CWP.admin > Server Settings > Change Hostname > Save (without change)

4. CWP.admin > SSL Certificates > Force all renovations

5. View log:
Code: [Select]
# tail -f /var/log/cwp/cwp_renew_autossl_bulk.log

Offline
*
Re: Missing .acme.sh and hanging AutoSSL
« Reply #2 on: November 06, 2022, 06:14:22 PM »
Did this allow changehostname install a letsencrypt cert?  I have two  servers one has a letsencrypt cert for hostname the other does not. I also see that the one without does not have acme.sh installed.  After you performed the changehostname did you have to restart cwp, nginx and apache?