How to Install SSL Certificate on Google Cloud Platform VM Instances


Compute Engine on Google Cloud doesn’t have direct way of using SSL Certificate on the instances,we need to use a Load Balancer and then get a certificate from a third party and then need to configure it.

Estimate Pricing :

Estimate Pricing :

Load-Balancer Pricing per Month – 18 $ per month for two requests

Third Party SSL Certificate – Lets take example as Comodo SSL for two years it is 88 $

Cost Effective what NectarSpot Team comes in :

Let’s Encrypt – Totally free certificate where it costs 0 $ , for every 3 months we need to renewal it ,but not required we can make it automate renewal itself.

Google Cloud Load Balancer we are not using here,so we can directly have it on the instance how to configure Let’s Encrypt and make it auto renewal for every 3 months without manual effort

Estimate Pricing will be only for instance ,as we are not using Load Balancer here, running on a f1.micro instance will be cost effective it might charge across 4$ per month.

How to Create a Instance on Google Cloud Platform,You can go through here

https://nectarspot.com/blog/amp/how-to-host-amp-web-applications-on-google-cloud-platform/

Connect to your Instance using SSH and execute the following commands.

sudo apt-get update

sudo apt-get install software-properties-common

sudo add-apt-repository ppa:certbot/certbot

sudo apt-get update

sudo apt-get install python-certbot-apache

Now we are ready to install SSL Certificates. Execute the following command to install SSL Certificates.

sudo certbot –apache

Follow the steps after installing certbot

After executing above command we need provie an email account where You will recieve SSL Certificate expiration emails.

Next you need to Agree the Terms of Service

Now we need to select domains for which we need to Install SSL Certificates.

Finally select How to handle http requests. We are going to recommended and Select option 2

sudo service apache2 restart

This is done,now you can find HTTPS Enabled on your site

Blog Categories

Looking for a Top Rated* Marketing Company?

Contact us at +1 630 999 (7768) or submit a business inquiry online.

NectarSpot team executed the Quick and solid build of AMP website. Not afraid of small tweaks here and there. The team has, from the beginning of project, focus on conversion and provided a seamless workflow for my prospects to visit, educate and finally purchase on my e-commerce portal. They provided design, development on AMP framework and helped to host e-commerce portal on scalable and secure google cloud. We are looking forward to working with them in future for other projects as well.

Read More....

Ryan Frederickson

Art Wine Preserver

Read more to gain insights from our blogs.
Receive latest marketing insights, data and inspiration by subscribing .

Start Your Project Today (100% Satisfaction Guaranteed)

  • NectarSpot Inc. is an integrated digital marketing agency specializing in Design & Development of Web, Mobile & Voice Applications.
    We excel in providing Optimization, Automation, PPC & Analytics services to high performing brands across industries.

    Contact us today at +1 630 999 (7768) or email at info@nectarspot.com to know more.

Need help?

We are right here!