This script provides the ability to automate the rotation of Google Load Balancer target proxy endpoints. The goal of this script is to enable the stable deployment of "LetsEncrypt" wildcard SSL Certificates to a staging or production environment.
- Google Cloud Account
- Google Cloud Service Account
- LetsEncrypt
- CertBot DNS Plugin
- NS Records pointed to Google Cloud DNS
- Clone repo locally
- Edit the variables
SITE,NAMEandTARGET_PROXYinside of update-cert.sh to configure the domain - Edit
crontab -eand add a daily record to perform the update.
A scheduler is recommended for prod envs. This is just a bootstrap example.
0 0 * * * /root/update-cert.sh >> /root/logs/cron 2>&1
- Enjoy having auto-updated wildcard certs on GCP!