In my server2, the DNS configuration:
domain.com A 2.2.2.2
mail.domain.com A 1.1.1.1
webmail.domain.com A 1.1.1.1
smtp.domain.com A 1.1.1.1
imap.domain.com A 1.1.1.1
pop.domain.com A 1.1.1.1
pop3.domain.com A 1.1.1.1
domain.com MX mx.server1.com
In my server1, /root/.acme.sh/cwp_certs/www.domain.com/mail.domain.com.conf
Le_Domain='mail.domain.com'
Le_Alt='webmail.domain.com'
Le_Webroot='/usr/local/apache/autossl_tmp/'
Le_PreHook=''
Le_PostHook=''
Le_RenewHook=''
Le_API='
https://acme-v02.api.letsencrypt.org/directory'Le_Keylength='ec-256'
Le_OrderFinalize='
https://acme-v02.api.letsencrypt.org/acme/finalize/1961123261396/310612395210307'Le_LinkOrder='
https://acme-v02.api.letsencrypt.org/acme/order/1961261123396/312310695210307'Le_LinkCert='
https://acme-v02.api.letsencrypt.org/acme/cert/03b47ed123d6aa00b71f7da7a0a01ccea7c56ce'Le_CertCreateTime='1728123049081'
Le_CertCreateTimeStr='2024-10-04T13:38:01Z'
Le_Listen_V4='1'
Le_NextRenewTimeStr='2024-12-02T13:38:01Z'
Le_NextRenewTime='1731233146681'
Le_RealCertPath='/etc/pki/tls/certs/domain.com.cert'
Le_RealCACertPath=''
Le_RealKeyPath='/etc/pki/tls/private/domain.com.key'
Le_ReloadCmd=''
Le_RealFullChainPath='/etc/pki/tls/certs/domain.com.bundle'
But, in navigator, the certificate point to host.server1.com instead of domain.com
Try to do following:
1. Access your server as root over SSH
2. Go to:
/root/.acme.sh/cwp_certs/DOMAIN/
where DOMAIN is the domain name your subdomains are associated with.
3. Edit the file (make backup of the file before you modify it):
DOMAIN.conf
Remove all objects pointed to a 3rd party server and listed in:
Le_Domain=
Le_Alt=
Leave only objects (subdomains) pointed to this server. Move some subdomain listed in "Le_Alt" to "Le_Domain".
4. Try to request the new SSL via the admin area of CWP.
However, I am not sure if this way is correct to fix the problem.