By default, directadmin allows you to login to their control panel using yourhostname.com:2222. If you want to use a LetsEncrypt SSL for secure admin login access to your directadmin control panel, simply do the following:

  1. Modify the Directadmin configuration file /usr/local/directadmin/conf/directadmin.conf
  2. Add the following line to the file, anywhere you would like:
    ssl_port=2223
  3. Save the file and restart directadmin

That’s it! You can now log into your directadmin control panel using an SSL secured port 2223. You can change this port to any other one if you would like of course, just make sure you open the port in your firewall if it’s closed