Root key ceremony and HSM planning for a new private CA

A root key ceremony for a new private CA needs a written key generation script, a witnessed or recorded generation, protected keys in a validated module, and dual-control backup. This page covers what to prepare for each.

On this page

What a root key ceremony involves before a new private CA goes live

If you are standing up a new internal CA, you will need to generate and protect its root and intermediate keys before anything is issued from it. The publicly trusted CA/Browser Forum Baseline Requirements require a Key Generation Script, witnessed by a Qualified Auditor or recorded on video, and protection of the private key in a system validated to FIPS 140-3 level 3 or an equivalent Common Criteria profile. A private CA is not bound by those rules, but it can use them as a reference for what a defensible ceremony looks like. This affects the platform, security and PKI engineers who will run the ceremony, and the leads who must approve the script, the roles and the evidence before the CA is trusted.

The ceremony is driven by a written script that names each step, the people who perform it and the evidence each step produces. The Baseline Requirements use SHALL for the script and the witness or video in publicly trusted CAs, and relax those to SHOULD for keys operated by the root operator or its affiliate, with no auditor report required. Your own choice should be recorded in the certificate policy. The certificate policy and certification practice statement described in RFC 3647 are the place to set out trusted roles, the number of people required for each task (n out of m), separation of duties, and how key generation and installation are performed. Confirm the exact wording against the current Baseline Requirements and RFC 3647 before you adopt it.

Key protection and recovery decisions should be settled before the ceremony starts. The Baseline Requirements state that the CA private key must be backed up, stored and recovered only by personnel in trusted roles, using at least dual control. Decide which module will hold the key, confirm it is validated to the level your policy requires, and plan how the key is backed up. Where you use a Windows CA, the Backup-CARoleService cmdlet can back up the database and key material, and with -Password it protects the key with a secure string; when the private key is included, the output is a .p12 file in the Database subdirectory, so that file must be stored under the same controls as the key itself. If you host the root outside your secrets platform, HashiCorp's Vault PKI guidance suggests issuing a shorter-lived intermediate into the platform and having it create signing requests without exporting its private key. Check the product documentation for any algorithm or CA type you plan to use, since support varies: Microsoft's AD CS requires CNG key storage providers for post-quantum algorithms, and Vault's documentation says ML-DSA and ED25519 backed CAs do not support OCSP as of its current documentation.

Which key ceremony requirements apply and to which keys

This table compares the Baseline Requirements and RFC 3647 rules on key ceremonies, HSM protection and dual control, and states which keys each one covers. Read the applies-to column first, because the Root CA operator or Affiliate SHOULD variant of section 6.1.1.1 changes what is required for keys run by that operator. A private CA can use these as a reference, but they do not bind it.

RequirementWhat it asks forApplies toEvidence an assessor expects
BR 2.3.2 section 6.1.1.1 (script, witness or video, auditor report)A Key Generation Script followed, a Qualified Auditor witnessing or a video recording, and an auditor report on the ceremony, all as SHALLRoot and independent subordinate CA key pairs of publicly trusted CAsApproved script, witness record or video, and the auditor's report
BR 2.3.2 section 6.1.1.1 SHOULD variantThe script and witness or video use SHOULD, and no auditor report is requiredKeys operated by the Root CA operator or its AffiliateScript and recording where kept, with the reason the variant was chosen
BR 2.3.2 section 6.2.7 (module level)Private key protected in a system or device validated to FIPS 140-2 or FIPS 140-3 level 3, or an appropriate Common Criteria profileCA private keys of publicly trusted CAsModule validation certificate matching the exact HSM model and firmware
BR 2.3.2 section 5.2.2 (dual control)Backup, storage and recovery only by Trusted Roles, using at least dual controlCA private keys and their backupsAccess records showing two authorized people for each sensitive action
RFC 3647 procedural controlsTrusted roles, the n out of m count per task, and separation of dutiesAny CP/CPS, including a private CA's ownWritten role definitions and task-to-role assignments
RFC 3647 key pair generation and installationHow key pairs are generated and installed, as its own CP/CPS topicAny CP/CPS, including a private CA's ownGeneration procedure and installation record for each root
RFC 3647 private key protection and escrowModule engineering controls and key escrow or recovery, each under its own headingAny CP/CPS, including a private CA's ownStatement of whether escrow exists and how recovery is authorized
Scope check for a private CAThe Baseline Requirements are rules for publicly trusted CAs that a private CA may reference, and do not bind itInternal roots not in public trust storesDocumented choice of which rules are adopted and why

What the ceremony changes for the teams that run the CA

A key ceremony is not a one-time event. It changes how the people who run the CA work every day, from who may attend a key operation to how a key is recovered years later. The cards below cover the consequences the team should plan for before the first root key is generated.

The script becomes binding

The Key Generation Script is a written procedure that the CA must prepare and then follow exactly. Any step performed differently from the script becomes a deviation to explain, not a shortcut to take. Public CA rules require a script for root and independent subordinate key pairs, and a private CA can use the same discipline as a reference. Check that the script names every command, every operator role and every piece of evidence, and rehearse it before the real ceremony.

Baseline Requirements text

Trusted roles and dual control

The team must define which people hold trusted roles and how many of them must be present for each task, often expressed as n out of m. Backing up and recovering the CA private key is limited to personnel in trusted roles under at least dual control, so no single administrator can restore a key alone. Decide who may attend a ceremony, who holds each share of control and how absences are covered before the ceremony date is set.

RFC 3647 topics

The HSM fixes where keys live

Choosing a hardware security module decides where the CA private key is generated, stored and used, and how operators reach it. Public CA rules require keys to be protected in a module validated to at least FIPS 140-3 level 3 or an appropriate Common Criteria profile. Confirm the validation certificate covers the exact model and firmware you will buy, and check how the vendor's tooling fits your scripts, backup method and disaster recovery site.

NIST SP 800-57 Part 1

Backup and recovery become procedures

Ad hoc copies of a CA key or database are not acceptable once the team operates under a documented ceremony. Backup, storage and recovery of the private key must follow controlled steps, with evidence recorded at each one. On Windows, the Backup-CARoleService cmdlet can write the key to a password-protected .p12 file, so the password handling and storage location become part of the procedure. Test a restore in a non-production setting before you rely on it.

Backup-CARoleService docs

Keys stay inside the boundary

Where the CA is hosted outside the secrets platform, the usual pattern is to issue a shorter-lived intermediate certificate into that platform and have it create signing requests without exporting the private key. The root stays offline under its ceremony controls, and the intermediate does the daily work. Document which key lives where, and make sure no operator can export a key that the ceremony was meant to keep in place.

Vault PKI considerations

How the key generation script, witness and module work together

The sources describe the root key ceremony as four parts that work together: a Key Generation Script that sets each step in order, a witness that evidences those steps, a hardware or software module that protects the private key, and a set of CP/CPS topics that record how the whole process is governed. For a root or independent subordinate CA key pair, the CA/Browser Forum Baseline Requirements say the CA SHALL prepare and follow the script and have a Qualified Auditor witness the key pair generation or record a video of it, followed by an auditor report opining that the CA followed its key ceremony. Those are rules for publicly trusted CAs. A private CA can use them as a reference for the same sequence of script, evidence and protection, but it is not bound by them unless its own policy or a contract says so.

The witness or recording is the evidence that the script was followed, and it is the part most often missed when a private CA is set up in a hurry. The Baseline Requirements allow SHOULD instead of SHALL for the script and the witness or video, and drop the auditor report, when the keys are operated by the Root CA operator or its Affiliate. Before the ceremony, decide who will witness it internally, whether it will be recorded, and where the script, recording and sign-off will be kept. Decide this in the CP/CPS so the evidence requirement is written down before anyone has to rely on it.

The module protects the private key, and the sources tie that protection to people as well as to hardware. The Baseline Requirements require the CA to protect its private key in a system or device validated at FIPS 140-2 level 3 or FIPS 140-3 level 3, or an appropriate Common Criteria profile, and require that the key be backed up, stored and recovered only by personnel in Trusted Roles, using at least dual control. RFC 3647 maps these onto CP/CPS topics: trusted roles and their responsibilities, the number of people required per task (n out of m) and separation of duties, key pair generation and installation, private key protection with cryptographic module engineering controls, and key escrow and recovery. Confirm the module's validation certificate and its FIPS or Common Criteria level before you select it, and write the n out of m rule for each recovery action into the CP/CPS.

How the ceremony differs between a root and an intermediate CA

An offline root is the most controlled case. Its private key is generated once, kept off the network, and used only to sign a small number of intermediate CA certificates. Because the root is the trust anchor for everything beneath it, the ceremony is the heaviest of the three. The Baseline Requirements describe a Key Generation Script for root and independent subordinate CA key pairs, with a qualified auditor either witnessing the generation or a video being recorded, and an auditor report opining that the ceremony was followed. Those rules are written for publicly trusted CAs, so a private CA may treat them as a reference rather than a requirement.

  • Key generation script: Write the steps, roles and evidence points in advance, and run the ceremony against that script.
  • Witness or recording: Decide whether an independent witness or a video record will be the evidence, and keep it with the CA records.
  • Key protection: The Baseline Requirements call for a system validated at FIPS 140-2 level 3 or FIPS 140-3 level 3, or an appropriate Common Criteria profile. Confirm the HSM's validation covers the algorithms you plan to use.
  • Backup and recovery: Backup, storage and recovery of the CA private key are limited to trusted roles under at least dual control.
  • Trusted roles and separation of duties: RFC 3647 frames these as procedural controls, so record how many people each task needs (n out of m) and who may not hold two roles.

Check that the root's validity period, its signing limits and the intermediates it issues are recorded before the ceremony starts, since they are hard to change afterwards.

What to do, in order, before the key ceremony

This sequence settles the governing rules, the people and the equipment before any key is generated, so the ceremony runs as a rehearsed procedure with evidence at each stage. Each step below produces a document, a decision or a record that the next step depends on.

  1. Define the CP/CPS and trusted roles

    Write the certificate policy and certification practice statement, using the outline in RFC 3647 as the structure. Cover procedural controls: the trusted roles, what each role may do, and the number of people required for each task under an n out of m rule. Separation of duties should be explicit so no single person can generate, use or recover the CA key alone. The output is an approved CP/CPS and a role matrix that names the people, their responsibilities and the minimum quorum for each sensitive task. Confirm the roles against your own organization's policy, since the CP/CPS is yours to set.

  2. Write the key generation script

    Draft the Key Generation Script that the ceremony will follow line by line. The Baseline Requirements expect publicly trusted root and subordinate CAs to prepare and follow such a script, so a private CA can use it as a reference for its own procedure. The script should cover the steps, the expected output at each step, who performs and who verifies each action, and what is recorded. The output is a reviewed, versioned script that the trusted roles have read and signed off.

  3. Select a validated key protection module

    Choose the hardware security module or other device that will hold and use the CA private key. The Baseline Requirements call for a system validated at FIPS 140-3 level 3, or FIPS 140-2 level 3 where it still applies, or an appropriate Common Criteria profile. Ask the vendor for the validation certificate, the exact module and firmware version it covers, and confirm that your intended algorithms are supported on that version. The output is a documented module selection with its validation reference, checked against the requirement.

  4. Decide the auditor or recording arrangement

    Decide who will witness the key generation and how the event will be evidenced. The Baseline Requirements expect a Qualified Auditor to witness the generation or record a video, and to report on whether the ceremony was followed, for publicly trusted roots. A private CA may choose a lighter arrangement, such as an internal witness plus a recording, but should state the choice in the CP/CPS. The output is a named witness or auditor, a recording method and a written decision on whether an external report will be issued.

  5. Rehearse the key generation

    Run the full ceremony once without a production key, using the same script, roles, module and recording setup. The rehearsal exposes unclear steps, missing equipment, quorum problems and timing issues before the real event. Record each deviation and update the script or role matrix to close it. The output is a rehearsal log listing what was tested, what failed and the revisions made, plus a final script version approved for use.

  6. Set the backup and recovery procedure

    Define how the CA private key will be backed up, stored and recovered. The Baseline Requirements require that the key be backed up, stored and recovered only by trusted roles, under at least dual control. Document the backup medium, the storage location, the access controls and the recovery steps, and rehearse recovery separately, because a backup that has never been restored is unproven. If you use Microsoft AD CS, the Backup-CARoleService cmdlet can back up the key with -KeyOnly, which writes a .p12 file in the Database subdirectory, and it can be protected with a secure string password. Confirm the exact behavior for your version. The output is a backup and recovery runbook, a tested recovery record and the list of people who hold each dual-control element.

  7. Confirm the signing and status approach

    Before generating anything, confirm which algorithms the CA will sign with and how it will publish revocation status. Check the chosen platform's documentation for supported algorithms and for OCSP support on each key type, since some documented post-quantum CA types do not support OCSP. If the root is held outside the operating platform, plan for a shorter-lived intermediate that is issued to the platform, with its signing requests created without exporting the private key. The output is a written algorithm and status decision, checked against the platform's current documentation, and dated for the review record.

What drives the effort of the ceremony

The effort of a root key ceremony depends less on the software than on the decisions made before the ceremony starts. The factors below set how many people, devices, records and rehearsals the work needs, and the sources listed on this page give no price for any of them.

Number of CAs and hierarchy levels

Each root and independent subordinate CA key pair needs its own Key Generation Script and, under the Baseline Requirements, a witness or video record. A plan with several roots, or an intermediate tier that is generated separately, multiplies these steps. Count the key pairs you intend to generate before you schedule anything, and confirm which of them your own policy treats as needing the same controls.

Baseline Requirements text

Procured or already owned HSMs

Whether the team buys hardware or reuses devices it already runs changes the schedule and the approval path. The Baseline Requirements ask for a module validated at FIPS 140-2 level 3 or FIPS 140-3 level 3, or an appropriate Common Criteria profile, so check the validation certificate of any device you already own before you rely on it. Procurement lead time and the certificate check are the items most likely to move the date.

Trusted roles to staff

Key backup, storage and recovery must be done only by personnel in Trusted Roles, using at least dual control. RFC 3647 expects the CP/CPS to name each trusted role, how many people each task needs (n out of m) and how duties are separated. Every role you define needs a named, trained person, and a person cannot hold conflicting roles, so the staffing list often sets the minimum headcount for the ceremony.

RFC 3647 text

External witness or auditor

The Baseline Requirements call for a Qualified Auditor to witness key pair generation or to record a video, and for an auditor report on a public root. Publicly trusted CAs set these rules, and a private CA may use them as a reference, but its own policy decides whether an external witness is needed. Cost depends on the chosen auditor and the hardware, and the sources give no price, so ask each auditor for a written quote against your scope.

Windows or Vault platform choice

The platform decides which backup and key-handling steps apply. Backup-CARoleService on Windows writes the CA database and private key to a path, and can write the key to a .p12 file protected with a password. HashiCorp Vault's guidance, when the root sits outside Vault, is to issue a shorter-lived intermediate into Vault and have Vault generate CSRs without exporting its private key. Confirm the exact commands and options in each vendor's documentation for the versions you run.

Vault PKI considerations

Rehearsal time

A ceremony is hard to repeat, so the Key Generation Script should be run in a rehearsal before the real event. The rehearsal shows missing devices, unclear steps and roles that need more people. The sources listed on this page do not state how many rehearsals are needed, so set that number from your own risk tolerance and the number of key pairs in scope.

What to record so an auditor can see the ceremony was followed

An auditor reviewing a root key ceremony for a new private CA will ask one question: can you show that the ceremony followed the script you wrote before it started? The evidence that answers this is a set of records kept from preparation through restore testing. The first record is the signed Key Generation Script, which lists each step, the role that performs it and the expected output. Baseline Requirements 2.3.2 section 6.1.1.1 says a publicly trusted CA SHALL prepare and follow such a script for root and independent subordinate keys, and a private CA can use that section as a reference for what to keep. Sign the script before the ceremony and file the signed copy with the ceremony record, so that any deviation can be shown against the approved steps.

Next, record who was present and what each person did. Keep an attendance log that names every participant, the trusted role each one holds and the task each one performed, since RFC 3647 treats trusted roles, the number of people required for each task (n out of m) and separation of duties as procedural controls a CP/CPS should address. Pair this with the witness record: either the report from a qualified auditor, or a video of the key pair generation if no auditor is present. Section 6.1.1.1 uses SHOULD for the witness or video in the case of keys operated by the Root CA operator or its Affiliate, so state in your own CP/CPS which of these you will follow. Also record the module used, with its make, model, firmware version and the FIPS 140-3 level 3 or Common Criteria validation that section 6.2.7 requires, so the auditor can confirm the module identity against the validation listing.

Finally, record the backup and the restore. Section 5.2.2 requires the CA private key to be backed up, stored and recovered only by trusted roles under dual control, so keep a custody log showing who held each backup, where it was stored and each access. Also keep a written restore procedure and the result of a tested restore, since a backup that has never been restored gives an auditor no assurance. If you use a tool such as Backup-CARoleService on Windows, record the command, its parameters and the output path, and confirm the .p12 file it writes is stored under the same dual control as the backup. Confirm these requirements against the current text of the Baseline Requirements and your own CP/CPS, and confirm that the module and tooling you select support the algorithms you plan to use.

Questions teams ask about root key ceremonies

Does a private CA have to follow the publicly trusted CA rules for key ceremonies?

No. The CA/Browser Forum Baseline Requirements govern publicly trusted CAs, so a private CA is not bound by them. Section 6.1.1.1 of version 2.3.2 uses SHALL for a Key Generation Script, witnessing or video recording, and an auditor report for root and independent subordinate CA keys. The same section uses SHOULD instead, and drops the auditor report, for keys operated by the Root CA operator or its Affiliate. A private CA can use these rules as a reference when it sets its own ceremony standard, and should record which parts it adopts in its certificate policy and practice statement.

What does a Key Generation Script contain for a root key ceremony?

The Baseline Requirements require a CA with publicly trusted roots to prepare and follow a Key Generation Script for root and independent subordinate key pairs. The sources supplied here do not list its required steps, so confirm the contents against section 6.1.1.1 of BR 2.3.2 directly. In practice, a script sets out who performs each step, the hardware and software used, how the key pair is generated and where its private key is installed. RFC 3647 covers the related topics of key pair generation and installation, and trusted roles, which a script should reflect.

Is an auditor report always needed after a root key ceremony?

Not for every case. For root and independent subordinate CA keys, the Baseline Requirements call for a Qualified Auditor to issue a report opining that the CA followed its key ceremony. For keys operated by the Root CA operator or its Affiliate, section 6.1.1.1 uses SHOULD and does not require the auditor report. A private CA is not bound by these rules, so the decision rests with its own policy and with any customer, regulator or contract that asks for independent evidence. Use the written ceremony record as the baseline, and decide early whether an external auditor's opinion is needed.

Which HSM level do the sources name for protecting a CA private key?

Section 6.2.7 of Baseline Requirements 2.3.2 says a publicly trusted CA protects its private key in a system or device validated as meeting at least FIPS 140-2 level 3 or FIPS 140-3 level 3, or an appropriate Common Criteria profile. This is the level named in the sources for publicly trusted CAs. A private CA can use it as a reference, but should confirm the level its own policy requires. Check the validation certificate of any HSM you buy against the module name and version, since a validation applies to a specific model and firmware, not to a vendor as a whole.

How must backup and restore of a CA private key be controlled?

Section 5.2.2 of the Baseline Requirements says the CA private key is backed up, stored and recovered only by personnel in Trusted Roles, using at least dual control. Under RFC 3647, trusted roles and the number of people required per task (n out of m) are procedural controls that belong in the certificate practice statement. For a Windows-based CA, Microsoft's Backup-CARoleService cmdlet can back up the key with a password (-Password, a secure string), and it writes the key to a .p12 file in the Database subdirectory of the path you give. Protect that file and its password under the same dual control rules.

Does post-quantum signing change the root key ceremony?

The sources supplied here do not say that it does, so confirm this with the product documentation. What they do show: Microsoft's AD CS supports ML-DSA (FIPS 204) for CAs, certificate templates and Online Responders, with ML-KEM and composite schemes planned for a later phase. All post-quantum algorithms in AD CS require CNG key storage providers, and AD CS does not support legacy Cryptographic Service Providers. HashiCorp's Vault documentation states that ML-DSA and ED25519 backed CAs do not support OCSP. Check each of these constraints before you plan the ceremony around a specific algorithm.

What should I ask a vendor or CA before buying root key ceremony support?

Ask for these points in writing before you commit:

  • Which HSM validation the device holds, with the module name, version and validating body, so you can verify it.
  • Whether the product supports the key storage provider and algorithm you plan to use, including any post-quantum algorithm.
  • How backup and restore are performed, and whether dual control and trusted role separation are enforced by the product or left to your procedures.
  • What evidence the product produces for the ceremony and which parts of the script the vendor writes or reviews.
  • Whether an external auditor's report is in scope, and who engages that auditor.

Ask for the quote to show each of these items separately, so you can see what is one-time and what recurs.

The sequence of a root key ceremony from script to backup

The ceremony starts when the operator prepares a Key Generation Script and names the trusted roles who will run it. The script then drives module selection: the private key must sit in a device validated at FIPS 140-3 level 3 or an appropriate Common Criteria profile. Generation follows, witnessed by an independent party or recorded on video, and the output moves to backup, which requires dual control by trusted personnel. The sequence ends with an evidence file and a restore test. Check that the backup restores, because an untested backup is not evidence of recoverability. The Baseline Requirements apply these controls to publicly trusted CAs, so a private CA may use them as a reference.

The ceremony runs from script preparation through to a tested restore.

How DeployOpen helps plan and run a private CA key ceremony

DeployOpen helps internal teams plan the generation and protection of root and intermediate CA keys before any certificate is issued. The work covers the key generation script, the roles and dual control each step needs, the hardware module choice, and the evidence and backup records that show the ceremony was done as planned.

How we scope

  • We agree in writing which CA keys are in scope, including roots, independent subordinates and any intermediates hosted outside the CA platform.
  • We map the trusted roles, the number of people needed per task (n out of m) and the separation of duties your policy requires.
  • We confirm which key storage module, FIPS 140 level or Common Criteria profile your policy requires, and check that the chosen platform supports it.

How we build

  • We draft a key generation script that defines each step, the people present, the witnessing method and the records each step produces.
  • We set up backup and recovery procedures so the CA private key is held and restored only by trusted roles under dual control.
  • We test the script in a non-production environment, including a practice run of backup and recovery, before the live ceremony.

How we hand over

  • We deliver the approved key generation script, role assignments, module configuration notes and the procedure for the live ceremony.
  • We document the evidence to keep for auditors, such as signed step logs, witness or video records and the key backup inventory.
  • We walk your team through the ceremony, confirm each role knows its tasks and record the handover in your PKI documentation.

How we support

  • Ongoing support and retainers are available if you want help with later ceremonies, key rotation or updates to the script.
  • We can prepare the ceremony evidence and controls for your own compliance assessment, which independent auditors and certification bodies then review.
  • Ask any vendor or product you rely on for its current documentation on key handling, since the sources for this topic do not cover every product's behavior.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.