Bobcares

Linode Install SSL Certificate | Guide

by | Apr 20, 2022

Linode Install SSL Certificate is an easy task with Bobcares by your side. Read on to learn more. 

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Services.

Let’s take a look at how our Support Team is ready to help customers install SSL certificate

Linode Install SSL Certificate

Linode is not a certificate authority and does not provide SSL certificates. Hence, we have to rely on a 3rd party SSL certificate provider for our Linode server. Let’s Encrypt is a popular and free certificate provider in these scenarios. Our Support Techs are here to take you through the process of installing SSL certificates on different configurations:

  • Apache on CentOS
  • Apache on Debian & Ubuntu
Linode Install SSL Certificate

Install SSL Certificate: Apache on CentOS

  1. First, ensure that Apache mod_ssl module is installed on the system. If not, we can do so with the command:
    yum install mod_ssl
  2. Then, we will edit the /etc/httpd/conf.d/ssl.conf file to add the certificate files as well as the virtual host information for each domain. We have to replicate the configuration for each virtual host.
    <VirtualHost *:443>
         SSLCertificateFile /etc/pki/tls/certs/domainname.com.crt
         SSLCertificateKeyFile /etc/pki/tls/private/domainname.com.key
         SSLCACertificateFile /etc/pki/tls/certs/root-certificate.crt  
         ServerAdmin info@domainname .com
         ServerName www.domainname.com
         DocumentRoot /var/www/domainname .com/public_html/
         ErrorLog /var/www/domainname.com/logs/error.log
         CustomLog /var/www/domainname.com/logs/access.log combined
    </VirtualHost>

    In case we are using a commercial SSL certificate, and it is downloaded to /etc/pki/tls/certs, we have to make sure to that the SSLCACertificateFile value points directly to the root certificate. However, if the root certificate is in a “ca-certificates” bundle, we can exclude the SSLCACertificateFile line.

  3. Next, we will restart Apache with this command:
    systemctl restart httpd

Install SSL Certificate: Apache on Debian & Ubuntu

  1. First, we will edit the /etc/apache2/sites-available file to add the certificate file paths. Moreover, we have to replicate the configuration for each virtual host. Furthermore, we have to ensure SSLCACertificateFile value points directly to the ca-certificates.crt file.
    <VirtualHost *:443>
        ServerAdmin info@domainname .com
        ServerName domainname.com
        ServerAlias www.domainname.com
    
        DocumentRoot /var/www/html/domainname .com/public_html/
        DirectoryIndex index.html
    
        # SSL configuration
        SSLEngine On
        SSLCertificateFile /etc/ssl/certs/domainname .com.crt
        SSLCertificateKeyFile /etc/ssl/private/domainname .com.key
        SSLCACertificateFile /etc/ssl/certs/ca-certificates.crt  
        # Log files
        ErrorLog /var/www/html/domainname .com/log/error.log
        CustomLog /var/www/html/domainname .com/log/access.log combined
    </VirtualHost>
    <VirtualHost *:80>
        ServerName domainname.com
        ServerAlias www.domainname.com
        Redirect permanent / https://domainname .com/
    </VirtualHost>
  2. Next, make sure the Apache SSL module is enabled, and then enable the virtualhost configuration as seen below:
    a2enmod ssl
    a2ensite domainname.com
  3. Finally, restart Apache with this command:
    service apache2 restart

[Need help with another query? We are available 24/7.]

Conclusion

To sum up, our skilled Support Engineers at Bobcares demonstrated how to install the SSL certificate on Linode.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.