Loading...

Knowledge Base
Up to 75% off on hosting for WordPress websites and online stores

How to Install SSL Certificate on VPS and Dedicated Servers

An SSL Certificate is essential for securing your website and ensuring your visitors' data is encrypted. In this guide, we'll walk you through how to install an SSL Certificate on VPS and Dedicated servers. Whether you're using Apache or Nginx as your server software, we'll cover the installation process and provide troubleshooting tips to ensure everything goes smoothly.



Install SSL Certificate on VPS and Dedicated

  1. Log in to WHM (Web Host Manager)
    To install an SSL certificate on your server, you must first log into WHM. Follow these steps:
    1. Open your browser and navigate to yourdomain.ext/whm (replace "yourdomain.ext" with your actual domain).
    2. Enter your root username and root password when prompted. The username will be "root," and the password should be the one set for your server's root account.
      The WHM Login Page Login Screen username and password

      Note: If this is your first time logging in, you may be greeted with the Feature Showcase page. Simply click Exit to WHM to proceed.

  2. Access the SSL Installation Tool in WHM
    Once logged in, you'll need to use the SSL Installation tool in WHM:
    1. In the WHM search box on the left side, type Install an SSL Certificate.
    2. Click on the Install an SSL Certificate on a Domain link in the search results.
      In WHM menu select Install an SSL Certificate a Domain
    3. You should now be at the Install an SSL Certificate on a Domain page in the WHM.
      In WHM Install an SSL Certificate on a Domain page
  3. Prepare Your SSL Certificate Files
    Before you can install your SSL certificate, ensure you have the necessary files:
    1. Private Key: This was generated when you created the CSR (Certificate Signing Request).
    2. Certificate: The certificate authority (CA) issued the SSL certificate to you.
    3. CA Bundle: The Certificate Authority (CA) bundle ensures that browsers and users trust the SSL certificate.

    Important: If you purchased the SSL certificate from a provider, they should have supplied these files. If not, contact them to retrieve them.

  4. Install the SSL Certificate on Your Server
    1. On the Install an SSL Certificate on a Domain page in WHM, enter the domain for which the certificate was issued in the Domain section.
      In WHM Install an SSL Certificate on a Domain page
    2. Paste the Certificate, Private Key, and CA Bundle into their boxes.
      Inside WHM Install an SSL Certificate on a Domain page Paste the three parts the certificate the key and the certificate authority CA bundle
    3. Click the Install button to complete the installation.
  5. Verify the Installation
    After installation, it's essential to verify that the SSL certificate is correctly installed:
    1. Use an SSL checker tool to verify the certificate installation.
    2. Check your website by visiting it with HTTPS (e.g., https://yourdomain.ext). Your browser should show a padlock symbol next to the URL, indicating a secure connection.

SSL Certificate Installation Troubleshooting

While SSL installation is usually straightforward, some common issues may arise:

SSL Certificate Not Trusted

  • Cause: This can happen if the CA Bundle is missing or incorrect.
  • Solution: Ensure the entire CA bundle is correctly pasted into the "CA Bundle" box during installation. Check that all parts of the certificate are included.

Mixed Content Warnings

  • Cause: This occurs if your website loads some resources over HTTP (non-secure) while the page is loaded over HTTPS (secure).
  • Solution: Update all internal links, images, and scripts to HTTPS instead of HTTP. Use a tool like the "Better Search Replace" plugin (for WordPress) to make bulk changes to your database.

Certificate Expired or Invalid

  • Cause: Your SSL certificate may have expired or not match the domain.
  • Solution: Renew your SSL certificate with your certificate provider and re-install it following the above steps.

Incompatible Server Configuration

  • Cause: Incorrect server configurations (Apache vs. Nginx) or missing SSL modules.
  • Solution: Ensure your server's SSL module is enabled (for Apache, you may need to ensure it mod_ssl is loaded; for Nginx, ensure SSL is configured correctly in the server block).

SSL Installation on Apache

  1. Open your Apache server configuration file (httpd.conf or ssl.conf).
  2. Ensure the following lines are included:
    SSLEngine on SSLCertificateFile /path/to/your/certificate.crt
    SSLCertificateKeyFile /path/to/your/private.key
    SSLCertificateChainFile /path/to/your/ca-bundle.crt
  3. Restart Apache to apply the changes:
    sudo systemctl restart apache2

Summary

Installing an SSL certificate on a VPS and Dedicated server is straightforward if you follow these steps carefully. You can secure your website with HTTPS by logging into WHM, accessing the SSL tool, and correctly installing the certificate files. Don't forget to update any URLs on your site to reflect the new HTTPS protocol and verify your SSL installation to ensure everything functions correctly.

For additional assistance, consult our SSL Web Hosting: How to Add HTTPS to Your Domain guide for further troubleshooting help.

Did you find this article helpful?

 
* Your feedback is too short

Loading...