Setup Free SSL for WordPress on Google Cloud (Click-to-Deploy) (Latest)

19

In this quick-start tutorial you will learn how to configure free, auto-renewing SSL certificates for WordPress websites that are hosted on Google Cloud compute engine using the Click-to-Deploy version of WordPress on Google Cloud.

If you would like to start with this tutorial, you should confirm earlier:

  1. Installed WordPress on Google Cloud
  2. Set up a Domain Name for your WordPress website

So let’s get started…

There are 7 steps in this tutorial:

  • 1. Connect to WordPress via SSH
  • 2. Generate Certificate Instructions
  • 3. Generate SSL Certificates
  • 4. Install Certbot
  • 5. Check Operating System
  • 6. Update WordPress URLs
  • 7. Restart Apache Server

1. Connect to WordPress via SSH

At first, connect with Google Compute main page and click the hamburger bar in the upper left-hand part.

WordPress on Google Cloud

Then go to your Compute Engine, then to VM i/o access your WordPress installation.

WordPress on Google Cloud

Press on the Secure Shell (SSH) button to connect with VM instance.

WordPress on Google Cloud

2. Check Operating System

In that stage you’ve connected to your VM instance, paste the command as per below in your terminal in order to check your operating system. After running the command, take note of the operating system, which is Debian 9.7 (stretch) in this example.

WordPress on Google Cloud

3. Generate Certificate Instructions

you have to back to your web browser and navigate to certbot.eff.org and select Apache from the Software dropdown, then select the correct operating system based on the output from Step 2 – which was Debian 9.7 (stretch) in this example.

WordPress on Google Cloud

4. Install Certbot

After selecting your system specs from the dropdowns, scroll down the page, and copy the command to install Certbot.

WordPress on Google Cloud

Next, go back to your SSH terminal and paste the command that you copied, then press Enter to execute the command.

WordPress on Google Cloud

5. Generate SSL Certificates

Now that you’ve installed Certbot, the next step is to generate the SSL certificates. Return to the certbot.eff.org website and copy the second command.

WordPress on Google Cloud

Back to your SSH terminal and paste the command that you copied in order to go ahead the SSL certificates, then press Enter button.

WordPress on Google Cloud

Now that you’ve pasted the certificate issuing command, you will be prompted with a series of questions. Answer the questions according to the the numbers in the image above, making sure to replace [email protected] with your own email address, and 1pagezen.com with your own domain name.

WordPress on Google Cloud

6. Restart Apache Server

Due to the certificate changes to take effect, you need to update you Apache server by executing the following command:

WordPress on Google Cloud

7. Update WordPress URLs

You need to go through with your browser, enter the URL to your WordPress dashboard (with https://).

WordPress on Google Cloud

Here you need to Log in to your WordPress account, then navigate to Settings > General, and replace your present domain name with the https:// version – with or without www. infront. Then, scroll to the bottom of the page and click the Save Changes button for the next step.

WordPress on Google Cloud

 

 

Leave A Reply

Your email address will not be published.