Free SSL Certificate for WordPress on Google Cloud Hosting.

ssl cerrtificate setup on bitnami wordpress in google cloud

Everyone knows that Google is the most prominent Internet Company in the world. Google provides hosting and other cloud services for consumers. We have already seen or read in our previous article “How to Host a website free with Google Cloud Platform for one year.”

In this article, we are going to see how to set up a Free SSL Certificate for Bitnami WordPress or WordPress on Google Cloud Hosting Easily.

In this process need some Linux command, But don’t fear it because I have to note down below all command line that needs our setting up procedures.

Connect the VM instances with SSH

Bitnami WordPress, Cloud Hosting, custom domain email, custom email Domain ,Domain Routing, email hosting, expire headers ,Free SSL ,GCP ,Godaddy, Google Cloud, Google Cloud Platform ,Google Hosting, gtmetrix ,private email, speed ,SSL ,SSL Certificate ,Wordpress, Zoho ,zoho email ,hosting, zoho mail ,

Click Compute Engine then select VM instances page for access your WordPress installed VM.

Bitnami WordPress, Cloud Hosting, custom domain email, custom email Domain ,Domain Routing, email hosting, expire headers ,Free SSL ,GCP ,Godaddy, Google Cloud, Google Cloud Platform ,Google Hosting, gtmetrix ,private email, speed ,SSL ,SSL Certificate ,Wordpress, Zoho ,zoho email ,hosting, zoho mail ,

After opening the VM instances, we are going to connect our WordPress VM with SSH. So we can use the command line and quickly set up the SSL certificate on our website.

Generate the SSL Certificate with Commands

When we have connected with SSH, then we are going to give a command to generate the SSL Certificate.

Bitnami WordPress, Cloud Hosting, custom domain email, custom email Domain ,Domain Routing, email hosting, expire headers ,Free SSL ,GCP ,Godaddy, Google Cloud, Google Cloud Platform ,Google Hosting, gtmetrix ,private email, speed ,SSL ,SSL Certificate ,Wordpress, Zoho ,zoho email ,hosting, zoho mail ,
Bitnami WordPress, Cloud Hosting, custom domain email, custom email Domain ,Domain Routing, email hosting, expire headers ,Free SSL ,GCP ,Godaddy, Google Cloud, Google Cloud Platform ,Google Hosting, gtmetrix ,private email, speed ,SSL ,SSL Certificate ,Wordpress, Zoho ,zoho email ,hosting, zoho mail ,

For example, if your email address is [email protected] and your domain is xyz.com or www.xyz.com, then your certificate generating command will be this:

sudo /opt/bitnami/letsencrypt/scripts/generate-certificate.sh -m [email protected] -d xyz.com -d www.xyz.com

Configuration of the SSL Certificates.

In this step, we are going to configure our SSL certificate after giving the command above note down. After giving the SSL certificate issuing command, the compute engine will prompt some authorization in the form of YES or NO. I will prefer to provide YES command, like pictures sowing below.

Bitnami WordPress, Cloud Hosting, custom domain email, custom email Domain ,Domain Routing, email hosting, expire headers ,Free SSL ,GCP ,Godaddy, Google Cloud, Google Cloud Platform ,Google Hosting, gtmetrix ,private email, speed ,SSL ,SSL Certificate ,Wordpress, Zoho ,zoho email ,hosting, zoho mail ,

Configuration of HTTPS Redirection

After generating the SSL certificate, now we are going to configure the redirection of HTTP traffic to HTTPS traffic.

So in this step, we need one more command:

sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf
Bitnami WordPress, Cloud Hosting, custom domain email, custom email Domain ,Domain Routing, email hosting, expire headers ,Free SSL ,GCP ,Godaddy, Google Cloud, Google Cloud Platform ,Google Hosting, gtmetrix ,private email, speed ,SSL ,SSL Certificate ,Wordpress, Zoho ,zoho email ,hosting, zoho mail ,

After this command, there will be open a new page like in the picture below.

Bitnami WordPress, Cloud Hosting, custom domain email, custom email Domain ,Domain Routing, email hosting, expire headers ,Free SSL ,GCP ,Godaddy, Google Cloud, Google Cloud Platform ,Google Hosting, gtmetrix ,private email, speed ,SSL ,SSL Certificate ,Wordpress, Zoho ,zoho email ,hosting, zoho mail ,

Now we are going to add some line of code between these two lines sowing above the picture. The code is:

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

After adding these three lines of code, we are going to save the bitnami.confi by using keyboard keys CTRL+X then Y and then click Enter to save.

Important Note: These three lines of code in the last line used “https://www.xyz.com” change as it is your domain name.

Now you will see the bitnami.confi file like this after adding these three lines of code.

Bitnami WordPress, Cloud Hosting, custom domain email, custom email Domain ,Domain Routing, email hosting, expire headers ,Free SSL ,GCP ,Godaddy, Google Cloud, Google Cloud Platform ,Google Hosting, gtmetrix ,private email, speed ,SSL ,SSL Certificate ,Wordpress, Zoho ,zoho email ,hosting, zoho mail ,

Now everything is done we are going to restart our apache server for all these changes. So our last step is to Restart Apache Server.

Restart Apache Server 

We are going to use a command to restart our apache server.

sudo /opt/bitnami/ctlscript.sh restart apache
Bitnami WordPress, Cloud Hosting, custom domain email, custom email Domain ,Domain Routing, email hosting, expire headers ,Free SSL ,GCP ,Godaddy, Google Cloud, Google Cloud Platform ,Google Hosting, gtmetrix ,private email, speed ,SSL ,SSL Certificate ,Wordpress, Zoho ,zoho email ,hosting, zoho mail ,

There we go, our SSL certificate installation is complete.

Thank You

Recommended Articles

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

2 Shares
Tweet
Share
Share
Pin