Hi friend, I get the next when run the script
ot@mail ~]# ./script.sh xxx.com
[Tue May 20 09:48:46 -05 2025] Unknown parameter: mail
This is not a message from acme.sh.
So, may be you copy something wrong in your script.?
Try to replace the parameters directly in the main command in that script (/root/.acme.sh/acme.sh ... )
Type all these commands, step-by-step, in bash from your server:
# DOM=xxx.com
# WEBS=""
# systemctl -q is-active nginx && WEBS="${WEBS} nginx"
# systemctl -q is-active httpd && WEBS="${WEBS} httpd"
# /root/.acme.sh/acme.sh --cert-home /root/.acme.sh/cwp_certs --webroot /usr/local/apache/autossl_tmp --issue -d ${DOM} mail webmail ftp cpanel --ecc \
--cert-file /etc/pki/tls/certs/${DOM}.cert \
--key-file /etc/pki/tls/private/${DOM}.key \
--fullchain-file /etc/pki/tls/certs/${DOM}.bundle \
--reloadcmd "systemctl restart ${WEBS}"
Alternatively, you can put your parameters between quotation marks, like:
# DOM="xxx.com"
(...)
# /root/.acme.sh/acme.sh --cert-home "/root/.acme.sh/cwp_certs" --webroot "/usr/local/apache/autossl_tmp" --issue -d "${DOM}" "mail" "webmail" "ftp" "cpanel" --ecc \
(...)
You can check where are the error, and post here.