Hyperledger Fabric key management for NIS2 Article 21(2)(h)

A Fabric network operator under NIS2 needs a written cryptography policy and key management procedures it can show a regulator. This page maps Article 21(2)(h) and Implementing Regulation 2024/2690 to Fabric capabilities, configuration, evidence and gaps.

On this page

How Hyperledger Fabric key management supports a NIS2 cryptography policy

If you are an essential or important entity running Fabric peers, orderers and certificate authorities, Article 21(2)(h) of NIS2 expects you to have documented policies on cryptography and, where appropriate, encryption. Implementing Regulation (EU) 2024/2690 turns that into specific expectations: a cryptography policy that sets approved algorithms, cipher strength and usage practices (point 9.2(b)), and key management that covers generation, certificates, distribution, storage, changes, compromise, revocation, recovery, backup, destruction, logging and activation dates (point 9.2(c)). Fabric gives you concrete controls for much of this. Peer and orderer MSP signing keys can be held in a PKCS#11 HSM, Fabric CA handles enrollment, renewal and revocation and publishes certificate revocation lists, and Fabric v3.0 added Ed25519 alongside ECDSA for MSP signing. TLS keys stay file-based, so your policy has to cover them separately. NIS2 creates no certificate of compliance, and DeployOpen prepares systems and evidence without issuing an audit report or attestation.

Several parts of the requirement remain your policy and process work, and no Fabric setting supplies them. You must choose the approved algorithm set and justify it against the classification of each asset, decide which HSM and custody model fits your risk, define who approves a key compromise response and how fast revocation must happen, and set the review interval that point 9.3 requires, taking the state of the art into account. Confirm with your HSM vendor and your Fabric version which PKCS#11 integration path you will use, since the prebuilt Docker images are not built with PKCS#11 and custom images are required. Also confirm which algorithms your chosen Fabric line supports for each identity type before writing them into the policy. Cryptographic agility matters here: the Fabric upgrade steps of backing up ledgers and MSPs, upgrading orderers and peers in rolling fashion, and then updating channel capability levels are the change path you will need to document when you move to a new algorithm.

The evidence set should be built from the start. Keep an inventory of every MSP, TLS and CA key with its algorithm, storage location and activation and deactivation dates, retain Fabric CA and CRL records, and log operations service output such as /healthz, /version and Prometheus metrics secured with mutual TLS. Reviewers will ask how you tested a revocation and a recovery from backup, so schedule those drills and record them. DeployOpen can help you configure these controls, assemble the evidence pack and test the setup, but the policy must be owned, approved and reviewed by your organization. Before relying on a specific control mapping, check the current status of the NIS2 amendments proposed in COM(2026) 13, which the Commission describes as a proposal still awaiting Parliament and Council approval.

Mapping NIS2 cryptography requirements to Fabric configuration

This table maps each cryptography requirement in NIS2 Article 21(2)(h) and Implementing Regulation 2024/2690 to the Fabric capability, the configuration that supports it and the party who should own it. Read each row as a question your policy must answer and a setting your evidence must show. The main takeaway is that Fabric supplies the mechanisms, but the policy, asset classification and review cadence remain the operator's responsibility.

RequirementFabric capability and configurationOwner
Article 21(2)(h): policies on cryptography and, where appropriate, encryptionWritten cryptography policy covering MSP signing, TLS, HSM use and CA operations, mapped to each Fabric componentCISO with platform engineering
Point 9.2(a): type, strength and quality by asset classificationPeer and orderer MSP keys in ECDSA or Ed25519; TLS keys file-based; ledger data at rest controlled by the operator's storage encryptionSecurity architecture, with data owners classifying channels
Point 9.2(b): approved algorithms and cryptographic agilityRecord approved algorithms per MSP; Fabric v3.0 adds Ed25519 alongside ECDSA; confirm the chosen Fabric line and custom image support before changing key typesSecurity architecture and platform engineering
Point 9.2(c): key generation and storageMSP signing keys in an HSM through PKCS#11 using a custom image, since prebuilt images lack PKCS#11 supportPlatform engineering with HSM administrator
Point 9.2(c): certificates, distribution and changingFabric CA enrollment and renewal; MSP and channel updates to rotate trusted roots; record each change in the change processNetwork operator and change manager
Point 9.2(c): compromise and revocationFabric CA revocation and CRL generation; remove revoked identities from channel policies and confirm peers and orderers reject themIdentity or PKI owner with security operations
Point 9.2(c): backup, recovery and destructionBack up MSPs and CA databases with the ledger; confirm HSM key backup and recovery procedures with the HSM vendor; document key destructionPlatform engineering and backup owner
Point 9.2(c): logging and activation datesOperations service /logspec and Prometheus /metrics secured by mutual TLS; CA issuance and revocation logs retainedSecurity operations
Point 9.3: review at planned intervalsSchedule policy review against current cryptography guidance, and re-test algorithm and HSM settings after each Fabric upgradeCISO, reviewed by the governance board

Choosing ECDSA or Ed25519 for MSP signing in the policy

The policy must name which signing algorithms are approved for Fabric MSP keys and at what strength, and this section is where the operator records that choice. Fabric v3.0 added Ed25519 alongside ECDSA for MSP signing, so a network on the 3.x line can select either algorithm, while a network on the v2.5 LTS line works with ECDSA only. Under Implementing Regulation 2024/2690, the policy sets the type and strength of cryptographic measures according to asset classification, so the entry for each MSP and identity class should state the algorithm, the key size or curve, the classes of asset it protects and the reason it was selected.

Record the trade-offs that will drive the decision. The first is compatibility with existing identities: certificates and keys already issued under ECDSA must keep working, and switching algorithms mid-life means re-enrolling identities and reissuing MSP material, which is an operational change in its own right. The second is client and tooling support: confirm that the Fabric CA version, the HSM and PKCS#11 integration, the SDKs and Fabric Gateway clients, and any external tooling your organization uses handle Ed25519 for every identity type you plan to issue, on both the v2.5 LTS and v3.x lines. Patch releases for both lines are published in parallel, so the target version matters as much as the algorithm.

Test before changing anything. Build the chosen algorithm into a non-production network that mirrors your MSP layout, HSM configuration and client applications, then run enrollment, renewal, revocation and a transaction flow end to end. Confirm the final choice against the specific Fabric version you run and against your organization's own approved algorithm list, since an internal standard may already restrict which curves may be used. Record the test results and the approval in the policy so the decision can be reviewed at the planned interval the regulation requires.

Which key lifecycle stages Fabric CA and HSMs cover

Fabric splits key handling between Fabric CA, which issues, renews and revokes identity certificates, and the HSM or file store that holds the private keys. Each card below names one lifecycle stage, what the platform does at that stage, and what the operator must document to support a Article 21(2)(h) cryptography policy and its key management requirements.

Generation and HSM storage for MSP keys

Peer and orderer MSP signing keys can be kept in an HSM through PKCS#11, so the private key never leaves the device. The prebuilt Docker images are not built with PKCS#11 support, so the operator must plan and maintain a custom image. Document which key types go into the HSM, the HSM model and firmware, the PKCS#11 library version, and who holds the partition credentials.

Fabric HSM docs

File-based TLS key storage

TLS keys must remain file-based and cannot be placed in the HSM under the supported Fabric configuration. Protection therefore depends on file permissions, volume encryption and restricted access on the host or Kubernetes secret. Write down where each TLS key file lives, who can read it, how it is mounted, and how the operator confirms the file was not copied outside the approved location.

Renewal and revocation through Fabric CA

Fabric CA handles certificate renewal and revocation for enrolled identities and generates certificate revocation lists. Revocation takes effect only once the revoked certificate is reflected in the MSP and channel configuration that peers and orderers use. Document the renewal trigger, the revocation reason codes you will use, who may request revocation, and how and when the updated CRL is published to channel members.

Backup of CA databases and MSPs

Fabric CA stores identity and certificate state in SQLite, PostgreSQL or MySQL, and MSP material lives in the file system of each node. Losing either can prevent renewal or revocation from working. Record the backup schedule, the storage location, the encryption applied, the restore owner, and the test date for each restore. The Fabric upgrade guide also requires a ledger and MSP backup before upgrading binaries.

Activation, expiry and deactivation dates

Certificates carry validity periods, and the policy must set activation and deactivation dates for each key class under the Implementing Regulation's key management list. Fabric does not provide a central register of these dates across all MSPs, so the operator must maintain one. Record each issuance date, expiry date, renewal lead time and the owner who is notified before expiry.

Logging and key event evidence

Fabric CA and the peer and orderer operations service generate records that show enrollment, renewal and revocation activity, and the operations service exposes health and metrics endpoints secured with mutual TLS. Decide which events are retained, for how long, and where they are stored. Confirm the retention period against your own policy and the log sources you enable, since these records are the evidence assessors will ask for.

HSM-backed MSP keys versus file-based TLS keys

Fabric does not treat every key the same way. Peer and orderer MSP keys, which sign transactions and identify members, can be placed in a hardware security module through the PKCS#11 standard. TLS keys, which secure connections between nodes and clients, must remain file-based in the current Fabric design. A cryptography policy that ignores this split will either promise HSM protection that the platform cannot give for TLS, or leave signing keys on disk without a recorded reason. The policy should name each asset class, the protection it gets, and the reason.

  • MSP signing keys: eligible for HSM storage through PKCS#11, which supports a stronger custody model for identity and signing material.
  • TLS keys: must stay file-based, so the policy should set file permissions, storage location and rotation rules for them instead.
  • Asset classification: the policy should map each class to the classification levels used in your organization, as the Implementing Regulation expects protection to follow asset classification.
  • Documented exceptions: record where a key class cannot meet the stated protection and who accepted the residual risk.
  • Review trigger: revisit the split when Fabric changes its HSM support or when your classification scheme changes.

Confirm the current TLS and MSP HSM behavior against the Fabric HSM documentation for the exact release line you run before writing it into the policy.

Where keys sit across peers, orderers, CAs and the HSM

The diagram starts at the Fabric CA, which issues enrollment certificates from its database behind HAProxy inside the entity's infrastructure. Peer and orderer MSP signing keys move into the HSM through PKCS#11, while TLS keys stay as files on disk, so the two key classes need separate controls. The operations service on peers and orderers is reached only with mutual TLS client certificates, and the policy and evidence store records what each boundary holds. Check that every boundary is owned and logged by the entity, and that the HSM custody of MSP keys matches the cryptography policy.

Key classes and their boundaries across the Fabric components the entity runs.

Evidence a Fabric operator can produce for a NIS2 review

A supervisor reviewing a Fabric network under NIS2 will ask for documents and records that show how cryptography is governed and kept current. The cards below are inputs a supervisor can examine, not an attestation, since NIS2 creates no certificate of compliance and the review is carried out by the national competent authority.

Cryptography policy document

This is the approved policy that sets the algorithms, key lengths, protocols and usage rules for Fabric MSP signing, TLS and data at rest, grouped by asset classification. Keep it tied to the network's own components, such as ECDSA or Ed25519 for MSP signing where the network runs Fabric v3.0 or later. Review it on a planned interval and have the accountable security owner sign each version, with the approval date and the list of changes recorded.

Implementing Regulation
2024/2690

Key inventory and algorithm register

This register lists every peer, orderer, CA and client identity key, its algorithm, its storage location and its activation and deactivation dates. It should show which keys sit in an HSM and which are file-based TLS keys, since TLS keys must remain file-based. Update it whenever an organization joins, a certificate is renewed or a node is rebuilt, and have the platform owner sign the monthly export.

Fabric HSM docs

CA configuration and revocation records

Keep the Fabric CA configuration, database backend, enrollment and registration settings, and the revocation history with the certificate revocation lists the CA generates. A supervisor will check whether compromised or departed identities were revoked, how quickly, and whether the record supports recovery. Store these records under change control and have the CA administrator and the security owner each sign off on revocation batches.

Fabric CA user guide

HSM configuration and access records

Document the PKCS#11 library version, the HSM partitions used for peer and orderer MSP keys, the custom image build that includes PKCS#11 support, and who holds HSM credentials. Access records should show who authenticated to the HSM and when keys were generated or destroyed. The HSM administrator and the platform owner should sign the configuration each time the HSM or image changes.

Operations service logs and metrics

The operations service exposes health, log level, version and Prometheus metrics on peers and orderers, secured with mutual TLS client certificates. Retain the logs and metric exports that show certificate expiry warnings, failed TLS handshakes and changes to log levels. Confirm retention periods with your own logging team, and have the operations lead review a sample each month and sign the review record.

Operations service docs

Review minutes and corrective actions

Minutes from the periodic cryptography policy review show that the state of the art was checked, that algorithm and key length decisions were revisited, and that findings led to dated actions. Record the Fabric release lines in use, such as the 3.x line and the 2.5 LTS line, and any upgrade decisions they triggered. The chair of the review board and the accountable executive should sign each set of minutes.

Sequence for documenting and configuring Fabric cryptography

This sequence moves from classifying the assets a Fabric network holds to a documented cryptography policy, a configured certificate authority, and a review cycle with retained evidence. Each step ends with an artifact that a compliance or security team can inspect.

  1. Classify network assets and set strength by class

    The network owner lists every Fabric asset that holds or protects data: peer and orderer MSP keys, TLS keys, CA signing keys, CA databases, ledger snapshots and backups, and client application credentials. Each asset is assigned a classification level, and the level sets the required strength and protection for data at rest and in transit. Security and compliance leads approve the table. The step is complete when every asset has a class, a protection rule and a named owner in the policy draft.

  2. Choose and document approved algorithms

    The security architect selects the signature and key algorithms that the MSPs and TLS configuration will use, such as ECDSA or Ed25519 for MSP signing, and records the approved protocols, cipher strengths and usage rules for each class. Confirm with your Fabric version which algorithms each release supports before approving the list, since Ed25519 for MSP signing is tied to the v3.0 line. The step is complete when the approved list is signed off and includes a note on how the choice would be revisited if algorithms change.

  3. Select the HSM and plan custom images

    The platform team chooses an HSM that supports PKCS#11 for peer and orderer MSP keys and confirms the vendor's library and access model with the Fabric HSM documentation. TLS keys stay file-based, so the policy must say how those files are protected. The prebuilt Fabric Docker images are not built with PKCS#11, so the team plans and tests a custom image before production. The step is complete when the HSM, the key labels and the image build are documented and tested in a non-production network.

  4. Configure Fabric CA with shared database and HA

    The PKI engineer sets up the Fabric CA servers with a shared database backend (PostgreSQL or MySQL instead of the default SQLite), places the CA servers behind a load balancer such as HAProxy, and defines the registry, including LDAP if used. Enrollment and revocation settings follow the approved algorithm list. The step is complete when a test enrollment, renewal and revocation succeed through the load balancer and the CA database is included in the backup plan.

  5. Define revocation and renewal procedures

    The operations team writes the procedures for certificate renewal before expiry, revocation after suspected compromise or staff change, regeneration of certificate revocation lists, and key changes on peers and orderers. Each procedure names the trigger, the approver, the steps in the CA and MSP, and how channel configurations are updated to reflect the change. The step is complete when a tabletop test has walked through a compromised identity and the resulting CRL and MSP updates are recorded.

  6. Enable and secure the operations service

    The platform engineer turns on the operations service on each peer and orderer, restricts access with mutual TLS client certificates, and confirms the /healthz, /logspec, /version and /metrics endpoints respond only to authorized clients. Logging and metrics collection are routed to the monitoring system the organization uses. The step is complete when an unauthorized client is refused and an authorized scrape or health check succeeds, with the configuration captured in version control.

  7. Schedule policy review and retain evidence

    The compliance lead sets a review schedule for the cryptography policy, with a planned interval recorded in the document, and assigns an owner to check changes in the state of the art and Fabric release notes. Evidence such as the asset register, the approved algorithm list, HSM configuration records, CA settings, revocation test results and operations service configuration is stored with dates and version references. The step is complete when the first review is dated, the evidence index is filed, and a named reviewer has accepted the package.

Keeping the cryptography policy current through Fabric upgrades

A cryptography policy for Fabric stays accurate only if it is reviewed each time the platform moves, because upgrades change which signing algorithms, consensus types and certificate workflows are available. Point 9.2(b) of Implementing Regulation 2024/2690 asks for approved protocols and algorithms following a cryptographic agility approach where appropriate, and point 9.3 requires review at planned intervals in light of the state of the art. For a Fabric operator, the practical translation is a written upgrade path that names which release line the network is on, which patch releases are being applied, and which algorithm settings each release makes available. The Fabric docs list Ed25519 alongside ECDSA for MSP signing from v3.0, so a policy that approves only ECDSA today needs a dated review decision on whether Ed25519 is adopted, not a silent change. Fabric v2.5 remains the long-term support line for production users, and the v3.1.5 and v2.5.16 patch releases were both published on June 18, 2026, so the policy should record which line the network runs and who checks the release notes for each patch.

The version move itself is where policy drift tends to happen. Fabric v3.0 removed Solo and Kafka consensus and the v1.x legacy chaincode lifecycle, so an operator still on Kafka ordering must migrate to Raft and move all channels to the v2.x lifecycle before upgrading. The Fabric upgrade guide sets four steps: back up the ledger and MSPs, upgrade orderer binaries in a rolling fashion, upgrade peer binaries in a rolling fashion, then update application channel capability levels. Each step touches key material. Backups of MSPs must be taken under the same protection rules as the live keys, and the rolling restarts must not leave PKCS#11 signing paths or file-based TLS keys in an unreviewed state. Ask your Fabric vendor or integrator to confirm, for your version pair, whether any capability level change alters signature or key handling, and record that answer against the policy's algorithm and key management entries.

Treat each upgrade as a policy trigger with its own evidence: a dated entry showing the release reviewed, the algorithms and key stores confirmed, the backup of MSPs verified, and the capability level change approved. This is the record that a competent authority or auditor will look for when asking whether the policy was reviewed at planned intervals. Keep the review interval in the policy itself, and add an out-of-cycle review when Fabric publishes a release that changes signing or TLS behavior. Where a custom HSM image is in use, rebuilding it for each new Fabric release should be a named task, because the prebuilt Docker images are not built with PKCS#11.

Questions buyers ask about Fabric key management for NIS2

Does NIS2 require a certificate for our Fabric network?

No. NIS2 creates no certificate of compliance. National competent authorities oversee compliance through inspections, security audits, security scans, information requests and administrative fines under Articles 32 to 34. Article 21(2)(h) requires policies and procedures on the use of cryptography and, where appropriate, encryption. For Fabric, that means a written cryptography policy and evidence that your peer, orderer and CA keys are handled as the policy says. Any certification you hold for another standard is a separate matter, and an independent auditor or certification body issues those, not DeployOpen.

What drives the cost and effort of a Fabric cryptography policy and HSM setup?

Cost follows the scope you agree in writing. The main drivers are the number of peers, orderers and CAs, how many organizations and channels hold keys, whether you already have an HSM and a PKCS#11 integration, and how many systems the policy must cover. Custom Fabric images are needed for PKCS#11 because the prebuilt Docker images are not built with it, so that build and its testing add effort. Policy writing is largely one-time, while HSM operation, certificate renewal, reviews and retests recur. Ask any provider for a quote that separates these items and states who performs each one.

How long does this work take, and what makes it take longer?

Duration depends on the agreed scope, so no fixed timeline applies across environments. Regulation 2024/2690 asks for a policy reviewed at planned intervals, and the policy must cover data at rest and in transit by asset classification. Longer work usually comes from an incomplete asset inventory, an HSM procurement or access approval that is still pending, custom image builds, change approvals for upgrades, and a large number of MSPs to inventory. Ask for a written timeline that lists each dependency and the party responsible for it.

What must our organization provide before the work starts?

Plan to provide the following:

  • A current inventory of Fabric peers, orderers, CAs, MSPs and TLS endpoints, with the systems that depend on them
  • Named owners for asset classification, cryptography decisions and change approval
  • Network access and administrative accounts for the environments in scope
  • HSM access, including partition details, PKCS#11 library versions and approval to test in a non-production environment
  • Existing certificate, backup and monitoring procedures so the policy can reference them

Confirm each item with your own teams before you sign a scope.

Can our internal team write the policy and run HSM-backed keys alone?

Often yes, if the team knows Fabric's MSP and TLS model, has PKCS#11 experience and can keep the policy under review. Fabric requires that TLS keys stay file-based while peer and orderer MSP keys can sit in an HSM, so the design needs to be explicit. Ask whether your team has capacity for the initial build, testing, evidence collection and periodic review. A partner can cover part of that work under a fixed scope, and ongoing support is available as a retainer.

Does DeployOpen's work replace an auditor or a national authority review?

No. DeployOpen plans, implements, documents and tests the systems and controls, and prepares evidence for compliance assessments. It does not issue audit reports, attestations or certifications, and it does not act for a national competent authority. Independent auditors and certification bodies perform assessments, and national authorities handle supervision. Use the work to make your own review faster and more accurate, and confirm with your legal or compliance team how your national transposition law applies to your entity.

Which Fabric version and algorithms should the policy name?

The policy should name the algorithms your network uses and the Fabric line you run. Fabric v3.0 added Ed25519 alongside ECDSA for MSP signing, and Fabric v2.5 remains the long-term support release for production users. Fabric v3.1.5 and v2.5.16 were both published on June 18, 2026. Confirm with your engineers which algorithms each MSP and TLS certificate uses, and document how you will review them as the state of the art changes, since Regulation 2024/2690 asks for that review.

How DeployOpen scopes and delivers Fabric cryptography evidence

DeployOpen approaches Hyperledger Fabric key management for NIS2 Article 21(2)(h) as a fixed-scope piece of work that ends in a cryptography policy and the operating evidence behind it. The work runs inside the client's own infrastructure, and DeployOpen prepares the systems, controls and records that the client's compliance and security teams review. DeployOpen does not issue compliance certificates or attestations.

How we scope

  • Agree in writing which Fabric peers, orderers, CAs and MSPs fall inside the cryptography policy scope.
  • Inventory every key and certificate type in use, including MSP signing keys, TLS keys and enrollment certificates.
  • Confirm the signing algorithms in use, such as ECDSA or Ed25519, and record the decision basis for each.

How we build

  • Configure HSM-backed MSP key storage through PKCS#11 where the chosen HSM model is supported, and keep TLS keys file-based.
  • Build custom peer and orderer images where PKCS#11 is required, since the prebuilt Docker images do not include it.
  • Set up Fabric CA certificate issuance, renewal and revocation with the backend database and high availability design agreed in scope.

How we hand over

  • Deliver a cryptography policy mapped to the Article 21(2)(h) and Implementing Regulation 2024/2690 key management topics.
  • Document key generation, storage, rotation, compromise, revocation, backup, destruction and activation dates as runbooks.
  • Provide evidence packs with configuration files, CRL samples, logging settings and the review schedule the client's auditors can inspect.

How we support

  • Support ongoing reviews of the cryptography policy at planned intervals, reflecting changes in the state of the art.
  • Plan Fabric upgrades so key and certificate changes are tested on the 2.5 LTS or 3.x line before production.
  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial engagement.

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.