How to protect post-quantum CA keys with hardware security modules

Storing post-quantum CA keys in hardware depends on what the module supports, how keys can be backed up, and how ceremonies are run. This guide sets out what to check before choosing a module and what to ask the supplier.

On this page

Why HSM choice decides how post-quantum CA keys can be protected

The security or PKI lead who owns CA key protection has to decide where post-quantum CA keys will live before any certificate is issued. This task produces a documented hardware security module (HSM) selection and key-handling plan, owned by the CA operator with security and procurement sign-off. The plan should record which algorithms the module supports, how keys are generated, backed up and restored, and which firmware version the decision depends on. The NSA advisory PP-26-4956 includes the action to stand up post-quantum certificate authorities and roots of trust, or to engage the provider that runs them. That advisory is written for national security systems, and it is used here as a reference for any organization planning the same step.

The choice of HSM constrains the rest of the design. Thales documents that ML-DSA and ML-KEM on Luna HSMs require Luna HSM Firmware 7.9.0 or newer, and that ML-DSA keys can be cloned between partitions, backed up, restored and used in HA groups. Thales also documents LMS-HSS from firmware 7.8.9, but states that its keys cannot be copied, so no backup and no HA replication are possible. The Thales Luna post-quantum algorithms page does not mention SLH-DSA. Each of these facts applies to a specific product and firmware version, so the reader should confirm them against the module and version they intend to buy and run.

The EJBCA 9.6 documentation lists a range of HSMs that support ML-DSA and composite keys and signatures, and it warns that not every composite combination is supported by every HSM. Both the model and its firmware must support all algorithms in the chosen combination. It also notes that PQC signing payloads can be large, so HSMs with limited network transfer may struggle with growing CRLs, and it recommends production-scale testing early. RFC 9802 warns that ordinary backup and restore can cause one-time signature reuse for stateful hash-based keys, pointing to SP 800-208. Ask each supplier to confirm backup behavior in writing for the exact algorithm and firmware.

What the published guidance asks for when keys sit in hardware

This table compares what each listed document says a CA key-protection task involves, from advisory actions to key formats, backup limits, hybrid carriage and policy writing. Read each row as a question to answer for your own HSM and CA before approving a design. The main takeaway is that algorithm support, backup behavior and firmware level vary by product, so each claim needs confirmation against the exact module and version in use.

DocumentWhat it says the task involvesWhat to confirm
NSA advisory PP-26-4956Stand up post-quantum certificate authorities and roots of trust, or engage the provider that runs them. Written for national security systems and used here as a reference.Whether the advisory applies to your system, or only applies to you through a federal contract.
RFC 9881Defines three ML-DSA private key formats: a 32-byte seed, an expanded key, or both. Recommends the seed format for storage efficiency and says recipients should check seed consistency when both are present.Which key formats your HSM imports, exports and stores, and whether it checks seed consistency.
RFC 9881 OIDsDefines object identifiers for ML-DSA-44, ML-DSA-65 and ML-DSA-87 in X.509 certificates and CRLs.That your CA software and HSM emit and accept the same OIDs for the variant you select.
RFC 9802Warns that ordinary backup and restore can cause one-time signature reuse with high probability for stateful hash-based keys, and points to SP 800-208 Section 7.Whether your hash-based key type can be backed up at all, and which restore procedure avoids state reuse.
NIST SP 800-208Referenced by RFC 9802 for the state-handling guidance on stateful hash-based signature keys.The section numbers and current revision you cite in your key ceremony and backup procedures.
RFC 9794Defines a PQ/T hybrid certificate holding public keys for at least one traditional and one post-quantum algorithm, carried either as a composite key or as separate keys.Whether your issuance and validation chain supports composite keys or separate keys, and where each component is stored.
RFC 3647Provides the framework for writing certificate policies and certification practice statements for certification authorities and relying parties.That your CPS and certificate policy describe where post-quantum keys are generated, stored, backed up and destroyed.
NIST IR 8547Sets transition guidance and timing. Executive Order 14412 sets 2030 for key establishment and 2031 for digital signatures for federal high-value assets and high-impact systems. National Security Memorandum 10 sets 2035 as the primary target for completing federal PQC migration.Which of these dates apply to your organization and whether your CA key lifetimes extend past them.

Which records the key protection work should produce

Key protection for a post-quantum CA is documented work, not a single setting. The six records below each capture one decision or check, and together they give auditors and vendors something concrete to review before keys are generated in hardware.

HSM capability matrix

A matrix that records, for each candidate module, which algorithms it supports, which firmware version enables them, and which composite combinations it can run. EJBCA 9.6 notes that both the HSM model and its firmware must support every algorithm in the chosen combination, and that support varies by vendor, so the matrix should be checked against the exact model and firmware you plan to run. Thales Luna requires firmware 7.9.0 or newer for ML-DSA and ML-KEM, and LMS-HSS keys on Luna cannot be copied.

EJBCA 9.6 PQC docs

Key storage and backup decision record

A record of where each CA key lives, how it is backed up, and why that method was chosen. Backup behavior differs by algorithm: ML-DSA keys on Luna can be cloned and restored, while stateful hash-based keys risk one-time signature reuse if restored by ordinary means. RFC 9802 points to SP 800-208 Section 7 for this case, so the record should name the approach and the reviewer who accepted it.

RFC 9802

Ceremony script and log template

A step-by-step script for key generation and any backup or restore, paired with a log template that captures who was present, which module and firmware were used, and the outcome of each step. Because the ceremony runs once for a CA, the script should be rehearsed in a lab first. The log becomes evidence for the CPS and for any later assessment of how keys were created.

Supplier questionnaire with written answers

A questionnaire sent to each HSM supplier, with answers returned in writing and kept on file. CISA's joint guidance 'Post Quantum Questions to Ask Your Vendors' is a usable starting point for third-party risk. Ask specifically how the vendor handles composite keys, externalMu-ML-DSA from RFC 9881, backup of each key type, and firmware support windows, and ask for the answer in writing rather than relying on marketing material.

CISA quantum page

Load test result for large payloads

A test result showing how the chosen HSM handles large inputs such as a growing CRL. EJBCA 9.6 warns that PQC algorithms are generally not hash-and-sign, so large payloads can strain HSMs with limited network transfer, and it recommends production-scale testing early. Record the payload sizes tested, the signing times observed, and the point at which performance became a concern for your issuance schedule.

CPS section on key protection

A section of the certification practice statement that describes key protection, structured to follow RFC 3647. The section should state the module used, how keys are generated and backed up, who may access them, and how the ceremony is controlled. Writing it against RFC 3647's structure makes it easier for relying parties and assessors to find the controls they expect.

RFC 3647

Order of work from module shortlist to signed-off key plan

This sequence takes a team from an agreed list of algorithms and certificate types to a signed-off key protection plan recorded in the certification practice statement (CPS). Each step produces a named artifact, so the plan can be checked against the module, firmware and load-test evidence it depends on.

  1. Confirm required algorithms and certificate types

    The CA owner lists the signature algorithms and certificate types the CA must issue, using RFC 9881 for ML-DSA, RFC 9909 for SLH-DSA, RFC 9802 for the stateful hash-based schemes HSS and XMSS, and RFC 9794 if hybrid or composite certificates are in scope. Each algorithm is tied to its object identifiers and key format. The output is a short requirements list that every later step checks against. The step is done when the security lead has signed that list.

  2. Shortlist modules and check firmware minimums

    The team builds a shortlist of hardware security modules that support the required algorithms, drawing on the EJBCA 9.6 list of supported HSMs and the vendor's own documentation. For each candidate, it checks the firmware version against the stated minimum, such as Thales Luna firmware 7.9.0 or newer for ML-DSA and ML-KEM. The output is a shortlist table with model, firmware version and the source of each claim. Vendor claims are confirmed against the vendor's current documentation, because support is vendor-specific.

  3. Confirm composite combination support

    For each shortlisted module, the team confirms that the chosen composite combination is supported by both the HSM model and its firmware version, since EJBCA 9.6 states that both must support every algorithm in the combination. It also confirms how the module handles composite signatures, noting that the payload is hashed before it reaches the HSM. The output is a compatibility matrix showing each module, firmware and combination, with a pass or fail. The step is done when the security lead has accepted the matrix.

  4. Decide backup and high availability per algorithm

    The team decides backup and high availability separately for each algorithm, because the sources differ. The Thales documentation states that ML-DSA keys can be cloned, backed up, restored and used in HA groups, while LMS-HSS keys cannot be copied, so they support neither backup nor HA replication. For stateful hash-based keys, RFC 9802 warns that ordinary backup and restore can cause one-time signature reuse, and it points to SP 800-208 Section 7. The output is a per-algorithm backup decision record that names the recovery method and who approves it.

  5. Run load tests with production-size CRLs

    The team runs load tests against each candidate module using CRL sizes close to what production will generate, since EJBCA 9.6 notes that post-quantum signatures are not hash-and-sign and that large CRLs can strain HSMs with limited network transfer. The tests record signing time, throughput and failures at the planned CRL size. The output is a load test report for each module with the CRL size and results. Results that fall short of the requirement lead to a module being dropped or the CRL strategy being changed before the plan proceeds.

  6. Write ceremony procedures for key generation

    The team writes the key generation and backup ceremony procedures, naming the roles, witnesses, the sequence of steps and the evidence to retain. It includes how an ML-DSA private key is stored, whether as a 32-byte seed or an expanded key, and how seed consistency is checked when both forms are present, as RFC 9881 requires. The ceremony covers any stateful key handling that RFC 9802 flags. The output is a set of ceremony scripts and a role matrix. The step is done when a dry run has been completed and each step has been checked against the procedures.

  7. Sign off the key plan

    The security lead, CA operator and any required approvers review the compatibility matrix, backup decisions, load test results and ceremony procedures together. They confirm that every chosen module, firmware version and algorithm has evidence behind it, and they record their approval with date and version. The output is a signed key plan that lists the decisions and the evidence for each one. Any open items are logged with an owner before sign-off is recorded.

  8. Record the signed plan in the CPS

    The team records the signed key plan in the certification practice statement, following the structure of RFC 3647 for certificate policies and practice statements. The entry names the approved modules, algorithms, backup approach and ceremony references, and it links each decision to its evidence. The output is an updated CPS section that matches the signed plan. The step is complete when the CPS revision is approved and the previous revision is archived with its date.

Who does what across the CA operator, platform team, procurement and vendors

The CA operator owns the decisions about which keys the certificate authority holds, which signature algorithm each key uses, and how keys are generated, backed up and retired. Before any key is created, the operator confirms that the chosen HSM model and firmware support the algorithm and the exact composite combination, because the EJBCA 9.6 documentation says both the model and its firmware must support every algorithm in the selected combination. The operator also records the signing volume and payload size expected for CRLs, since the same documentation warns that PQC algorithms are generally not hash-and-sign and large payloads can strain HSMs with limited network transfer.

  • Algorithm and key format choice: Record ML-DSA, SLH-DSA, LMS or composite selection and the private key format, noting that RFC 9881 defines seed and expanded formats.
  • Backup approach: Record whether keys will be cloned or backed up, and whether the scheme is stateful, since RFC 9802 warns that ordinary backup and restore can cause one-time signature reuse.
  • Ceremony and custody: Record who witnesses key generation and who holds activation material.
  • Test evidence: Keep production-scale signing tests that show CRL sizes and HSM throughput.
  • Vendor-specific limits: Note which features the chosen HSM supports, as the EJBCA documentation says support is vendor-specific.

Before go-live, check that every key on the CA can be restored into a target HSM under the planned firmware.

Which modules, formats and documents the guidance names

Before you choose a module, check the vendor documentation for the exact algorithms and firmware it supports, because support varies sharply. For Thales Luna HSMs, the Thales Luna PQC documentation states that ML-DSA and ML-KEM require Luna HSM Firmware 7.9.0 or newer, while LMS-HSS is available from firmware 7.8.9. Confirm the firmware on your own units against these thresholds. The same page does not mention SLH-DSA, so do not assume it is available on Luna without asking Thales directly. Note also that LMS-HSS keys cannot be copied, which rules out backup and HA replication for those keys. ML-DSA keys, by contrast, can be cloned between partitions, backed up, restored and used in HA groups, so the algorithm you pick changes your recovery design.

The EJBCA 9.6 documentation lists the HSMs it supports for ML-DSA and composite keys and signatures, including AWS Key Management Service, Entrust nShield Connect 5c, Fortanix Data Security Manager, Thales Luna 7, Securosys Primus HSM and CloudHSM Service, Utimaco u.trust Anchor, Crypto4A QxHSM and I4P Trident. That documentation also states that not every composite combination is supported by every HSM, and that both the model and its firmware must support the full combination you select. Treat that list as a starting point and verify it against your own model and firmware. For formats, RFC 9881 defines three ML-DSA private key formats: a 32-byte seed, an expanded key, or both. It recommends the seed for storage efficiency and says recipients should check seed consistency when both are present. Ask your HSM supplier which of these formats it can import and export.

For supplier questions, CISA's quantum page points to the joint guidance Post Quantum Questions to Ask Your Vendors, which covers identifying and managing third-party risk during the move to post-quantum cryptography. Use it as the basis for your questionnaire. For background on stateful hash-based keys, RFC 9802 warns that ordinary backup and restore can cause one-time signature reuse with high probability, and points to SP 800-208 Section 7 for guidance. Confirm with your supplier how keys are backed up and restored before you rely on any backup procedure for these keys.

How the module choice branches into backup and ceremony paths

The diagram starts with the algorithm your CA must use, then checks whether the HSM supports it at the firmware version you run, as the Thales Luna documentation ties ML-DSA and ML-KEM to Luna HSM Firmware 7.9.0 or newer. Next it asks whether the keys are clonable or non-exportable. LMS-HSS keys cannot be copied on Luna HSMs, so that branch has no backup and no HA replication, while ML-DSA keys can be cloned, backed up and used in HA groups. Each path ends at the ceremony and logging step, where you record which branch applied and why. Confirm the firmware and key-type details against your own module before you rely on them.

Decision path from required algorithm to backup or no-backup ceremony.

Where key protection plans most often break down

Most HSM-based CA key protection plans fail at a small number of predictable points: firmware versions, algorithm support, backup behavior, network limits and vendor claims. Each card below names one of these failure points and what to confirm before a key ceremony.

Firmware below the stated minimum

Thales states that ML-DSA and ML-KEM on Luna HSMs require Luna HSM Firmware 7.9.0 or newer. A device on an older release may accept the partition setup and still fail when a post-quantum key is generated or used. Before planning key generation, confirm the exact firmware version on every device in the cluster, including spares and disaster recovery units, and record it in the ceremony plan.

Thales Luna PQC docs

Assuming every composite combination runs

The EJBCA 9.6 documentation says not every composite algorithm combination is supported by every HSM, and that both the HSM model and its firmware must support all algorithms in the chosen combination. A hybrid CA design can therefore be valid on paper and unusable on the target device. Test each composite combination you plan to issue on the exact model and firmware before committing the hierarchy.

EJBCA 9.6 PQC docs

Restoring stateful hash-based keys from backup

RFC 9802 warns that ordinary backup and restore can cause one-time signature reuse with high probability for stateful hash-based keys, and points to SP 800-208 Section 7 for guidance. Thales states that LMS-HSS keys on Luna cannot be copied, so they have no backup and no HA replication. Decide before generation whether the CA will use a stateful scheme at all, and document how state is protected if it does.

RFC 9802

Large CRL payloads exceeding transfer limits

The EJBCA 9.6 documentation notes that post-quantum algorithms are generally not hash-and-sign, so large payloads such as growing CRLs can overload HSMs with limited network transfer. Signing a full CRL is a realistic failure mode for a CA with many revocations. Run production-scale CRL signing against the actual HSM early, and measure transfer time against your publication interval.

EJBCA 9.6 PQC docs

Vendor support that varies by device

The EJBCA 9.6 documentation says post-quantum support is vendor-specific and not universal across devices, and that the externalMu-ML-DSA approach from RFC 9881 has HSM support that varies. A vendor listing ML-DSA support does not confirm the variant, format or API you need. Ask each supplier which model, firmware and interface supports the exact algorithm and key format in your design, in writing.

RFC 9881

Treating a missing SLH-DSA statement as support

The Thales Luna post-quantum algorithms page does not mention SLH-DSA. Silence on a vendor page is not evidence of support, and it is also not evidence of absence. If your design needs SLH-DSA from FIPS 205 or RFC 9909, request a written support statement with the model and firmware version, and test it on a device before relying on it.

NIST FIPS 205

What to record so an auditor or customer review can follow the key decisions

Keep one signed capability matrix for every HSM that will hold a post-quantum CA key, listing the model, the Luna HSM Firmware version (7.9.0 or newer for ML-DSA and ML-KEM on Thales Luna, per the Thales Luna PQC documentation), and the algorithms and composite combinations the module supports. EJBCA 9.6 says both the HSM model and its firmware must support every algorithm in the chosen combination, so the matrix should record the pairing, not just the product name. Tie this record to the CPS section that defines the approved algorithms under RFC 3647's structure for certificate policy and certification practice statements. Re-sign the matrix whenever firmware changes, because an auditor will ask which version was in place on the date of each ceremony.

For each key type, record the backup and non-exportability decision as its own entry. The sources show the choice is not uniform: Thales reports that ML-DSA keys can be cloned, backed up, restored and placed in HA groups, while LMS-HSS keys cannot be copied, which rules out backup and HA replication. RFC 9802 warns that ordinary backup and restore can cause one-time signature reuse in stateful hash-based keys and points to SP 800-208 Section 7. Record which approach you chose, why, and what happens to the key if the module fails. Also record the private key format you store under RFC 9881, since its seed and expanded forms carry different consistency checks.

Keep ceremony logs, supplier answers with dates, load test results and CPS references as a single evidence set that cross-references the sections above. Load test results matter because EJBCA 9.6 notes that PQC signatures are generally not hash-and-sign, so large payloads such as growing CRLs can strain HSMs with limited network transfer; record the payload sizes tested and the results. For supplier answers, store the questions you asked and the dated responses, using CISA's joint guidance 'Post Quantum Questions to Ask Your Vendors' as a starting point. Confirm the exact dates, versions and certificates for each item from your own vendor documentation before recording them.

Checklist items to confirm before storing a post-quantum CA key in hardware

Which post-quantum algorithms does my HSM actually support?

Confirm each algorithm you plan to use against the module's own published support list, not against the standard alone. Done looks like a written record that names the exact algorithm, such as ML-DSA, and the exact module model and firmware in which it appears. Thales states that ML-DSA and ML-KEM on Luna HSMs require Luna HSM Firmware 7.9.0 or newer, and its Luna post-quantum algorithms page does not mention SLH-DSA, so do not assume SLH-DSA is available. The EJBCA 9.6 documentation notes that HSM support for post-quantum features is vendor-specific and not universally available across devices. Ask the supplier to confirm support in writing for your model and firmware, and file that answer with the checklist.

What minimum firmware version does my HSM need before I store PQC keys?

The firmware must be at or above the minimum stated for each algorithm you plan to use. For Thales Luna HSMs, the documentation states that ML-DSA and ML-KEM require Luna HSM Firmware 7.9.0 or newer, and that LMS-HSS is available from firmware 7.8.9. Record the installed firmware version from the device itself, not from a planning document, and confirm it is equal to or above the minimum for every algorithm in the design. Done looks like a dated firmware check, signed off by the person who ran it, stored alongside the ceremony record. If the device is below the minimum, upgrade and re-check before any key is generated.

Are my composite algorithm combinations supported by my model and firmware?

Not every composite combination is supported by every HSM, and both the model and the firmware must support all algorithms in the chosen combination. The EJBCA 9.6 documentation states this directly, so a combination that works on one model may fail on another. Write down the exact composite pair you intend to use, then check it against the supplier's list for your model and firmware. Done looks like a table with one row per combination, showing the model, firmware version and the supplier's confirmation. Do not select a composite from a general list of supported algorithms until this row exists for your hardware.

How does backup and restore behave for each post-quantum key type?

Backup behavior differs by algorithm, so record it per algorithm before storing any CA key. Thales states that ML-DSA keys on Luna HSMs can be cloned between partitions, backed up, restored and used in HA groups. By contrast, LMS-HSS keys on Luna cannot be copied, so backup and HA replication are not possible. RFC 9802 also warns that ordinary backup and restore for stateful hash-based keys can cause one-time signature reuse with high probability, and points to SP 800-208 Section 7. Done looks like a per-algorithm table recording whether backup is possible, how restore is tested, and how state is protected. Ask the supplier to confirm each entry in writing.

Has the key ceremony script been reviewed and approved?

The ceremony script should be written, reviewed and formally approved before any key is generated in the HSM. The script must cover each step in order, who performs and who witnesses it, how quorum or split-knowledge controls are applied, where each output is recorded, and what happens if a step fails. RFC 3647 provides a framework for the certificate policy and certification practice statement that the ceremony should support. Done looks like a signed script with a version number, approved by the policy owner and security lead, with a rehearsal recorded in a test environment before the live run.

Has large-payload signing been tested before production use?

Test large-payload signing before you rely on the HSM in production. The EJBCA 9.6 documentation says PQC algorithms are generally not hash-and-sign, so large payloads such as growing CRLs can be a problem for HSMs with limited network transfer, and it recommends early production-scale testing. It also states that for composite signatures the payload is always hashed before it is sent to the HSM. Done looks like a test run at the largest CRL size you expect, with the transfer time, any errors and the HSM's behavior recorded, and a decision made on whether the device's throughput meets your issuance schedule.

What should I ask my HSM supplier before storing the key?

Send the supplier a fixed set of written questions and file the answers with the checklist. CISA's quantum page lists joint guidance titled 'Post Quantum Questions to Ask Your Vendors', which is designed for identifying and managing third-party risk during the move to post-quantum cryptography, and it is a sound starting point. Cover the algorithms and composites supported on your model and firmware, backup and restore behavior per algorithm, the minimum firmware version, and how the supplier will notify you of changes. Done looks like a signed response from the supplier for each question, stored with the date received and the name of the person who reviewed it.

Which key format should I store for ML-DSA on the HSM?

RFC 9881 defines three ML-DSA private key formats, a 32-byte seed, an expanded key, or both, and recommends the seed format for storage efficiency. When both are present, the standard says recipients should check that the seed and expanded key are consistent. Confirm which format your HSM stores and exports, and check whether it can verify seed consistency. Done looks like a recorded format choice for each ML-DSA key, with a test that confirms the stored key produces the expected public key, so the ceremony record matches what the device holds.

How DeployOpen works on this

DeployOpen plans and implements the protection of post-quantum CA keys inside your own infrastructure, starting from a written scope that names the HSM model, firmware version and algorithms in use. The work covers key generation, backup, ceremonies and vendor questions, and the results are documented so your security and compliance teams can review them.

How we scope

  • Confirm the HSM model and firmware version against the algorithms your CA needs, such as ML-DSA, SLH-DSA or LMS.
  • Record which composite algorithm combinations are planned, since the EJBCA 9.6 documentation says each must be supported by both the HSM model and its firmware.
  • Agree the scope in writing before work starts, covering deliverables, timelines and the systems that are in and out of scope.

How we build

  • Configure HSM partitions and key generation so the chosen ML-DSA or hash-based keys are created in the module and not exported.
  • Test signing payload sizes early at production scale, because the EJBCA 9.6 documentation warns that large growing CRLs can strain HSMs with limited network transfer.
  • Set up backup and restore for each key type, checking whether the vendor supports it, since LMS keys on Luna HSMs cannot be copied and have no HA replication.

How we hand over

  • Document key ceremonies, backup procedures and access controls so an independent auditor can review them.
  • Record the vendor answers to the joint CISA guidance questions, Post Quantum Questions to Ask Your Vendors, alongside the configuration.
  • Deliver the configuration, test results and runbooks in a form your operations team can run without DeployOpen present.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Retest the protected key setup after HSM firmware upgrades, since algorithm support is vendor-specific and changes by version.
  • Keep the documentation current as NIST and IETF guidance is updated, including the status of NIST IR 8547.

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.