Automating SSL Certificates on Google Cloud with Certificate as a Service

Automating SSL Certificates on Google Cloud with Certificate as a Service

Nicole Brown

Google Cloud stores each SSL Certificate as a resource that you create once and then connect your services to. It offers two separate places to keep one, and the two behave differently. That difference decides how much work you face each time an SSL Certificate is reissued.

Those reissues now happen far more often than they used to. The maximum validity of an SSL Certificate has already dropped to 200 days, and it falls again to 100 days and then to 47 days by 2029. Doing that by hand, for every domain, soon stops being practical. Learn About The Shorter Validity Periods 🔗

Trustico® lets you hand the whole cycle to a job that runs inside your own Google Cloud project. The sections below cover how Google Cloud keeps an SSL Certificate, where the manual effort comes from, and how the Trustico® service removes it.

Two Ways Google Cloud Stores an SSL Certificate

Where an SSL Certificate is kept decides what happens at each reissue. Google Cloud gives you two choices, and knowing the difference explains why automation helps so much.

Certificate Manager

Certificate Manager is the modern store. You create a single SSL Certificate, and every reissue updates that same one in place.

A load balancer reaches the SSL Certificate through a certificate map, which matches each hostname to the SSL Certificate it should use. Once the map points at that SSL Certificate, nothing else needs changing, because the same one is simply refreshed each time it is reissued.

The Classic Compute Store

The classic compute store works the other way. Every reissue creates a new, separate SSL Certificate instead of updating the existing one, so old copies build up over time until you remove them yourself.

A load balancer keeps serving the old SSL Certificate until you point it at the new one. Every reissue needs that step before visitors receive the current SSL Certificate.

Where the Manual Work Comes From

Installing an SSL Certificate on Google Cloud once is manageable. You prepare the files, create the SSL Certificate, and attach it to your load balancer. The trouble is that this is no longer a one-time task.

Every reissue repeats part of it. With the classic compute store, each reissue also means pointing the load balancer at the new SSL Certificate and, in time, clearing out the old copies that have piled up. Learn About Installing One by Hand 🔗

Multiply that by the number of domains you run and the number of reissues each year, and simply keeping track becomes a real risk. One missed reissue is an expired SSL Certificate and a browser warning in front of every visitor.

Automating the Cycle in Your Own Google Cloud Project

Trustico® Certificate as a Service (CaaS) for Google Cloud turns the whole cycle into a small job that runs once a day inside your own project. The job requests your SSL Certificate through the Automatic Certificate Management Environment (ACME) protocol, installs it, and reissues it well before it expires. After setup, there is nothing left for you to do.

Because the job runs in your own project rather than on Trustico® servers, your Private Key is created there and never leaves it. Trustico® does not hold it. Learn About Google Cloud SSL Certificate Automation 🔗

A Solution in Two Parts

The service is built in two parts. The first handles the core work of issuing and installing your SSL Certificate. The second is a set of courtesy scripts that set each Google Cloud store up correctly and keep it working from day to day.

The Automated Job

The job installs your SSL Certificate into Certificate Manager, the classic compute store, or both at once, so a single job can serve whichever Google services read from either store. On each run it checks what is in place, reissues anything that is due, and installs the result.

On a day with nothing due, it confirms that every SSL Certificate is current and finishes in seconds. The reissue happens on its own, long before anything is close to expiring.

The Courtesy Scripts

The scripts handle setting each store up correctly and keeping it that way. For Certificate Manager, a script makes sure your certificate map points at the SSL Certificate the job maintains, then checks each day that this is still the case.

This link is made only once. Because Certificate Manager updates the SSL Certificate in place, the map keeps pointing at the same one and never needs changing when the SSL Certificate is reissued.

The classic compute store asks more of the scripts, because each reissue produces a new SSL Certificate rather than an in-place update. A script checks each day that the setup is still valid, then installs each newly reissued SSL Certificate onto the load balancer that uses it.

The load balancer is then always serving the current SSL Certificate, without you touching it. A further script can e-mail you if a run ever fails, so nothing slips by unnoticed.

The Case for Automation

Automation turns a recurring chore into something that just runs on its own. The expiry dates you used to track are handled before they become a risk, and the shrinking validity periods stop being something you have to manage.

The daily run does more than reissue. It also confirms that every SSL Certificate is current and correctly in place, so any problem shows up long before an expiry could turn into an outage.

Changing what the job covers later is just as easy. Adding or removing a domain, or a whole subscription, is a quick edit to your configuration file, and the job picks it up on the next run.

One Trustico® Certificate as a Service (CaaS) subscription covers unlimited reissues for your domains, so the cost stays predictable however often the SSL Certificate is reissued. Learn About Certificate as a Service (CaaS) 🔗

Tip : Because the job runs in your own Google Cloud project, your Private Key never leaves it. Trustico® does not store Private Keys, so there is nothing to download, pass around, or lose.

Whether you have one SSL Certificate or many, the job works the same way, so the service grows with you rather than adding work.

Getting Started

Setting this up takes two steps. First, choose a Trustico® Certificate as a Service (CaaS) SSL Certificate for the domains you want to secure, which gives you one subscription that covers unlimited reissues. View Our Certificate as a Service (CaaS) SSL Certificates 🔗

Then set up the job once. The guide walks you from an empty project to a running job in about thirty minutes, and from then on every reissue happens without you. Learn About Setting Up the Google Cloud CaaS Job 🔗

From there the SSL Certificate looks after itself, in the store or stores you chose, for as long as your subscription stays active.

Back to Blog

Most Popular Questions

Frequently asked questions covering Trustico® Certificate as a Service (CaaS) for Google Cloud, the two Google Cloud stores, keeping Private Keys in your project, the courtesy scripts, and buying an SSL Certificate

Google Cloud SSL Certificate Automation

Trustico® Certificate as a Service (CaaS) for Google Cloud runs a small daily job inside your own Google Cloud project. It issues your SSL Certificate, installs it, and reissues it before expiry, with no manual step after setup.

Certificate Manager and the Classic Compute Store

Certificate Manager keeps one SSL Certificate and updates it in place, so a certificate map set up once keeps working. The classic compute store creates a new SSL Certificate at each reissue, so the load balancer must be pointed at the new one each time.

Keeping Private Keys Inside Your Project

The job runs in your own Google Cloud project, so every Private Key is created and kept there and never leaves it. Trustico® does not store Private Keys, so there is nothing to download or pass around.

The Courtesy Scripts for Each Store

The optional scripts set up each Google Cloud store correctly and keep it working. For Certificate Manager they confirm the certificate map still points at the SSL Certificate the job maintains, and for the classic compute store they install each reissued SSL Certificate onto the load balancer that uses it.

Buying a Certificate as a Service SSL Certificate

Choose a Trustico® Certificate as a Service (CaaS) SSL Certificate for the domains you want to secure. One subscription covers unlimited reissues, and the same credentials drive the Google Cloud job and any other method you use.

Stay Updated - Our RSS Feed

There's never a reason to miss a post! Subscribe to our Atom/RSS feed and get instant notifications when we publish new articles about SSL Certificates, security updates, and news. Use your favorite RSS reader or news aggregator.

Subscribe via RSS/Atom