Once the Certificate Authority issues your SSL certificate, you must install it on your website's hosting server. Here's how to install the certificate in DirectAdmin:
Note: The Private key is generated at the same time as the CSR code. The Private key is enclosed with the following header and footer: -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY-----. If you generate the CSR code in DirectAdmin, you need to save the Private key manually as DirectAdmin does not save it automatically.
This file is in the certificate ZIP archive you received from the Certificate Authority via email. You can also download all SSL files from your Namecheap account. The CA Bundle file should have the name: yourdomain.ca-bundle.
You can open it via Notepad (Windows) or TextEdit (mac OS) to copy its content in the TXT format required for the DirectAdmin panel.
From time to time, you may encounter the following error message when opening the SSL Certificates section in your Account Manager: "Could not Execute your request. SSL is not enabled for this domain". This means that the Disable SSL option was turned on in the SSL Certificates section of your DirectAdmin. This option doesn't allow SSL installation. It also prevents the user from opening the SSL Certificates section. As a result, when that option is enabled, you won't be able to install your certificate or turn the option off via the user management area.
It is only possible to disable that option via SSH. For this, you'll need to have root access via SSH to the server where your DirectAdmin is installed. Once logged in as a root user, run this command to open the configuration file for the domain:
sudo nano /usr/local/directadmin/data/users/USER/domains/DOMAIN.TLD.conf
In the configuration file, locate the field ssl=OFF and change it to ssl=ON. After that, press CTRL+O to save the changes and CTRL+X to exit the file. This should fix the error.
If the SSL certificates section error persists, contact your hosting provider for further assistance.