Why replacing cryptogen identities with Fabric CA is a pre-production requirement
A team has run its pilot Fabric network for months using identities generated by cryptogen, and now the business wants it live. Cryptogen should never generate production identities, and the Fabric peer planning guidance says so directly. Moving off it is not a matter of swapping a few certificate files. It touches the MSP definitions of every organization, the channel configuration that trusts those MSPs, and the identity of every peer, orderer and admin user in the network.
The reason is that cryptogen is a test tool. It produces a set of certificates from a single bootstrap step, with no registration of identities, no enrollment workflow, no renewal and no revocation path that operators run against a live CA. A production network needs those controls. Fabric CA provides them: it registers identities, issues enrollment certificates, handles renewal and revocation and publishes certificate revocation lists. Before go-live, the team should decide which CA topology it will run, where the root certificates will sit, and who holds the enrollment credentials. Those decisions drive every later step, so they belong in the plan before any node is reissued.
Effort depends on how many organizations, peers, orderers and channels the pilot already contains, and on how many of those already reference cryptogen material in their channel configuration. No duration is supplied for this work, so the reader should ask the implementation partner for an estimate tied to those counts and to the CA design. DeployOpen delivers this work as a fixed-scope engagement, with scope, deliverables and timeline agreed in writing and the quote following from that scope. Ask for a written inventory of MSPs, channels and nodes before accepting a quote.
What maps cleanly from cryptogen to Fabric CA and what does not
This table compares the identity artifacts cryptogen generates with their Fabric CA equivalents, and flags what the change leaves untouched. Read it as a checklist: rows marked as moving need reissued material and channel configuration updates, while rows marked as unchanged still need verification after the switch.
| Artifact | cryptogen approach | Fabric CA approach |
|---|---|---|
| Organization MSP | Static folder generated from crypto-config.yaml with a self-signed root | Organization CA root certificate is copied into the channel configuration to verify that organization's identities |
| Peer and orderer identities | Enrollment and TLS files generated once by the tool and copied to nodes | Each node enrolls against a registered identity and receives a renewable enrollment certificate |
| Admin and client users | Generated user folders with long-lived keys | Registered users enroll with the CA, and admin roles are assigned through registration attributes |
| TLS material | Generated TLS certificates placed beside node files | TLS enrollment issues node TLS certificates from the CA, which must be updated in node and channel settings |
| Renewal and revocation | No renewal workflow and no revocation list from the tool | CA handles renewal, revocation and certificate revocation list generation |
| Key storage for MSP keys | Keys stored as files on disk | Keys can move to an HSM only through PKCS#11 with custom images, since prebuilt images lack PKCS#11 support |
| Chaincode and ledger data | Created under the test network identities | Not re-keyed by this change, so confirm that existing chaincode definitions and ledger state still validate after the switch |
Documented tools and paths for issuing identities from Fabric CA
Fabric CA is the documented way to issue the enrollment and TLS identities that replace cryptogen output. The cards below cover the server, the client, the database backend, and the checks that confirm each reissued node is trusted. There is no supported one-command converter from cryptogen material, so the work is re-enrollment followed by channel configuration updates.
Fabric CA server and user registry
The Fabric CA server registers identities, issues enrollment certificates, handles renewal and revocation, and generates certificate revocation lists. Its user registry can be the internal registry or LDAP, which decides where your staff and node identities are managed. Confirm the registry choice, the CA root certificate you will publish, and who holds the bootstrap administrator credentials before any node is reissued.
Fabric CA user guideRegistration and enrollment with the Fabric CA client
The Fabric CA client registers each peer, orderer and admin identity, then enrolls it to obtain signing and TLS certificates. Each registration carries attributes and affiliation that define what the identity may do, so plan the identity list before you run any enrollment. Record which MSP directory each enrolled identity lands in, because that path is what you later copy into channel configuration.
SQLite default and shared database backends
SQLite is the default Fabric CA datastore and suits a single test or pilot server. For production, PostgreSQL or MySQL lets several CA servers share one database behind a load balancer such as HAProxy. Choosing the backend before issuance matters because moving identity records later adds a migration step to an already changing trust configuration.
Operations service checks after reissue
Peers and orderers expose a /healthz endpoint, /logspec for log levels, /version, and a Prometheus /metrics endpoint or StatsD push, all protected by mutual TLS client certificates. After a node is re-enrolled and restarted, use these endpoints to confirm it is running the expected version and reachable with its new identity. Confirm the client certificates you use for these checks are themselves CA-issued.
No one-command converter from cryptogen
No supported tool converts cryptogen output into CA-issued identities. The practical path is to stand up the CA, re-enroll every peer, orderer and admin identity, and then update the channel configuration so each organization's CA root certificate and TLS roots reflect the new trust chain. Treat this as a planned change with a rollback point, and confirm the exact sequence against the certificate management guide for your Fabric release.
Certificate management guideHow the cryptogen-to-Fabric-CA cutover runs in order
The sequence moves each organization from cryptogen test material to CA-issued identities in a controlled order, so the channel trust chain stays valid at every stage and the network can be verified before cryptogen material is retired.
Inventory every organization, MSP and node identity
List each member organization, its MSP ID, every peer, orderer and client identity, and the certificates and keys each one currently uses, including the channel configurations that reference them. The platform team and each member organization's administrator own this inventory. It is complete when every identity has an owner, a host, and a row showing which channels trust its organization root certificate. Keep this list as the reference for every later step.
Stand up Fabric CA per organization
Deploy a Fabric CA server for each member organization, using a database backend your operations team can back up and restore. Confirm the CA's TLS settings, administrator enrollment and where the root key is stored, since the root key governs every identity that organization issues later. The step is done when each CA answers enrollment requests and its root certificate is recorded in your inventory. Fabric CA supports SQLite, PostgreSQL and MySQL, so confirm the choice with your database standards before deployment.
Register identities in each CA
Using each organization's CA administrator, register the identities the network needs: peer, orderer, admin and application users, each with its role attributes and affiliation. Enroll the identities to confirm the CA issues certificates that chain to the new root. Check the registry against the inventory from the first step, so no identity is missing before reissuance begins. Fabric CA can also connect to LDAP as the user registry if your directory is the source of truth.
Back up ledgers and MSP material
Before changing any channel configuration, back up each peer and orderer ledger, the existing MSP directories, the TLS material and the current channel configuration blocks. Store the backups outside the nodes being changed and test that at least one can be restored in a non-production environment. The step closes when the backup inventory matches the nodes in your list, and each backup has a recorded checksum and a named owner.
Update channel configuration with the new CA roots
For each organization, add the new CA root certificate to the MSP definition in the channel configuration, using the channel configuration update process. Run the update one organization at a time within a controlled change window, with each organization's administrators signing the update. Keep the cryptogen root in the configuration until every node has been reissued, so existing identities still validate during the transition. The step is done when the channel config block shows both roots for each organization and a peer can still read and endorse on the channel.
Reissue peer and orderer identities
Generate new enrollment and TLS identities for each peer and orderer from its organization's CA, install them on the node, and restart the node in a rolling order that keeps enough peers and ordering nodes available for the channel. Only reissue one organization's nodes in a window, then move to the next. The step closes when each node reports its new identity and endorses or orders transactions normally. Coordinate these restarts with your ordering service operations plan and confirm the constraints for your consensus type first.
Verify with the operations service
Check every reissued node through the operations service: the /healthz endpoint for health, /version for the running release, and the /metrics endpoint or StatsD push for activity. Secure these calls with mutual TLS using the new client certificates. Confirm that test transactions endorse and commit on every channel, and that the parallel test network mirror has matched the production behavior before the next organization proceeds. The verification record should show each node's health status and the test results for each channel.
Decommission cryptogen material
After every organization has been cut over and verified, remove the cryptogen root certificates from channel configuration with a final update, then retire the cryptogen crypto directories on each host, keeping the archived backup for the agreed retention period. Record the final channel config blocks, the list of retired files and the sign-off from each organization. Cryptogen should never be used to generate identities in production, so do not reuse its output for new nodes.
How CA certificate changes reach channel configuration
An organization's CA root certificate is copied into the channel configuration, where it is used to verify identities that belong to that organization. When a network moves from cryptogen test material to a CA it runs, or when an organization changes or renews its CA certificate, the new root must be placed in the organization's MSP definition in the channel configuration before any identity issued by the new CA can be trusted. The change goes through the normal config update flow: fetch the current config block, compute the update, collect signatures from the required organizations under the channel's endorsement policy, and submit it to the ordering service.
- Fetch and inspect the current config: Pull the latest config block and confirm the existing MSP root and intermediate certificates before preparing any change.
- Stage the new root alongside the old one: Plan the update so trust in the current identities is not lost before reissued identities are in use.
- Collect the required approvals: Each organization whose signature the channel policy requires must review and sign the same update.
- Verify after commit: Fetch the new config block and check that the MSP reflects the intended certificates.
- Record the transaction: Keep the config update, signatures and resulting block for the change record.
Before you begin, confirm the exact commands for your Fabric version against the certificate management guide, since the CLI steps differ between releases.
Node operators reissue enrollment certificates and TLS material for peers and orderers from the organization's Fabric CA, then replace the cryptogen files the nodes were started with. The node's MSP directory must hold keys and certificates chained to the root that the channel now trusts, and a node presenting an identity the channel does not recognize will be rejected even if its files look valid. Sequence matters: the channel configuration should accept the new root before nodes switch to identities issued from it, and nodes should restart in a controlled order so the network keeps quorum.
- Enroll the new identities: Register each peer and orderer in Fabric CA, then enroll to produce the MSP signing material and TLS certificates.
- Replace the MSP directories: Swap the cryptogen output for the CA-issued files in each node's local MSP path.
- Restart in order: Restart orderers one at a time, then peers, checking health after each step.
- Check the operations endpoint: Confirm the /healthz check reports healthy and the node logs show successful channel joins.
- Keep the old material until verified: Do not delete cryptogen files until every node has been validated against the updated channel.
Treat the file layout and enrollment flags as version-specific and confirm them against your Fabric and Fabric CA releases before running them in any environment.
Security reviewers need proof that the identities trusted by the channel come from a controlled CA and that the change followed an approved process. The certificate management guide describes the procedure for an organization whose CA certificate is expiring or that wants to use a different CA certificate, and a review should test that the operators followed each step rather than trust a summary. The evidence should show what was trusted before, what is trusted now, who approved the change and whether any cryptogen material is still in use.
- Config update history: Retain the before and after channel configuration, the signatures and the block numbers where each change committed.
- CA records: Keep the CA certificate chain, the enrollment and registration records for each node and the revocation list state.
- Cryptogen removal: Show that no node or client still uses cryptogen-generated keys or the test CA.
- Access and approval records: Record which people held the admin identities used for the change and who approved each organization's signature.
- Retention and review: Store the evidence where the compliance team can review it, and set a date to confirm the CA certificate lifecycle is tracked.
Ask your independent auditor which of these records they expect, since DeployOpen prepares evidence but does not issue audit opinions.
How identities flow from Fabric CA into channel trust
The flow starts with the Fabric CA server, which issues enrollment certificates to each organization's peers, orderers and admins. Each organization's CA root certificate is then copied into the channel configuration as part of its MSP definition, and that root is what nodes use to verify one another. Changing an organization's CA certificate follows the same path: the new root must be placed into the channel configuration through an update that channel members approve, and only then do nodes reissued from the new CA validate. Check that every node's certificate chains to the root recorded in the channel before you retire the cryptogen material.
Fabric CA issues node identities, and channel members approve the root that verifies them.
What drives the effort of replacing cryptogen identities
The effort of moving a cryptogen network to CA-issued identities depends less on the certificate tooling than on how many organizations, nodes and channels must change in lockstep. The cards below cover the factors that shape the work, and what to check in your environment before scoping. No duration or price is supplied here; the quote follows from the written scope.
Organizations and CA servers
Each organization needs its own CA root trusted in every channel that includes it, so the number of organizations sets how many CA servers, enrollment paths and root certificates must be stood up. Confirm which organizations already run a CA, which will share one, and who holds the enrollment credentials for each. Shared CA topology decisions usually take the longest to settle, so start them first.
Fabric CA user guidePeers and orderers to reissue
Every peer and orderer currently running on cryptogen material needs new enrollment and TLS identities, and each node's MSP directory must be swapped without losing its ledger. The count of nodes, and whether each one runs in a container, a VM or Kubernetes, sets how many restarts and verification steps the window contains. Inventory every node and its MSP path before planning the order of changes.
- Lost nodes tolerated in five-node Raft
- 2
Channels needing configuration updates
Each channel stores the organization CA root certificates in its configuration, so every channel that includes a changed organization needs its own update transaction approved by the required organizations. Channel count multiplies the number of config updates, signatures and validation checks. List each channel, its members and its endorsement policy before the first update.
HSM protection for MSP keys
If MSP signing keys must sit in an HSM, the work adds PKCS#11 configuration, a custom peer and orderer image because the prebuilt Docker images do not include PKCS#11, and testing against the HSM vendor's client libraries. TLS keys stay file-based in every case. Confirm early whether your security policy requires an HSM for signing keys and who manages the HSM partitions.
Approval windows and availability
Channel configuration changes need signatures from the required organizations, and some of them may be in different time zones or change-control cycles. Ordering and peer restarts also reduce capacity during rolling changes. Agree on approval turnaround, an acceptable maintenance window and a rollback point with each business owner before the work starts.
State of existing backups
A usable backup of ledgers, MSP directories, channel configuration blocks and the cryptogen material is the rollback path if a config update or node restart fails. If backups are missing, stale or unrestorable, the first task is a verified backup and a test restore, which adds effort before any identity changes. Ask for the backup inventory and the date of the last successful restore test.
Questions teams ask before replacing cryptogen identities
Can our team replace cryptogen identities without outside help?
Yes, many teams with Fabric operators can, provided they have someone who understands MSP structure, channel configuration and the orderer and peer restart sequence. The Fabric documentation is explicit that cryptogen should never generate identities for production, so the work is a planned migration rather than a file swap. The harder parts are usually coordination: every organization must stand up a CA, reissue identities for each node and update channel configuration with the other members' signatures. Ask whether your team has done a channel configuration update and a rolling node restart on a live network before, and whether there is a second person who can review each step.
What cost components should we expect in this work?
The cost has three parts: planning and design of the CA topology and identity model, the hands-on migration work on each organization's infrastructure, and any recurring operation of the CAs afterward. Labor is the main one-time component, and it scales with the number of organizations, peers, orderers and channels. Recurring costs come from keeping CAs patched, backed up and monitored, and from certificate renewal. Infrastructure for CA servers and database backends, such as SQLite for small tests or PostgreSQL and MySQL for shared deployments, is usually on your side. Ask any provider for a quote that lists each organization, node type, channel and environment separately, and that states what is one-time and what recurs.
How does the timeline depend on the scope of the network?
Duration follows the number of organizations that must coordinate, how many channels carry the old certificate authorities, and how many change windows are available. A network with one organization and one channel is much simpler than a consortium where every member must approve a configuration update and restart nodes. Timing also depends on whether test and staging networks run the same procedure first. We do not publish durations; the timeline should come from the written scope, which should list the organizations, nodes, channels and change windows in order. Ask for the sequence of approvals and restarts, because those often set the critical path.
What do we need to provide for the engagement?
The work needs access, decisions and people. Expect to provide administrative access to the infrastructure where each peer, orderer and CA runs, a named owner from each member organization, and approval for the change windows in which orderers and peers are restarted. Each organization should confirm who signs channel configuration updates and who can approve a rollback. You should also provide backups of the ledger and MSP material before any change, and confirm which production environments are in scope. Ask the consortium to agree on the identity model and naming before work starts, so the written scope does not need to change partway through.
Does existing ledger data survive the change to CA-issued identities?
The ledger data itself is not tied to the identity files, but the channel configuration is, because it holds the root certificate of each organization's CA and uses it to verify identities. Replacing the CA certificate in channel configuration is therefore a configuration update that every organization must approve, and the existing blocks remain as they are. Confirm this against your Fabric version and the certificate management guide before you proceed, and take a verified backup of the ledger and MSP directories first. Test the procedure on a non-production network with a copy of your ledger, and check that peers and orderers start cleanly and that transactions still endorse and commit.
Will Fabric CA produce the audit evidence we need?
Fabric CA issues the enrollment certificates, handles renewal and revocation, and generates certificate revocation lists, so it provides the operational records behind your identity model. It does not produce audit reports or certifications. Independent auditors and certification bodies issue those. DeployOpen prepares the systems, controls and evidence that assessors ask for, including CA configuration, enrollment records, revocation procedures and change records for channel configuration, but it does not issue audit reports, attestations or certifications. Ask your auditor which evidence they expect, and agree on that list before the migration starts.
What is the risk if we skip this migration before production?
Cryptogen output is designed for test networks, so a production network built on it keeps identity material that was never issued under a CA process you control. That makes certificate expiry, revocation and reissuance harder to manage and harder to explain to an auditor. Illustrative example: if a single node key is compromised, a team on cryptogen material may have no clean revocation path, while a team on Fabric CA can revoke and reissue. The migration is easier before go-live because fewer business transactions depend on the identities being changed.
What usually goes wrong when cryptogen identities are replaced
Replacing cryptogen identities touches keys, certificates, channel configuration and the CA itself, so a mistake in one area stalls the others. The cards below cover the failures that most often turn a planned reissue into an outage or a rollback, with a prevention step for each.
Unbacked MSP material
Teams often regenerate or overwrite the existing MSP directories and TLS material before the new CA-issued identities are verified, so the old keys are gone when a rollback is needed. Before any change, copy every current MSP and TLS directory for peers, orderers and admin users to protected storage and confirm the copies can be read. Record which keys belong to which node so restores are not guesswork.
Stalled channel configuration updates
Adding a new organization root certificate to a channel requires a configuration update that each organization must sign. If one administrator is unavailable or uses an outdated copy of the channel config, the update is rejected or sits in review. Agree the signing order, the channel config block to be used and the time window with every organization before the update is drafted.
Certificate management guideNodes reissued under the wrong root
A node enrolled against the wrong CA, or with an intermediate that does not chain to the root copied into the channel, will fail identity checks even though its certificate looks valid. Compare each node's certificate chain against the organization CA root in the channel configuration before restarting it. Keep a checklist per organization that maps each MSP ID to its CA and root file.
Overlapping or expired certificates
During the window, some nodes run on cryptogen certificates while others run on CA-issued ones, and the two sets can expire on different dates. Check validity dates for every certificate in the old and new sets, and make sure the channel trusts both roots until the last node has moved. Set a calendar reminder for the earliest expiry so renewal is not missed during the cutover.
CA databases without a backup plan
The default SQLite database holds registered identities and issued certificates, and losing it means losing the ability to renew or revoke them. Fabric CA can use PostgreSQL or MySQL, and several CA servers can share one database behind a load balancer. Confirm which backend the CA will use before issuing identities, schedule database backups, and test a restore on a separate host.
Fabric CA user's guideHSM needs discovered late
Fabric can keep MSP keys in an HSM through PKCS#11, but the prebuilt Docker images do not include PKCS#11 support, and TLS keys must stay file-based. If an HSM requirement appears after identities are issued, the keys may need to be reissued and custom images built under time pressure. Decide on HSM use and the image build pipeline during planning, and confirm the HSM vendor's PKCS#11 library is supported with your chosen images.
Fabric HSM docsHow DeployOpen scopes and delivers this migration
DeployOpen is a Chainscore Labs company that plans, implements, hardens and documents self-hosted open-source platforms inside the client's own infrastructure, including Hyperledger Fabric networks. For a cryptogen-to-Fabric-CA migration, the work is agreed as a fixed-scope written agreement before any change touches a live channel. The scope, deliverables and timeline are set out in that document, and the quote follows from it. Nothing is priced on an estimate of DeployOpen's own effort, so the reader should ask for the written scope and check that each item below is named in it.
The scope normally follows the sequence this migration requires. It starts with an identity inventory: every peer, orderer, admin and client identity, the MSP directory each one sits in, and the organization root certificates currently embedded in channel configuration. It then covers Fabric CA deployment for each organization, including the database backend, registration of identities, and the TLS and MSP enrollment paths. Channel configuration updates and identity reissue follow, with verification against each node's operations endpoints and a handover of runbooks and evidence. The reader should confirm who holds the signing keys during each configuration update, how the rollback point is recorded, and which node restarts are included in the fixed price.
Ongoing support, upgrades and continuous testing are available as retainers after handover, which suits networks that plan to renew certificates or move onto a later Fabric line. Costs recur under a retainer, while the migration itself is one-time work. Your team's time in the window is a cost too, since channel administrators from every member organization must sign each change. Ask each candidate partner to state in writing which tasks fall to the client, which fall to the provider, and how they will be verified before the network is declared ready for production.

