This tutorial will walk you through the process of generating and setting up auto-renew for Let’s Encrypt SSL certificate for your domain and configuring it to work with your WordPress Certified by Bitnami and Automatic Instance on Google Cloud.
Let’s Encrypt is a free Certificate Authority (CA) that issues SSL certificates.
Before we kick off with this tutorial;
- Make sure you have already installed WordPress on Google Cloud.
- Make sure you’re running the WordPress Certified by Bitnami and Automatic. For users running the Click to Deploy Version Click Here, for Plesk Version Click Here and Litespeed Version Click Here
- You have configured the domain name’s DNS record to point to the static IP address of your Bitnami instance.
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 to connect the Instance you just deployed.
4. To launch the SSL Configuration tool, copy and paste the bncert command below into your SSH terminal as in the screenshot below and hit the Enter key on your keyboard to continue.
5. When presented with an update prompt as in the screenshot below, respond with Y for yes, hit the Enter key on your keyboard to continue then copy and paste the command below to re-run the bncert tool.
6. Enter the non-www and the www versions of your root domain, be sure to separate both versions with space as in the screenshot below and then hit the enter key to continue.
7. Follow the screenshot below to answer the prompts in the next stage to continue (please be very cautious at this stage).
8. At stage 8 you’ll be prompted with a screen of the changes to be made to your instance as in the screenshot below, respond with Y and hit the Enter key to continue.
9. Enter your Email address, hit the enter key to continue (the email address is used for certificate expiration notifications), and then Respond with Y for yes and again hit the Enter key on your keyboard to agree to the Let’s Encrypt subscriber agreement as in the screenshot below.
9. Congratulations the Bitami HTTPS tool succeeded in modifying your installation, press [Enter] on your keyboard to continue.
Updating WordPress URL
10. Copy & Paste the command below into your SSH terminal as shown in the screenshot below to open your wp-config.php file.
sudo nano /opt/bitnami/apps/wordpress/htdocs/wp-config.php
11. Use the down arrow key on your keyboard to find your WP_SITEURL and WP’_HOME URL (define(‘WP_SITEURL’,’https://kwikhacks.com/‘); define(‘WP_HOME’,’https://kwikhacks.com/‘);).
12. Replace the HTTP versions of your domain name in the WP_SITEURL and WP’_HOME URL with the HTTPS versions simply by adding “s” at the end of “HTTP” (define(‘WP_SITEURL’,’https://kwikhacks.com/‘); define(‘WP_HOME’,’https://kwikhacks.com/‘);). as in the screenshot below.
NB: Please remember to replace “kwikhacks.com” with your actual domain name, and please change the leading http:// to https://.
13. Save the changes you just made by pressing down ctrl + x on your keyboard, hit the Y key to confirm saving and then hit the Enter key save the updated changes.
14. Restart apache to see your changes by executing the below command.
sudo /opt/bitnami/ctlscript.sh restart apache
15. Your website should show a padlock when opened in an internet browser as in the screenshot below, this tells SSL is active and that your visitors are protected when they enter sensitive information on your website.
I hope you found this post useful and that you have been able to Setup Free Let’s Encrypt SSL with Auto-renew for WordPress Certified by Bitnami 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