LetsEncrypt: remove deleted domains/subdomains from san_config before renewal

Version 1.52


If you've got subdomains, create a multi-domain LetsEncrypt certificate to include those subdomains, and then delete the subdomain, the renewal would fail, because the san_config still has the subdomain listed. Before any renewal call to letsencrypt.sh, DA will scan the list of subjectAltName=DNS entries, to ensure that: - they're a domain on the sysetm - or a subdomain of a domain on the system - or resolve to any IP that exists on the system (data/admin/ips/ip.list) If not, it's removed from the domain.com.san_config, prior to the renewal via letsencrypt.sh.

Interested to try DirectAdmin? Get a 30-day Free Trial!