Install & Setup Free Let’s Encrypt SSL Auto-renew – (WordPress Click to Deploy)

by Fred Osei
193 views

In this face of the tutorial, you will learn how to install and set up auto-renew Free Let’s Encrypt SSL certificate for WordPress Click to Deploy on Google Compute Engine.

Before we begin:

  1. Make sure you have already installed WordPress Click to Deploy on Google Compute Engine.
  2. Make sure you have already Setup Domain For WordPress Click to Deploy on GCP using Cloudflare.

Let’s get on with it…

1. Login to your Google Cloud Platform account and click on the Navigation Menu icon from your Google Cloud Dashboard as shown below.

2. From the sidebar menu, click or hover on the Compute Engine link and click on the VM instances link from the popped menu as shown in the screenshot below.

3. From your VM instances screen, click on the SSH link next to the instance you just deployed as shown in the screenshot below.

4. Enter or Copy & Paste the command below into your SSH terminal as shown in the SSH Terminal screenshot below.

lsb_release -a

5. Open a new tab using your web browser and navigate to certbot.eff.org, scroll down and click on Software (1), select Apache and then click on System (2) and select your operating system version as shown below, we select Debian 9 (stretch) for this tutorial as shown in the terminal screenshot in 4 above.

6. Copy the command line in step 2 from the Certbot website as highlighted in the screenshot below and return to your SSH machine terminal.

7. Paste the command line you copied from the Certbot website below (press enter if it does not start installing by itself), pay close attention when prompted if you want to continue and press Y on your keyboard for yes to continue with the Certbot installation as in the screenshot below.

sudo apt-get install certbot python-certbot-apache

8. Navigate back to the Certbot website opened in your web browser and copy the command line in step 3 on the Certbot website as shown below and return to your SSH machine terminal.

9. a) Paste the second command line you copied in step 3 from the Certbot website into your SSH machine terminal (press enter if it does not start installing by itself) to generate the SSL certificates as demonstrated in the screenshot below.

sudo certbot --apache

9. b) The next screen after you run the command in 8 above requires attention as you’ll need to provide it with some response. 1) When prompted enter your email address, please enter the correct one and hit the enter key (this is for renewal and urgent security notifications). 2) press on your keyboard and hit enter to agree to the Ts & Cs of Let’s Encrypt. 3) Press on your keyboard if you want to share your email address with Electronic Frontier if not press for no and hit enter to continue. 4) Enter your root domain, hit the space bar or the comma sign and repeat your root domain but prefix it with www. this time and hit the enter key to continue (should look like this kwikhacks.com,www.kwikhacks.com or kwikhacks.com www.kwikhacks.com, be sure to replace kwikhacks.com with your domain name).

9. c) Follow the examples in the screenshot below, when prompted to select which virtual host you would like to use you should look out for the one with your root domain, enter it’s the corresponding number and hit enter in our case, it’s 2 for kwikhacks.com so we enter 2 and hit the enter key to continue.

When to choose whether or not to redirect HTTP traffic to HTTPS you should always choose to redirect (recommended). press 2 on your keyboard to select that and hit the enter key.

You should receive a Congratulations response as shown below if you followed the tutorial well, if not please start over.

10. Congratulations on your success installing SSL Certificate for you Click to Deploy Version of WordPress of Google Cloud, before the changes you made can take effect you’ll have to restart the Apache server by executing the below command.

sudo service apache2 restart

11. Log in to your WordPress account, then navigate to Settings > General, and change the http:// prefix of your domain name with the https:// simply by adding ‘s’ at the end the http as shown below and click save.

11. Your website should show https secured or a padlock anytime someone visits it from the internet using any internet browser, this shows your visited are protected when they enter sensitive information on your website.  Below is an example.

To verify that SSL is configured properly for your website, go to https://www.ssllabs.com/ssltest or https://www.sslshopper.com/ssl-checker.html

 

That’s it.

I hope you found this post useful and that you have been able to Setup Free Let’s Encrypt SSL for the WordPress Click to Deploy version on Google Cloud.

Drop any questions you may have in the comments section below and I will respond as soon as I can. Remember to like share and subscribe to our Social Media channels (links sidebar and footer). @KwikHacks

Leave a Comment