0%

Enable HTTPS and Obtain SSL/TLS Certificate for Google Cloud VM

Goal

To enable HTTPS and obtain SSL/TLS certificate by Let’s Encrypt for Google Cloud VM.

References:

Enable HTTPS on Google Cloud VM

  • Open Google Compute Engine Instance and Select Edit to enable HTTPS traffic.

Obtain SSL/TLS Certificate

  • Install Certbot Client

    1
    sudo apt-get install python-certbot-apache -t stretch-backports
  • Install Certificates with Certbot for Apache

    1
    sudo certbot --authenticator webroot --installer apache
  • Provide valid Email Address

  • Accept (A) Let’s Encrypt Terms and Conditions

  • Option to Share Email with EFF. Select (Y/N) depending on your preferences.

  • Domain name to install certificate for. (www.jocodoma.com)

  • Web Server root where website content is stored and accessible.(/var/www/html)

  • Option To configure HTTP to HTTPS redirect. Select 1 or 2 depending on whether or not you want to configure redirect.