<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-we-built-certificate-renewal-without-sending-private-keys-to-the-control-plane-5mxvrogtk" -->

---
title: How we built certificate renewal without sending private...
description: An open source certificate automation agent called CertOps, built for TokenTimer, is designed around the principle that its control plane never receives or...
canonical: https://daily.dev/posts/how-we-built-certificate-renewal-without-sending-private-keys-to-the-control-plane-5mxvrogtk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How we built certificate renewal without sending private keys to the control plane | daily.dev
og:description: An open source certificate automation agent called CertOps, built for TokenTimer, is designed around the principle that its control plane never receives or...
og:url: https://daily.dev/posts/how-we-built-certificate-renewal-without-sending-private-keys-to-the-control-plane-5mxvrogtk
og:image: https://api.daily.dev/og/posts/5mXvROGtK.png
og:image:alt: How we built certificate renewal without sending private keys to the control plane
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How we built certificate renewal without sending private keys to the control plane

**[All Things Open](https://daily.dev/sources/allthingsopen)** · 10 min read · 0 upvotes · 0 comments

## Summary

An open source certificate automation agent called CertOps, built for TokenTimer, is designed around the principle that its control plane never receives or stores customer certificate private keys. The design splits responsibilities between a control plane (scheduling, approvals, audit) and an agent running on the execution host, which alone holds private keys and enforces local policy even when instructions come from the trusted control plane. Jobs are signed with Ed25519 and include nonce/validity windows to prevent replay, DNS/ACME credentials stay local to the agent rather than centralized, renewal is treated as a multi-step pipeline with atomic deployment, rollback, and post-deployment verification, and durable local state protects against crashes mid-mutation. Windows/IIS support uses native CNG key custody so keys remain non-exportable rather than being generated centrally and transported. The piece stresses that this reduces blast radius from a control-plane compromise but does not eliminate all risk, since a fully compromised execution host is still vulnerable.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://allthingsopen.org/articles/certificate-renewal-private-keys-control-plane-certops>

## Questions this post answers

### How does the CertOps agent keep certificate private keys off the control plane during renewal?

The agent generates and holds private keys locally on the execution host rather than sending them to the control plane. The control plane only schedules and coordinates jobs, signing them with Ed25519 for authenticity, while the agent independently enforces local policy on allowed command profiles, filesystem paths, CA endpoints, and DNS zones before executing anything, even if the control plane is compromised.

_Teams designing similar zero-trust key custody systems can find related architecture write-ups on daily.dev._

### Why is a certificate renewal considered a pipeline instead of a single command?

Successful certificate issuance does not guarantee a successful renewal, because deployment, service reload, and verification can each fail independently even after a valid certificate is obtained. Separating these stages allows atomic deployment with backup and rollback, service validation before reload, and post-deployment verification based on the certificate actually being served in production.

_Anyone building resilient deployment pipelines can track architecture lessons like this via daily.dev._

### How does Windows certificate handling differ from Linux for automated certificate deployment?

Windows uses native Cryptography Next Generation (CNG) key custody so keys can be generated directly in the Windows key infrastructure and remain non-exportable, instead of building a PFX file centrally and transporting it to the machine. This avoids creating a portable key artifact, while Linux handling relies on file permissions, ACLs, and systemd for equivalent protections during IIS bindings and service reloads.

_Engineers handling cross-platform certificate automation can follow practical Windows-versus-Linux tradeoffs on daily.dev._

## Similar posts on daily.dev

- [What the TokenTimer certificate architecture cost us](https://daily.dev/posts/what-the-tokentimer-certificate-architecture-cost-us-47n77eg1u) · All Things Open · 0 upvotes · 0 comments
- [Certificate Renewal Is a Deployment Workflow, Not a Cron Job](https://daily.dev/posts/certificate-renewal-is-a-deployment-workflow-not-a-cron-job-vsd9y5x46) · DevOps.com · 2 upvotes · 1 comments
- [Introducing CertKit: SSL Certificate Automation for the Rest of Us](https://daily.dev/posts/introducing-certkit-ssl-certificate-automation-for-the-rest-of-us-htoz7unfn) · TrackJS Blog · 30 upvotes · 0 comments
- [WebPKI and You](https://daily.dev/posts/webpki-and-you-auxufh8pa) · Lobsters · 0 upvotes · 0 comments
- [The Morning After We Pull a Root of Trust, Nobody Owns It](https://daily.dev/posts/the-morning-after-we-pull-a-root-of-trust-nobody-owns-it-xssy4h4f3) · Dark Reading · 0 upvotes · 0 comments

---

[View this post on daily.dev](https://daily.dev/posts/how-we-built-certificate-renewal-without-sending-private-keys-to-the-control-plane-5mxvrogtk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How we built certificate renewal without sending private keys to the control plane","url":"https://daily.dev/posts/how-we-built-certificate-renewal-without-sending-private-keys-to-the-control-plane-5mxvrogtk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-we-built-certificate-renewal-without-sending-private-keys-to-the-control-plane-5mxvrogtk"},"datePublished":"2026-09-28T07:02:39.891Z","dateModified":"2026-10-29T02:14:08.669Z","description":"An open source certificate automation agent called CertOps, built for TokenTimer, is designed around the principle that its control plane never receives or...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a675d45c401b8a7daa6857ba97a45f59?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a675d45c401b8a7daa6857ba97a45f59?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"All Things Open","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"All Things Open","logo":"https://media.daily.dev/image/upload/s--dgFP6zAp--/f_auto/v1720885901/logos/allthingsopen","url":"https://daily.dev/sources/allthingsopen"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-we-built-certificate-renewal-without-sending-private-keys-to-the-control-plane-5mxvrogtk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"All Things Open","item":"https://daily.dev/sources/allthingsopen"},{"@type":"ListItem","position":3,"name":"How we built certificate renewal without sending private keys to the control plane"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-we-built-certificate-renewal-without-sending-private-keys-to-the-control-plane-5mxvrogtk#faq","mainEntity":[{"@type":"Question","name":"How does the CertOps agent keep certificate private keys off the control plane during renewal?","acceptedAnswer":{"@type":"Answer","text":"The agent generates and holds private keys locally on the execution host rather than sending them to the control plane. The control plane only schedules and coordinates jobs, signing them with Ed25519 for authenticity, while the agent independently enforces local policy on allowed command profiles, filesystem paths, CA endpoints, and DNS zones before executing anything, even if the control plane is compromised. Teams designing similar zero-trust key custody systems can find related architecture write-ups on daily.dev."}},{"@type":"Question","name":"Why is a certificate renewal considered a pipeline instead of a single command?","acceptedAnswer":{"@type":"Answer","text":"Successful certificate issuance does not guarantee a successful renewal, because deployment, service reload, and verification can each fail independently even after a valid certificate is obtained. Separating these stages allows atomic deployment with backup and rollback, service validation before reload, and post-deployment verification based on the certificate actually being served in production. Anyone building resilient deployment pipelines can track architecture lessons like this via daily.dev."}},{"@type":"Question","name":"How does Windows certificate handling differ from Linux for automated certificate deployment?","acceptedAnswer":{"@type":"Answer","text":"Windows uses native Cryptography Next Generation (CNG) key custody so keys can be generated directly in the Windows key infrastructure and remain non-exportable, instead of building a PFX file centrally and transporting it to the machine. This avoids creating a portable key artifact, while Linux handling relies on file permissions, ACLs, and systemd for equivalent protections during IIS bindings and service reloads. Engineers handling cross-platform certificate automation can follow practical Windows-versus-Linux tradeoffs on daily.dev."}}]}
```

