New subdomain not added to acme.sh Le_Alt when created
Short description
When creating a subdomain for a site, it is not added to the certificate as an alt name when the subdomain is created, despite acme.sh being called for that domain at that time.
Correct behaviour
The subdomain should be added to the list of alt names in /root/.acme.sh/<site>/<site>.conf under the var Le_Alt before acme.sh is called
Environment
Server OS: CentOS
Server OS version: 8
ISPConfig version: 3.1dev
Steps to reproduce
- Add the subdomain to the site DNS so it can be verified.
- For debugging purposes, run:
echo "LOG_FILE='/tmp/acme.log'" | sudo tee -a /root/.acme.sh/account.conf
- Create the subdomain in the interface.
- View /tmp/acme.log - note that acme.sh ran, but was called with a value of Le_Alt that doesn't include the new subdomain.
- View /root/.acme.sh/<site>/<site>.conf - note that the stored value of Le_Alt doesn't have it either.
- Run
openssl x509 -noout -text -in /var/www/<site>/ssl/<site>-le.crt | grep DNS
- note that the issued certificate doesn't list it as a valid name. - Edit the subdomain and add/remove a redirect (it's not critical, we just want to force the site to update)
- View the log and .conf again and note now it should have worked. Sometimes it takes several tries.