I have a domain, say example.com. I have not configured subdomains because the website uses a multi subdomain by DNS in which all domains are routed to the same public directory.
As such, I altered the example.com.san_config in the /usr/local/directadmin/data/users/<user>/domains/ directory, and appended multiple sub entries as the following:
subjectAltName = DNS:example.com, DNS: sub1.example.com, DNS: sub2.example.com
If I manually renew this works fine and all the subdomains get a Letsencrypt certificate for all of them. The .san_config file is also not modified after this operation.
However, when the automatic renewal occurs, the .san_config is overwritten and my custom added entries are gone. I have no clue why this happens and have not found any other file where the specific changes are defined.
Which other scripts/sources are used to construct this file (specially: overwriting the subjectAltName line)?
Thanks a lot for the insights!
As such, I altered the example.com.san_config in the /usr/local/directadmin/data/users/<user>/domains/ directory, and appended multiple sub entries as the following:
subjectAltName = DNS:example.com, DNS: sub1.example.com, DNS: sub2.example.com
If I manually renew this works fine and all the subdomains get a Letsencrypt certificate for all of them. The .san_config file is also not modified after this operation.
However, when the automatic renewal occurs, the .san_config is overwritten and my custom added entries are gone. I have no clue why this happens and have not found any other file where the specific changes are defined.
Which other scripts/sources are used to construct this file (specially: overwriting the subjectAltName line)?
Thanks a lot for the insights!