Root of Trust

Root of Trust #

Every certificate Deevnet issues chains to one root, the Deevnet Root CA, and each site has its own Site CA under it ( Trust and Identity, ADR-0031). The Deevnet Root CA and Site CA private keys are generated and maintained offline and are never available to site automation or networked systems.

New to certificates? The Cryptography and PKI Primer explains keys, signatures, chains and CAs from the beginning.

These pages are the key holder’s procedures. They run on an offline machine, rarely:

CeremonyWhenPage
Make the Deevnet Root CA and a Site CA, on the Pi with deevnet-pki-ceremony.shthe root once, for the whole organization; a Site CA once per site (mobile, home, …) and every ten yearsRoot and Site CA Ceremony
Sign an issuing CAwhen one of a site’s three issuing CAs (Substrate, Tenant Device, Tenant Service) is created or rotated, about every five yearsIssuing CA
Check, back up, recoveryearly, and after a lossCustody

What crosses to automation #

Only certificates and signing requests cross between the offline machine and automation:

  • certificates: the root’s, each Site CA’s, and each signed issuing CA’s;
  • certificate signing requests, which come in from automation to be signed.

They cross on the transfer media, the only thing that moves between the online and offline machines. The Root CA’s and Site CAs’ keys stay on their own key media, which is only ever plugged into the offline machine. A key never leaves the offline machine except as an encrypted file onto that key media.

An issuing CA’s key is generated where it will live (site automation for the Substrate CA, the secret store for the Tenant Device CA and the Tenant Service CA), and only its request is brought to the ceremony. Two small tools in ansible-collection-deevnet.mgmt/scripts/pki/ move it and its certificate across, with a manifest of hashes each way, a refusal of any private key on the transfer media, and checks of the request, the signature and the chain ( Issuing CA). They automate the mechanics and the checking. Signing stays a decision the key holder makes by typing the CA’s name.

Certificate names #

Every certificate names its organization, its unit and itself, so its Issued To and Issued By read plainly ( Certificates standard):

CertificateOOUCN
RootDeevnetDeevnet PKIDeevnet Root CA
Site CADeevnetMobile SiteDeevnet Mobile Site CA
Substrate CADeevnetMobile SiteDeevnet Mobile Substrate CA
Tenant Device CADeevnetMobile SiteDeevnet Mobile Tenant Device CA
Tenant Service CADeevnetMobile SiteDeevnet Mobile Tenant Service CA
Page last modified: October 11, 2026