Let’s Encrypt SSL Installation Print

  • 0

Objective

Blue Hill Hosting offers VPS customers pre-installed application images as add-ons at the time of ordering the VPS servers for quick and easy deployment of applications with a few clicks only.

This guide will provide the first steps for each and every pre-installed application web panels image on our VPS

 

This section only applies to WordPress, Drupal, Joomla and Prestashop installations. It will not work for other installations.

  1. You must create or edit two A records in the Blue Web Hosting Control Panel which point to the IP address of your VPS server. For example, if your domain name is “bluehillhosting.com” then you need to create A records for:
    • bluehillhosting.com
    • www.bluehillhosting.com
  1. You may need to wait 24 hours before the two records propagate fully. You can always check it with mxtoolbox. If the IP for your domain is showing on MX toolbox the same as your server’s IP address then you can proceed to the next step.
  2. SSH into your server with the CentOS user and execute the following commands to install Certbot.

Replace bluehillhosting.com in the commands with your own domain name.

sudo -i
dnf install -y epel-release
dnf install -y certbot python3-certbot-apache mod_ssl
echo "ServerName personaldomain.ovh;" >> /etc/httpd/conf/httpd.conf
systemctl restart httpd

  1. Generate your SSL using Certbot (follow the on-screen instructions).
certbot certonly -d personaldomain.ovh --webroot

When asked about “Input the webroot”, you need to enter something like “/var/www/wordpress”. If you are installing Joomla, you need to replace “wordpress” with “joomla”.

Now you need to get Certbot to also place it into the ssl.conf file. To trigger this, enter:

certbot -d bluehillhosting.com --apache

When prompted, answer the first prompt with “1” and also the second prompt with “1”.

You should get the following output if your SSL has been generated:

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/bluehillhosting.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/bluehillhosting.com/privkey.pem
   Your cert will expire on 2020-11-12. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"

Was this answer helpful?

« Back