Last updated on August 17th, 2019

Do you want to install a free SSL certificate for Bitnami WordPress on Google Cloud Platform?

We will guide you step-by-step on how to set up a free SSL certificate on the WordPress website hosted on Google Cloud Platform.

Free SSL certificate

SSL certification is important to rank your website in the search engine.

Before proceeding to this free SSL certificate guide in Google Cloud Hosting. You must have a hosted WordPress website on Google Cloud. If you have not hosted your website on the Google Cloud Platform, then you can visit our following link and you can host your WordPress website for free on Google Cloud for 1 year.

Setup Free WordPress Website Google Cloud Step-By-Step Guide for Beginners

Transfer Your Domain Name to Google Cloud Hosting

We hope that you will host your WordPress website on Google Cloud from the above link.

Now let’s guide you on how to install a valid certificate for your WordPress website hosted on Google Cloud.

Connect your WordPress via SSH

First, log in to your Google Cloud Console. Go to the hamburger menu at the top left of the dashboard. Then go to the Compute Engine and click on VM instance.

Setup SSL


After entering your Compute Engine, click the SSH button to connect your WordPress VM instance.

Setup free SSL


Create SSL Certificates

Now you are connected to your VM Instance, now to copy and paste the following code into the SSH to create the SSL certificate for your website.

In given code, do not forget to change something according to your websites like YOURMAIL-ID, YOURDOMAIN.COM, and

For example, your email address [email protected] and your domain name and

 sudo /opt/bitnami/letsencrypt/scripts/ -m [email protected] -d -d

Install SSl on Google Cloud

Now Configure SSL certificate

Now you have successfully entered the certificate issuing command, then you will now be prompted with a series of questions. There will be three questions in this process and you will press y for each question and then press Enter.

Create SSL Certificates on Google Cloud

Now let’s configure HTTPS redirects

You have completed the setup on the free SSL certificate WordPress Google Cloud Bitnami. You have configured the certificates. So now we will configure the redirect by editing your bitnami.conf file to set up HTTPS (secure) in your website. Copy and paste the code given below into SSH.

sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf

configure HTTPS redirects

You will now be in Bitnami.conf. You have to paste the code given below. (Remember to change with your own domain name). Keep in mind that whatever code you are entering after. After putting the code, press CTRL + X to save the code and exit.

 RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*)$1 [R,L]

configure HTTPS redirects-1

Restart your Apache Server

In order to effectively implement any changes we make, you must restart your Apache server. To restart your Apache server, copy and paste the following command into SSH.

sudo /opt/bitnami/ restart apache

Restart your Apache Server

Congratulations! You have successfully configured the free, automatic renewal SSL certificate for your website.

If any problems are with your installed certificates, then check it in the SSL Checker tool to fix it.

If you have a question relating to this article, please tell us in the comment box.




  1. I hope that you won’t stop writing such interesting articles. I’m waiting for more of your content. I’m going to follow you!


Please enter your comment!
Please enter your name here