Module 2 · Lesson 2.6

Protecting the CA key

Control of the CA’s signing key lets someone issue fraudulent certificates. Keep it in hardware, under strict control.

  • 4-minute video
  • 7-minute read
  • Builds on lessons 1.8 and 2.5

A stolen card can only claim one identity. A stolen CA signing key can be used to issue fraudulent certificates for any identity the CA is trusted for.

Why the CA key matters most

Every certificate a CA issues is trusted because of one private key. Control of that key lets someone issue fraudulent certificates with whatever fields they choose. Systems may accept them where the CA is trusted for the claimed identity and use, although validators still enforce dates, path constraints and intended use. The door still applies its configured cardholder authentication and access checks.

Recovery depends on which key was compromised:

  • An issuing or intermediate CA: revoke its certificate through its issuer, replace the signing key, and restore valid paths for affected credentials, which may mean reissuing certificates rather than replacing every card. The root, and the trust anchor everyone holds, can stay as they are.
  • A directly trusted key, such as a root: remove or replace that copy in every trust store that holds it, set up the replacement, and reissue what depended on it.

Keep it in hardware

Lesson 1.8 showed the strongest protection for any private key: generate it inside dedicated hardware and use it only there. For CAs that hardware is usually a hardware security module (HSM), chosen by its validated configuration and the CA policy’s requirements. The US Federal Common Policy, for example, requires CA keys to be protected at FIPS 140 Level 3 or higher.

Signing a certificate with a hardware-protected CA key A flow from left to right. A signing request, containing a name and a public key, goes to the CA software, which checks and approves it. The software asks a hardware device holding the CA private key to sign. The device returns a signature, and the CA software assembles the signed certificate. The CA key never leaves the hardware. Signing requestname +public keyCA softwarechecks andapprovesHardwareCA key neverleaves itCERTAssembleddata to signsignatureThe hardware returns a signature;the CA software assembles the certificate.
The CA key is generated inside the hardware and used only there. The hardware signs; the software builds the certificate.

In this arrangement, a certificate signing request containing the subject’s name and public key reaches the CA software, which checks it against policy. The software then asks the HSM to sign. The HSM returns the signature, and the CA key never appears in the software’s memory or on its disks.

Try it: sign an example record in your browser

Your browser plays a CA whose signing key (ECDSA, P-256) it marks as non-extractable. The browser marks this key as non-extractable; refusing export doesn’t establish where the browser stores it. The record also omits the subject’s public key that a real certificate binds, and there’s no PKCS #10 request. Sign a record, check it, then try to export the key. Nothing is sent or stored.

Signed example record

Not signed yet.

Hardware isn’t the whole answer

An HSM stops the key being copied, but anyone who can tell it to sign can still issue certificates. So CAs add controls around it:

  • Strong authentication to the HSM, often requiring several people to act together (an “m of n” quorum) for sensitive operations.
  • Separation of duties, so that the people who approve requests aren’t the people who administer the system.
  • An offline root, powered on only for rare tasks such as signing an intermediate or a CRL, in a recorded ceremony with witnesses.
  • Audit logs and protected backups. Keep the signing key inside approved hardware during use, and back it up only under the controls the CA policy allows. The Federal Common Policy, for instance, requires protected backups, an off-site copy and multiperson control, and allows export only for approved backup, never in plaintext.

The identity checks before signing matter just as much. A perfectly protected key that signs whatever it’s asked to is still a weak CA.

Go deeperOptional technical detail for readers who want more

HSMs and security keys as a CA

Large and public CAs use network or PCIe HSMs with high signing rates and strong physical protection. Small, private CAs sometimes keep the CA key on a smart card or USB security key that can generate and use keys internally. That still keeps the key inside the device, but such devices are slower and usually offer less physical protection and access control than an HSM. Even for low-volume issuing, the module must meet the CA policy’s requirements, such as a minimum FIPS 140 level.

Key ceremonies

Creating a root CA key, or using an offline root, is usually done in a scripted ceremony: a written procedure, several authorized people, independent witnesses, recorded steps and a sealed log. The goal is evidence, afterward, that the key was created and used only as intended.

FIPS 140-3 levels

FIPS 140-3 validates cryptographic modules at four security levels. Higher levels add stronger requirements, including physical tamper evidence and response and stronger operator authentication. A CA’s policy usually states the minimum level its keys must be protected at.

Sources

Draft lesson, awaiting technical review · Last updated 21 November 2026

Search

Press / to search from any page