Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.12 KB

File metadata and controls

23 lines (20 loc) · 1.12 KB

Google Load Balancer Auto Update for Wildcard SSL Certificates

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.

Requirements

Setup

  1. Clone repo locally
  2. Edit the variables SITE, NAME and TARGET_PROXY inside of update-cert.sh to configure the domain
  3. Edit crontab -e and 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
  1. Enjoy having auto-updated wildcard certs on GCP!