Lets Encrypt cert issued but not applied on vhost for one domain only
Hello,
I have a very strange issue which I cannot debug for a long time. I'll try to explain it as better I can.
For a specific top level domain only, I cannot enable Lets Encrypt certificate. The certificate is issued but the vhost is not updated. If I apply for a different domain (even for a subdomain of the top level domain) it works as expected, the certificate is issued and the vhost file updated. I even removed any trace of the top level domain from the system (deleted site, users, ftp, databases etc) and recreated it to face again the same issue. Certificate is issued but vhost is not updated to include it.
To summarize:
- I create a site with mydomain.com and auto subdomain www
- I enable lets encrypt ssl for the site. SSL is issued successfully and it is visible with "certbot certificates" but the vhost file is not updated to listen on 443 and include the cert. I think that the symbolic links on ssl folder of the site are not created at all.
- Delete this site and clear everything
- Create a new site with a different domain (subdomain like mytest.mydomain.com).
- Enable Lets Encrypt for mytest.mydomain.com, cert is issued, vhost is updated, everything works perfectly.
- Create again the site for mydomain.com (with autosubdomain www)
- Eneble Lets Encrypt for the site mydomain.com. Certificate is issued and includes mydomain.com and www.mydomain.com correctly but vhost file is never updated to include the necessary lines.
I have done this hundreds of time (and waiting for weeks for the rate limit of lets encrypt to expire after issuing the certs too many time) without success. Every time I create the mydomain.com from scratch, vhost is not updated with the cert definition. Any other new site works fine.
I'm scratching my head with this and didn't managed to find any solution or logs of what breaks.
Running Ubuntu 18.04.2 LTS (Bionic Beaver) ISPConfig 3.1.13p1 with nginx
Any help is appreciated and I can provide more info. Thank you.