Free SSL Certificate Setup for WordPress on Google Cloud (Bitnami version)


3
2 comments, 3 points
ssl certificate on google cloud platform
Install free ssl certificate for Bitnami WordPress on google cloud platform

This is step by step guide to install free SSL certificate for WordPress website that runs on Google cloud platform and most importantly this is for bitnami WordPress .(bitnami version)

SSl certificate will improve your search ranking.

So before moving in this tutorial you should complete 3 things first in order to install a SSL certificate.

First you should install WordPress on Google cloud platform (here)

Second you should point your domain with Google Cloud (here)

Third you need to reserve a static IP address on Google cloud platform (here)

I assume you have done these steps already.

 

Now let’s go ahead and install a SSL certificate on Google cloud platform.

Go to compute engine and then click on VM instances.

install free SSL certificate -bitnami wordpress-Google cloud platform

 

install free SSL certificate -bitnami wordpress-Google cloud platform

Connect WordPress with ssh by clicking on ssh button

Now you Should successfully connected with server. In this window Paste below command.

install free SSL certificate -bitnami wordpress-Google cloud platform


Press Enter

install free SSL certificate -bitnami wordpress-Google cloud platform

Now you need to generate a SSL certificate so our Second command is Certbot auto renewal client. It will take care of the auto renewal SSL certificate so you don’t have to renew your certificate by yourself.

Use the below command (Make sure you add your own domain )


Press Enter

install free SSL certificate -bitnami wordpress-Google cloud platform

Press Y to Continue

install free SSL certificate -bitnami wordpress-Google cloud platform

Type your email address

install free SSL certificate -bitnami wordpress-Google cloud platform

Press A for agreeinstall free SSL certificate -bitnami wordpress-Google cloud platform

Press N if you do not want to share your email or you can Press Y if want to share your email

install free SSL certificate -bitnami wordpress-Google cloud platform

Now you should see Congratulation message, (like you’re seeing in above image) that means you have successfully generated a SSL certificate.

(You have successfully Install free SSL certificate for bitnami WordPress)

It’s time to test our auto renewal SSL certificate functionality.

install free SSL certificate -bitnami wordpress-Google cloud platform

Next Paste below command


Press Enter

install free SSL certificate -bitnami wordpress-Google cloud platform

If you see Congratulation That means your auto renewal function is working.

Now in the next step you have to set up a crontab. in general crontab will check the ssl certificate, is ssl certificate due for renewal if yes then it will automatically renew it.

Now paste the below command

install free SSL certificate -bitnami wordpress-Google cloud platform


Press Enter

install free SSL certificate -bitnami wordpress-Google cloud platform

Here you have to choose text editor 1-3 to create the crontab

Press (This is nano, easiest text editor.) and then Press Enter

install free SSL certificate -bitnami wordpress-Google cloud platform

Using the down arrow from your keyboard and place your cursor below the last line in this window and paste the following Command


This command will tell certbot to check for the auto renewal SSL certificate two time a today, other words it will Install free SSL certificate by itself.

After pasting this command Press Ctrl+x and then Press Y  for yes, lastly Press Enter

install free SSL certificate -bitnami wordpress-Google cloud platform

In the next step we have to configure the SSL certificate. Now use the below Command.


With this command it will open up our bitnami configuration.

install free SSL certificate -bitnami wordpress-Google cloud platform

Go to middle using you down arrow key. (see above image)

Execute the below command


This command going to tell our server to server only (https) secure connection on this website.

Do not forget to replace example.com with your own domain name.
Note: you can use WWW on your website or you can remove it. it is person preference.
Do not Press Enter yet

In this same page scroll down using your down arrow key, go where you see two line of ssl certificate text (see the image) 

install free SSL certificate -bitnami wordpress-Google cloud platform

In front of these two lines Type #

below these two lines you should Paste the path of ssl certificate.

Paste the following command.


Remember to replace your domain with example.com

After pasting this command Press Ctrl+x and then Press Y  for yes, lastly Press Enter

install free SSL certificate -bitnami wordpress-Google cloud platform

In the next step you should change your WordPress website URL from WP-config file.

Execute the command below to open your WP-config file


Press Enter

install free SSL certificate -bitnami wordpress-Google cloud platform

Go to middle of the Page by pressing down arrow key and locate these two lines of code (see the above image)

Replace these two lines with below command (delete them and add new lines from below)


Understand this one more time

Replace this code

define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);

define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);

With this code

define(‘WP_HOME’,’https://www.example.com’); define(‘WP_SITEURL’,’https://www.example.com’);

Keep in mind that you must replace your domain name with example.com moreover you can use WWW to run your website or you can go with https://example.com

After pasting this command Press Ctrl+x and then Press Y  for yes, lastly Press Enter

install free SSL certificate -bitnami wordpress-Google cloud platform

lastly Restart your Apache Server

Execute the command below to restart Apache server


 

Congratulation ! You have successfully installed SSL certificate on your website now you can check out your website.

if you have any question regarding this tutorial feel free to ask anything regarding this topic.

Do not forget to subscribe to our Newsletter.


Like it? Share with your friends!

3
2 comments, 3 points
ranasvfx

2 Comments

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

    1. Static ip prevent your website to break whenever you try to restart you Apache server or you try to stop/start your VM instance.