FAQs

How to Install an SSL Certificate on a Linux VPS Using the DirectAdmin Control Panel? 

 
 

Overview 

By the end of this article, you will have a valid SSL certificate installed and active on a domain hosted on your Linux Virtual Private Server (VPS), served over HTTPS through the DirectAdmin control panel. The article covers, in order: confirming prerequisites, generating a Certificate Signing Request (CSR) in DirectAdmin (or, optionally, over Secure Shell (SSH)), purchasing the certificate from your Certificate Authority (CA), installing the certificate and private key, adding the CA root certificate, and verifying the installation. DirectAdmin is the web-based hosting control panel you use to manage the domain and its certificates. 

Prerequisites 

Before you begin, ensure you have: 

  • Access to the DirectAdmin control panel at the User level 

  • A domain name added to your DirectAdmin account 

  • The ability to generate a Certificate Signing Request (CSR), or a manually generated CSR and matching private key 

  • An SSL certificate purchased from a Certificate Authority (CA) after the CSR is generated 

Steps 

Step 1 — Log in to the DirectAdmin control panel 

Log in to DirectAdmin, switch to the User level, and select the domain you want to secure. Under Advanced Features, click SSL Certificates. 

Step 2 — Enable SSL for the domain 

If SSL is disabled for the selected domain, DirectAdmin displays a prompt to enable it. Click the “here” link to enable SSL support, then continue. 

Step 3 — Create a Certificate Signing Request (CSR) 

Select “Create A Certificate Request” and complete the CSR form with the required details: 

  • Country code 

  • State 

  • City 

  • Domain name 

Click Save to generate the CSR and private key. Copy and store both the CSR and the private key on your local computer for safekeeping. 

Step 4 — (Optional) Generate the CSR and private key over Secure Shell (SSH) 

If you prefer the command line, you can generate the CSR and private key manually over Secure Shell (SSH). Log in as root and run: 

/usr/bin/openssl genrsa 2048 > private.key 
/usr/bin/openssl req -new -key private.key 

You will be prompted for domain-related details during CSR creation. 

Step 5 — Purchase and obtain the SSL certificate 

Once the CSR is generated, purchase an SSL certificate from your Certificate Authority (CA). After the certificate is issued, return to DirectAdmin to install it. 

Step 6 — Install the SSL certificate and private key 

In the SSL Certificates menu, select “Paste a pre-generated certificate and key.” Paste the private key first, then the SSL certificate from your CA, into the text box in that order, and click Save. 

Step 7 — Install the CA root certificate 

Most Certificate Authorities also provide a trusted root certificate or CA bundle. In DirectAdmin: 

  • Open SSL Certificates again 

  • Click “Click Here to paste a CA Root Certificate” 

  • Check “Use a CA cert” 

  • Paste the root certificate 

  • Click Save 

How to verify success 

The installation is successful when your site loads over HTTPS with a valid certificate. Navigate to your website using https://, and confirm the padlock icon appears in the browser’s address bar. Optionally, use an external SSL checker such as SSL Labs or WhyNoPadlock to confirm the certificate chain is complete. 

Related questions 

  • How do I install an SSL certificate in DirectAdmin? 

  • What are the steps to generate a CSR on a Linux VPS? 

  • How do I add a CA root certificate in DirectAdmin? 

Need assistance?

Contact our team for help with your purchase or issuing your certificate.

Live chat

Call us today