With DirectAdmin you can configure the hostname to be equipped with a Let's Encrypt certificate. DirectAdmin may complain that the domain doest not exist on the system.
Make sure that the variable servername in /usr/local/directadmin/conf/directadmin.conf is configured with the hostname.
Hostname missing from /etc/virtual/domains
Add the hostname to /etc/virtual/domains.