Lesson 6 of 9 · 26m
Designing and Operating an Internal CA
Internal PKI succeeds or fails on hierarchy, trust distribution, issuance policy, revocation expectations, and key protection — not on the CA software logo.
An internal CA is not a toy version of a public CA. It is a trust authority for everything inside your organization, which means a bad design can compromise every service at once. The good news is that a small, boring hierarchy operated with discipline beats an elaborate PKI operated by folklore.
Start with the trust boundary
Decide what the CA must authenticate: service-to-service traffic, database administration, device identity, partner-facing mTLS, or development environments. Different trust domains often deserve different intermediates, issuance policies, and lifetimes. A workload identity CA and a human device CA have very different compromise consequences.
Keep the hierarchy small and legible
SudoSecurity Root CA (offline, long-lived)
├── Services Intermediate CA (online, automated issuance)
└── Client Devices Intermediate CA (online or semi-online)The root signs intermediates and then stays offline. If an intermediate is compromised, revoke it and rotate that domain without rebuilding the entire trust universe. Root lifetimes are long because replacement is operationally expensive; intermediate lifetimes are shorter; leaf lifetimes should match automation maturity.
Use boring tooling
step-ca is a practical small internal CA because it supports ACME, provisioners, and sane operational controls:
step ca init --name "SudoSecurity Services CA" --dns ca.internal.sudosecurity.org --address :443 --provisioner adminKubernetes environments often pair cert-manager with an internal issuer. Vault PKI fits teams already operating Vault carefully. The software matters less than the controls around it.
Define issuance policy first
Write down which names or identities may be issued, who or what may request them, maximum lifetime, key algorithms, permitted EKUs, and the revocation process. If any engineer can mint database-admin or *.internal, you have built an elegant privilege-escalation service.
Protect keys according to blast radius. Root keys belong offline; intermediates need restricted shell and API access, controlled backups, issuance logging, and separation from routine service operation.
Trust distribution is the hidden half
A CA is useless until verifiers trust it. Internal roots must be installed into OS bundles, Java keystores, container images, browsers, runtimes, and proxies as needed. Automate that distribution. Do not paste the root into random keystores by hand for six years and call it PKI.
CRLs and OCSP are hard to operate consistently for internal PKI. Many mature environments prefer short-lived certificates and fast rotation instead of pretending revocation checking is universal. That is valid only if rotation is real and compromise response is understood.
Field notes
- Never mix internal roots and public WebPKI trust models.
- Test disaster recovery before you need it: restore the CA, reissue, rotate trust.
- Version root and intermediate names (
Root G1,Root G2) so migrations are intelligible. - Log every certificate issuance in a queryable system.
- Practice rotation on a throwaway CA; the mechanics are cheap when stakes are low.
Was this lesson helpful?