How to install SSL via Plesk Panel?

SSL Installation in DirectAdmin

When the Certificate Authority issues your SSL certificate, you need to install it on your web hosting server. You can install the certificate in DirectAdmin as follows:

  1. Click the button in the upper left corner of the screen, as shown in the screenshot below, to go to your server's main menu in the User section:

  2. In the Account Manager section, click on SSL Certificates:

  3. Select the option to Paste a pre-generated certificate and key:

  4. Next, paste the Private Key for your SSL into the Key field.

    Note: The private key is generated at the same time as the CSR code. It is enclosed with the following headers and footers: -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY-----. If you generate the CSR code in DirectAdmin, you'll need to manually save the private key as DirectAdmin doesn't automatically save it.

  5. Paste the certificate code you received from the Certificate Authority, including the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines, into the Certificate field. The same code is also found in your yourdomain.crt file in your directssl account. You can open this file with a plain text editor like Notepad (Windows) or TextEdit (macOS).

  6. After pasting the key, check the option to Force SSL with https redirect. This will enable HTTPS redirection for your website, automatically redirecting your visitors to the secure version of your site. Then, click Save.

  7. To complete the installation, upload the CA Bundle file (.ca-bundle) to DirectAdmin.

    This file is part of the SSL certificate ZIP archive you received via email from the Certificate Authority. You can also download all SSL files from your directssl account. The CA Bundle file should be named: yourdomain.ca-bundle.

    You can open the file in a plain text editor like Notepad (Windows) or TextEdit (macOS) to copy its contents in the required TXT format for the DirectAdmin panel.

      • Select the Paste a pre-generated certificate and key option and click on SSL CA Certificate.

      • Then, copy the entire content of the .ca-bundle file and paste it into the box under Use a CA cert. Afterward, click Save.

  8. You will see the notification "Successful CA Cert. Your site will be secure within a few minutes." This indicates that the SSL has been successfully installed. 

 

Troubleshooting the Error "Your request could not be fulfilled"

Sometimes, when accessing the SSL Certificates section in your Account Manager, you may encounter the error message: "Your request could not be fulfilled. SSL is not enabled for this domain". This means that the Disable SSL option is enabled in your DirectAdmin SSL Certificates section. This option prevents SSL installation and also prevents users from accessing the SSL Certificates section. As a result, with this option enabled, you won't be able to upload your certificate or disable the option from the user management section.

You can disable this option only through SSH. To do this, you need root access to the server where DirectAdmin is installed. After logging in as the root user, execute this command to open the configuration file for the domain:

sudo nano /usr/local/directadmin/data/users/USER/domains/DOMAIN.TLD.conf

  • nano is the command to open a .txt file.
  • USER is the name of the account where you'll apply the changes.
  • DOMAIN.TLD is your domain name.

Find the ssl=OFF line in the configuration file and change it to ssl=ON. Then, to save the changes, press CTRL+O, and to exit the file, press CTRL+X. This should resolve the error.

If the SSL certificates section error persists, contact your hosting provider for further assistance.