Revoking Hyperledger Fabric identities and publishing CRLs

Removing access for a compromised or departed Fabric identity means revoking it with Fabric CA, generating a CRL, and getting that list into every MSP and channel configuration that relies on it.

On this page

Why revoking a Hyperledger Fabric identity takes more than one command

When a member's administrator leaves or a private key is exposed, access has to end now, and in Hyperledger Fabric that means more than revoking the identity in Fabric CA. Fabric CA can revoke identities and certificates and generate a certificate revocation list (CRL), but the revocation only takes effect on a peer or orderer once that CRL reaches the MSP that node trusts. Fabric CA can also provide Idemix certificate revocation information (CRI) for organizations that issue anonymous Idemix credentials, which follows the same rule: the data has to be published to where it is checked.

The gap between the CA and the network is where most incidents linger. The CRL is a file produced by the CA, so someone must carry it into the MSP folders of every organization that verifies the revoked identity, and into the channel configuration where the MSP definition lives. Until that update is committed to each relevant channel and the nodes pick it up, the departed administrator's certificate may still be accepted. Confirm with your own environment which peers, orderers and client applications read each MSP, and who has the authority to approve a channel configuration update quickly enough for an urgent removal.

Before the incident, decide three things: who can trigger a revocation and on whose authority, which channels and MSPs must receive the updated CRL, and how you will prove to auditors that the revoked identity stopped working. Also check whether the revoked identity holds admin rights that let it approve further configuration changes, since those rights can be used before the CRL is distributed. The Fabric CA User's Guide is the starting point for the CA side, but the distribution, testing and evidence steps are yours to design and rehearse.

How a revocation moves from Fabric CA into channel configuration

The admin revokes an identity in the Fabric CA server, which can generate a certificate revocation list (CRL). That CRL is not trusted until it is placed in the revoked-certificates location of the organization's MSP, which peers and orderers read. Propagating it to other organizations is a channel configuration update, so each member must review and approve the change. Check that every peer and orderer picks up the updated MSP, and confirm the exact CRL file location and update procedure for your Fabric version before relying on it.

Revocation flow from the CA host through member MSPs into channel configuration.

Revocation options and when each fits

This table compares the four revocation routes Fabric CA supports: revoking an identity, revoking a single certificate, revoking with a reason code and regenerating the CRL, and Idemix revocation information. Read each row for when it fits, what it affects and what it leaves in place, because an option that removes one credential does not always stop every other way the same party can act.

OptionWhen it fitsWhat it affectsWhat it does not cover
Revoke an identityA person or node has left the organization or should lose all access issued by that CA identityCertificates issued to the identity can be revoked as part of the same action, according to the Fabric CA guideCredentials issued outside the CA, and MSP or channel changes that still list the organization or admin
Revoke a certificate by serial numberOne specific certificate is compromised while the identity itself remains trustedOnly the named certificate is marked revoked in the CA databaseOther certificates the same identity holds, and any copies of the key that were already used elsewhere
Revoke with a reason code and regenerate the CRLYou need a recorded reason and a current revocation list that MSPs and channel configuration can consumeThe CRL is produced so it can be distributed to MSPs and added to channel configuration by the network operatorsPeers and orderers that have not received the updated CRL, and any trust decisions that rely on an older list
Idemix revocation information (CRI)The organization issues anonymous Idemix credentials and must withdraw a credential's ability to be usedIdemix credential revocation information that the CA can provide for verifiers to checkStandard X.509 certificates and the CRL path, which need their own revocation handling
Confirm with your teamBefore choosing a route, confirm which identity types you issue and how your MSPs fetch revocation listsCheck your Fabric CA version and the exact commands in your environment against the Fabric CA guideAny step not written in the guide should be confirmed with the Fabric CA maintainers or your own test network first

How to revoke an identity and publish its CRL

This sequence removes access for a compromised or departed Fabric identity by revoking its certificates, publishing a CRL, and distributing that CRL to every MSP and channel that must reject the identity. Each step closes with a check that confirms the change took effect.

  1. Confirm the identity and its certificates

    The organization's CA administrator lists the identity in the Fabric CA registry and records its affiliation, type, and every certificate issued to it, including sign and TLS certificates where the identity has them. Write down the serial numbers from the enrollment certificates you hold so you can match them later. Confirm the affiliation path exactly, because the revoke command filters on it and a mismatch can revoke the wrong set of certificates or none. The step is done when you have a written list of identity name, affiliation, and certificate serials, reviewed by a second administrator.

  2. Revoke the identity with fabric-ca-client

    Run fabric-ca-client revoke against the issuing CA with the identity name, the affiliation, and a reason code from the RFC 5280 set that your incident process uses. Use the admin enrollment for that CA, and where the CA is clustered, point the client at the load balancer so the revocation lands in the shared database. Choose whether to revoke all certificates for the identity or a single serial, and record which option you used. The step is done when the command reports success and the CA database shows the certificates as revoked. Confirm the exact flags in the Fabric CA User's Guide for your CA version.

  3. Generate the certificate revocation list

    Call the CA's CRL generation through the same client, then save the output as the organization's CRL file. The CRL covers the revoked serials and is signed by the CA, so the file is only valid for the CA that issued the certificates. Keep the previous CRL file so you can compare the two. The step is done when the new CRL file opens, its signature and issuer match the organization CA, and the revoked serial from step two appears in its list of entries.

  4. Copy the CRL into every MSP crls folder

    Place the new CRL in the crls folder of the organization's MSP on every peer and orderer that the organization runs, replacing the previous file. Peers and orderers read the CRL from their local MSP, so a node you miss keeps accepting the revoked identity. Restart or reload the node if your deployment requires it to pick up the file, and confirm the file path and permissions on each host. The step is done when a checksum of the CRL on each node matches the file you generated, and each node's logs show no errors when loading the MSP.

  5. Update channel configuration for other members

    Other organizations on each channel trust the revoking organization through the MSP definition in the channel configuration, so the updated CRL must be placed there through a config update. Build the config update with the channel administration tooling, have the required organization admins sign it under your channel policy, and submit it to the ordering service. Confirm the CRL reference in the organization's MSP in the new channel config block before you consider the update complete. The step is done when the config block commits and the channel config fetched from a peer contains the updated CRL. Check the channel and chaincode administration guidance for your policy requirements.

  6. Test that the revoked certificate is rejected

    Attempt a fresh enrollment with the revoked identity, which should fail, and attempt a peer connection or a signed proposal using the revoked certificate from a test client, which should be rejected by the peer. Run the test against a peer in another organization so you confirm that channel members, not only your own nodes, enforce the revocation. Record the error messages and the peer logs as evidence. The step is done when both attempts are refused and the logs show the rejection tied to the revoked serial.

  7. Record the revocation and review the outcome

    Store the revocation record, the reason code, the CRL file hash, the channel config transaction ID, and the test results in your change or incident system. Confirm with the owner of each affected channel that the update has been applied and that no node was missed. Check whether any remaining identities, such as the admin certificates used for config updates, need rotation as a follow-up. The step is done when a named owner has signed off the record and the follow-up actions are assigned.

Getting the CRL into MSPs and channel configuration

A CRL only removes access on a Fabric network once it reaches the MSP that peers and orderers use to validate identities. In a Fabric network, each organization's MSP folder holds the material that nodes check certificates against, and the revocation list is kept in the MSP's crls folder. Confirm the exact folder layout for your Fabric version and for each node type, because peers, orderers and client applications may hold MSP copies in different locations. The reader's first task is to inventory every local MSP copy that a revoked identity could be validated against, including the copies inside containers and on Kubernetes volumes.

The channel is where the organization MSP is recorded for everyone on it. Each channel's configuration block carries the organization definitions, and those definitions include the MSP. Updating a channel's view of a revoked certificate therefore requires a channel configuration update, not just a file change on one node. Fabric's channel config update process fetches the current config, computes a delta, collects signatures and submits the update to the ordering service. Confirm with your version's channel administration documentation which policy governs the update, since the signatures needed depend on the channel's modification policy and on the organization that holds the revoked identity.

Propagation is verified node by node, not assumed from the config update succeeding. After the update commits, fetch the channel configuration from each peer and orderer and compare the organization MSP section against the expected CRL content. Then test that a certificate listed in the CRL is rejected by a peer on the channel, using a non-production identity where possible. Record the block number and the time of each check so the revocation can be shown in a later review. Keep the operations service on each node in view while you check, since the docs describe /healthz and /logspec for troubleshooting failed updates.

Idemix revocation information for anonymous credentials

Most Fabric networks revoke access with standard X.509 certificates and CRLs. Idemix is a separate identity path, so it needs its own revocation information and its own checks. The cards below cover what Idemix CRI is, when it applies, how it differs from a CRL in daily operation, and what to verify before relying on it.

What Idemix CRI is

Fabric CA can provide certificate revocation information (CRI) for Idemix, the anonymous credential scheme used with some Fabric MSPs. Idemix CRI is not the same artifact as the X.509 CRL that Fabric CA generates for standard enrollment certificates. Treat it as a second revocation channel that your team must produce, distribute and verify on its own. The Fabric CA User's Guide is the place to confirm the exact commands and output format for your version.

Fabric CA guide

When a network uses Idemix

Idemix identities are used when members need to prove membership or attributes without revealing a stable identifier on every transaction. Before designing around it, confirm which organizations, applications and chaincode flows actually depend on Idemix in your network. If every identity is standard X.509, you may not need a separate CRI process at all. Document the decision so auditors and future operators know why one channel exists and the other does not.

How CRI differs from a CRL

A CRL lists revoked X.509 serial numbers that MSPs and peers check during validation. Idemix CRI covers revocation for anonymous credentials, so revoking a member affects a different set of identities and a different verification path. Operators should not assume that a CRL update removes an Idemix credential. Test each revocation type separately, and record which command revokes which identity type in your runbook.

How CRI is refreshed

Revocation information only works when it is current. Plan who regenerates the Idemix CRI, how often, and what triggers a regeneration, such as a departure, a key compromise or a scheduled rotation. Decide where the updated information is published, who can read it and how the update reaches every peer and client that verifies Idemix proofs. Confirm the refresh workflow against your Fabric CA version, since behavior and command options can change between releases.

Client and peer support

Confirm that your Fabric version, your client SDKs and your MSP configuration all handle Idemix revocation information as you expect. A revocation that the CA issues but a client or peer does not check leaves access open. Build a test in which a revoked Idemix identity is rejected by the network, and repeat it after each upgrade of the CA, peers or client libraries. Record the result as evidence for the revocation control.

Revoking Fabric identities: common questions

How much effort does revoking a Fabric identity take?

Revoking one identity in Fabric CA is a short operation, but the full job is larger because the revocation has to reach every MSP and channel that trusts the issuing CA. The effort is driven by how many channels reference that organization, how many peers and orderers must pick up the new CRL, whether the identity held admin rights that appear in channel policies, and whether the revocation is part of a wider incident. Count the channels, the nodes and the change approvals before you estimate. Fabric CA can revoke identities and certificates and generate a certificate revocation list (CRL), so the CA step is the smallest part of the work. Ask any partner to break its quote into CA work, channel configuration updates and node verification.

Can our internal team revoke Fabric identities without a partner?

Yes, if the team already administers Fabric CA, has the channel admin rights needed for configuration updates, and has practiced the process on a test network. The steps are documented in the Fabric CA user guide, which covers revoking identities and certificates and generating CRLs. The risk sits in the channel configuration step, where a mistake can block other administrative changes. A partner is worth considering when the team has not performed a channel configuration update before, when the revocation must happen under time pressure, or when the team needs an independent record of the change for audit. DeployOpen can plan and document the process, run it with your team, or test it against a non-production network first.

What does a revocation need from our team?

A revocation needs four things from your side: administrative access to the Fabric CA server that issued the identity, channel admin identities for every affected channel, a named approver for the change, and a change window that fits your operating rules. Confirm which CA server holds the issuing key and whether you have its admin credentials before the work starts. Confirm which organization admins can sign channel configuration updates under your current policies, because a revocation that removes an admin may need the remaining admins to sign. Confirm the change window with the teams that run peers and orderers, since they must restart or refresh their MSP material to pick up the CRL.

How long does it take for a revocation to propagate?

Propagation ends when every peer and orderer that validates the affected identity has the updated CRL in its MSP or channel configuration. The time is set by how quickly the CRL is written into each channel configuration, how many nodes hold a copy, and how each organization distributes its MSP updates. Until a node has the new CRL, it may still accept the revoked identity, so the gap is a security exposure. The Fabric CA user guide describes the revocation and CRL features but does not give a propagation time, so confirm the timing in your own environment by testing a revoked identity against each node type after the change. Record the time each node was verified.

What should a departed-user process include?

A departed-user process should cover the identity, not only the login. Include the steps below:

  • Identify every Fabric identity the person held, including enrollment certificates, TLS identities and any admin certificate used for channel changes.
  • Revoke those identities in Fabric CA, generate the CRL and record the serial numbers and reason codes.
  • Update the MSP and channel configuration so every channel trusts the new CRL, and record who signed each update.
  • Verify that a revoked identity is rejected on peers and orderers.
  • Rotate any shared secrets or credentials the person could read, and remove them from the admin group in your identity provider.

Assign an owner for each step and keep the evidence in your change system. Treat the process as a runbook and test it before you need it.

Does revocation also cover Idemix identities?

Fabric CA can also provide Idemix certificate revocation information (CRI), so Idemix identities need their own revocation check rather than relying on the X.509 CRL alone. Confirm with your Fabric version and MSP configuration how the CRI is generated, distributed and consumed by your peers before you rely on it. If your network uses Idemix for anonymous or unlinkable credentials, add a separate step to the departed-user process and test it against a revoked Idemix identity. Ask whoever builds the MSP configuration to show the CRI in the channel configuration and confirm that the revoked credential fails.

What evidence should we keep for an audit of a revocation?

Keep a record that shows who revoked which identity, when, why, which CRL version was published, which channels were updated, who signed those updates and when each node confirmed the change. Include the CA revocation entries, the CRL files, the channel configuration update records and your test results from a revoked identity. This evidence helps your assessors check that access was removed, but it does not make the revocation compliant by itself. Independent auditors and certification bodies decide whether controls meet a framework. DeployOpen can prepare the systems and evidence for that assessment but does not issue audit reports or certifications.

What a revocation engagement covers

A scoped revocation and CRL review starts with an inventory, because nobody can revoke safely what they have not listed. The engagement records every enrolled identity in each organization's Fabric CA, including admin, peer, orderer, client and user identities, along with the MSP folders and channel configurations that reference them. The inventory also maps which identities are the only administrators of a channel or organization, since revoking one of them can leave a channel unable to accept configuration updates. Expect the output to be a table the client's team can check line by line, not a summary.

The revocation procedure is then written for the specific identities in scope. It covers revoking through Fabric CA with the correct reason for each case, generating the certificate revocation list, and placing the CRL in the MSP crls folder of each affected organization. Channel configuration changes follow the procedure for updating the channel and collecting signatures from the required organizations, so the engagement records who must sign, in what order, and how a failed signature is handled. Idemix revocation information is scoped separately if the network uses Idemix identities. Confirm with your team whether any Idemix credentials are in use before the review starts.

Verification and handoff close the engagement. DeployOpen tests that a revoked identity is refused by peers and orderers on each channel, that remaining identities still transact, and that the CRL is distributed to every node that reads it. The deliverables are a written runbook, a record of the test results and a list of follow-up actions for your own team. Engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before work starts. DeployOpen does not publish a price list, and a quote follows from that written scope. When you request one, ask which identities, channels and organizations are covered, who performs the signing steps, and whether the runbook is included.

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.