Goal
To enable HTTPS and obtain SSL/TLS certificate by Let’s Encrypt for Google Cloud VM.
References:
- https://techmonger.github.io/46/free-ssl-google-cloud/
- https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address#release_ip
- https://www.tachyonstemplates.com/2018/google-domains-forward-root/
- https://support.dnsimple.com/articles/manage-a-record/
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.