Enabling mutual TLS between Fabric peers, orderers and clients

Mutual TLS makes every Fabric peer, orderer and client prove its identity on the connection. This page covers what the settings do, how channel configuration supplies member root CAs, and what to plan before turning it on.

On this page

Why enabling mutual TLS on Fabric is a planning decision, not a single setting

In a permissioned Fabric network, members rely on MSP identities to sign transactions and endorse proposals, but the connections between peers, orderers and client applications are a separate trust boundary. Standard TLS only lets the calling side verify the server certificate. Mutual TLS adds client authentication, so the server also verifies the certificate presented by whoever connects, before any Fabric-level check runs. That matters when a network has several member organizations, when clients from one organization reach nodes operated by another, or when your security policy requires authentication of every network connection, not only of signed transactions. Teams that run a single organization inside a tightly controlled network may decide the extra step adds little, so the choice should be recorded as a decision rather than assumed.

Enabling it is not one switch. On peers, peer.tls.clientAuthRequired must be set to true and peer.tls.clientRootCAs.files must point to the issuing CA chains that the peer should accept. On orderers, General.TLS.ClientAuthRequired must be set to true. Those settings only work if every caller presents a certificate chaining to a trusted root, so you need to inventory every client, application, gateway, administrative tool and peer or orderer that connects, and confirm which CA issued each of them. Plan the rollout order so that a node does not start rejecting connections from a party whose certificates it does not yet trust. The same client authentication requirement also applies to the operations service, which exposes /healthz, /logspec, /version and metrics endpoints secured with mutual TLS client certificates. Your monitoring systems need certificates for that path too, so include them in the same inventory.

Confirm with your own team which certificate authorities issue TLS certificates for each organization and who controls their renewal and revocation. Those answers drive the design of the trust lists and the effort of later changes. Each rotation or new member then becomes a change to channel configuration and node settings, so plan that process before go-live. Review the Fabric documentation on securing communication with TLS alongside your own environment, and test the sequence in a non-production network first.

Which settings turn on mutual TLS for peers, orderers and clients

Mutual TLS in Fabric is switched on by a small set of settings spread across peer configuration, orderer configuration and channel configuration. Each one covers a different connection, so a network can look secured while one leg still accepts unauthenticated callers.

Peer client authentication switch

The peer.tls.clientAuthRequired key, set to true in the peer's core.yaml, makes the peer's TLS server demand a client certificate on every inbound connection. Without it, the peer accepts TLS connections from any client that completes a standard handshake. Check it on every peer, including those that only serve gateway or endorsement traffic, because a peer missing the setting is a gap no other setting closes.

TLS setup docs

Peer client root CA list

The peer.tls.clientRootCAs.files key lists the CA chains the peer trusts when it verifies a client certificate. Entries must cover the CAs that issue client identities for every organization allowed to connect. When a peer joins a channel, member root CAs from the config block are also added, so the list may need less manual upkeep than teams expect. Confirm which entries came from configuration and which came from the file list.

Orderer client authentication switch

The General.TLS.ClientAuthRequired key in the orderer's configuration turns on client certificate checks for the ordering service's gRPC endpoint. It protects broadcast and deliver traffic from applications and peers. Set it on every orderer node, then confirm that each client, including the admin tooling used with osnadmin, presents a certificate the orderer's trust configuration accepts.

Peer client certificate and key pair

By default a peer presents its TLS server certificate when it acts as a client. The peer.tls.clientCert.file and peer.tls.clientKey.file keys let you point the peer at a separate client pair, often issued by a different CA or with different extended key usage. Separating the pairs lets you rotate or revoke client identity without touching the server certificate, but it adds a second certificate to track and renew.

TLS setup docs

Operations service client certificates

The operations service on peers and orderers, which serves health, log level, version and metrics endpoints, is also secured with mutual TLS client certificates. Scrapers such as Prometheus and operators calling /logspec need certificates the service trusts. Teams often enable mutual TLS on the transaction path and forget that monitoring and administrative endpoints need the same treatment and a documented certificate owner.

Operations service docs

How channel configuration supplies member root CAs to a peer

When a peer joins a channel, it reads the root CA chains of the channel's members from the config block and adds them to its TLS root CAs. The channel configuration, not the peer's local files alone, decides which organizations' TLS certificates the peer will accept for that channel. The peer.tls.clientRootCAs.files list on each peer is still the place where local trust is set, so the two sources need to agree. Before you change anything, record which CA chains each peer currently trusts, using the peer's TLS configuration and the config block for each channel, so you have a baseline to compare against.

Adding a new organization is the case where this matters most. The new organization's root CA chain enters the channel through a config update that the existing members approve, and peers pick it up from the config block rather than from a file edit on every node. Expect a gap in which some peers have the new chain and others do not, and plan the order of rollout so that the new member's clients and peers can connect to the nodes that matter first. When rotating a CA, keep the old chain in the channel config until every certificate it issued has been replaced, then remove it. Removing it early can break connections from members that have not yet re-enrolled.

Keep the local clientRootCAs files consistent with what the channel says, and check this after every config update. Mismatches tend to appear when an operator updates one peer's file by hand and forgets the others, or when a CA is retired in the channel but still listed locally. We recommend a scripted comparison of local files against the config block as part of change control. The exact join and update behavior depends on the Fabric version in use, so confirm it against the Fabric TLS documentation and test the rotation sequence in a staging network before running it in production.

Which TLS client authentication option fits which situation

This table compares the TLS client authentication choices for Fabric peers and orderers, from reusing one certificate to separating client pairs and enforcing client authentication now or later. Read each row for the situation it fits and the trade-off it carries, then check the options against your own security and change-control requirements.

DecisionWhen it fitsTrade-off
Reuse the peer TLS certificate as its client certificateSingle-team test or early-stage networks where simplicity and fewer certificates to manage matter mostOne key serves both server and client roles, so a compromise or rotation affects both, and separating roles later means reissuing material
Use a separate client certificate and key pairProduction networks where server and client identities need separate issuance, rotation schedules or audit trailsMore certificates to issue, configure and renew, and peer.tls.clientCert.file and peer.tls.clientKey.file must be kept in step with each rotation
Maintain file-based client root CA lists (peer.tls.clientRootCAs.files)Clients or applications that connect from CAs outside the channel membership, or when you want explicit control over which CAs are trustedEvery CA change must be made on each peer's files, and a missed update can cause connection failures that are hard to trace
Rely on channel configuration to supply member root CAsNetworks where all trusted parties are channel members and config block updates are already governedTrust follows channel membership, so the peer's view depends on config block updates reaching it. Confirm how non-member clients are handled in your design
Enforce client authentication on peers nowEnvironments that already issue client certificates from a trusted CA and can test every client before enablingClients that have not been updated will be refused, so the rollout needs a test channel and a coordinated cutover
Defer client authentication on orderersNetworks still onboarding consenters or migrating ordering services where changes are underwayOrderer endpoints remain reachable without client certificates for longer, so compensating network controls should be confirmed
Enforce client authentication on orderers now (General.TLS.ClientAuthRequired)Networks where orderers are reachable across organizational or network boundaries and each consenter and client has a known CA chainConsenter and client certificates must be correct before the setting is enabled, and certificate renewal must be planned alongside it

How to enable mutual TLS on peers and orderers in sequence

This sequence turns on TLS client authentication on peers and orderers in an order that keeps members connected during the change, and it ends with proof that unauthenticated connections are refused. Run it on a non-production network first, then repeat it in production under your change process.

  1. Inventory TLS CA chains for every member

    Before any configuration changes, the network operator and each member organization confirm which TLS certificate authority issues the TLS certificates for their peers, orderers and client applications. Collect the full issuing chain for each one, including intermediate CAs, and record which organization owns it. Check that every chain validates against its root and that no certificate is near expiry. The step is done when you have a complete, signed-off list of root and intermediate chains per organization and a matching list of the channel members those chains must cover. Missing chains are the most common cause of failed joins later, so resolve gaps here rather than during the restart.

  2. Build the client root CA file for each peer

    Each peer operator populates peer.tls.clientRootCAs.files with the PEM files for the issuing CA chains that may present client certificates to that peer. Include every member organization's TLS chain as well as any additional trusted issuers you have approved. Keep the file list in version control so that changes are reviewed. When a peer joins a channel, Fabric reads member root CA chains from the config block and adds them to its TLS root CAs, so confirm that the chains in your files match what the channel configuration already contains. The step is done when each peer's configuration lists the expected files and a validation run shows that every file parses as a valid certificate chain.

  3. Enable client authentication on peers

    The peer operator sets peer.tls.clientAuthRequired to true in core.yaml on each peer, starting with a single peer in the test network. Peers keep their existing server certificate, and the peer uses the same certificate for TLS server and client by default unless you configure a separate pair in the next step. Apply the change through your configuration management process and restart that peer only. The step is done when the peer starts cleanly, its logs show no TLS handshake errors for known member clients, and a client presenting a certificate from an approved chain can complete a handshake.

  4. Enable client authentication on orderers

    The ordering service operator sets General.TLS.ClientAuthRequired to true in orderer.yaml on each orderer node, one node at a time so the cluster keeps a quorum. Confirm that every orderer's trusted root list covers the consenter and admin certificates used by peers and by the osnadmin tooling. Restart a single orderer, confirm it rejoins the Raft cluster, then continue through the remaining nodes. The step is done when all orderer nodes are restarted, the cluster reports a leader, and channel operations through the osnadmin path still succeed with approved client certificates.

  5. Configure separate client certificates where required

    If your security policy requires distinct identities for client connections, provision a separate client certificate and key for each peer and set peer.tls.clientCert.file and peer.tls.clientKey.file to point at them. Keep the separate pair under the same issuing chain already listed in the client root CA files, so authentication still succeeds. Do this only when you have a clear reason, since each extra pair adds certificate issuance, renewal and revocation work. The step is done when a peer's outbound connections present the client pair, the server still presents its server certificate, and both certificates appear in the expected chain during a test handshake.

  6. Restart and confirm refusal without a client certificate

    After the configuration changes are in place on all peers and orderers, run a negative test from a host that presents no client certificate. The connection to a peer's and an orderer's TLS port should be refused at the handshake. Then run a positive test with an approved client certificate and confirm it succeeds. Record both results with timestamps, the Fabric version, and the configuration commit reference. The step is done when the negative test fails as expected for every node, the positive test passes for every organization, and the results are stored with the change record.

  7. Test on a non-production network first

    Run the full sequence on a non-production network with the same Fabric version, the same channel membership and the same CA chains before touching production. Use the test run to find missing chains, certificate mismatches and restart ordering problems while rollback is cheap. Keep a copy of the pre-change configuration for each node so you can restore it quickly. Check the Fabric TLS documentation for the configuration keys that match your Fabric release before editing files. The step is done when the test network passes the negative and positive checks and the operations team has rehearsed the rollback steps.

How client and server certificates and channel root CAs fit together

The handshake starts when a client application or another node opens a TLS connection to a peer or orderer. The server presents its TLS certificate, and the client checks it against the server's TLS root CA list. The client then presents its client certificate, which the server checks against the clientRootCAs list in its own configuration. On a peer, the channel config block supplies member root CAs as the channel is joined, so the peer's trust set grows with the channel membership. Check that each side trusts the issuing chain, not just a leaf certificate, and that the client certificate is issued by a CA the server actually lists.

Client and server TLS identities, checked against root CA lists that the channel config supplies.

Security and operational risks to plan for before enforcing client auth

Turning on client authentication changes who can connect to a peer or orderer, so a mistake in trust material can stop joins, block traffic or lock out monitoring. The cards below cover the failure modes that tend to surface together, and each one has a check to run in a test network before the setting is enforced in production.

Root CA lists that omit a member

A peer trusts only the root CA chains it has been given and the channel members it reads from the config block when it joins. If a member's issuing CA is missing from peer.tls.clientRootCAs.files or from the channel configuration, that member's client certificate fails the handshake and joins or deliveries break. Before enforcement, compare every member's TLS root CA against the trust list on each peer and orderer, and confirm that intermediate chains are included.

Fabric TLS docs

Expired TLS certificates blocking connections

Once client authentication is required, an expired peer, orderer or client certificate stops that node from connecting at all, not just from presenting a valid identity. Build an inventory of every TLS certificate with its expiry date, owner and renewal path, and alert well before expiry. Confirm how renewal reloads certificates into running nodes, since a renewal that requires a restart can become an outage if it is not scheduled.

TLS keys file-based while MSP keys sit in HSMs

Fabric keeps TLS keys on disk even when peer and orderer MSP signing keys are placed in an HSM through PKCS#11. The TLS key is then the file an attacker most needs, so its storage, permissions and backups need the same attention as HSM-protected material. Plan separate handling for the two key types, and confirm that custom images and mounted volumes do not expose the TLS key outside the node.

Fabric HSM docs

Operations service requiring mutual TLS

The operations service on peers and orderers exposes /healthz, /logspec, /version and /metrics, and it is secured with mutual TLS client certificates. Monitoring agents, Kubernetes probes and Prometheus scrapers that lack a valid client certificate will report nodes as down even when they are healthy. Inventory every scraper and probe, issue them client certificates, and test health checks after enforcement.

Operations service docs

Access control over client key files

Separate client key pairs used by applications, administrators and tooling are only as strong as the file permissions and secret stores that hold them. Keys copied into shared volumes, CI variables or developer laptops widen who can impersonate a member. Restrict read access to the service account that needs each key, record who issued each certificate, and plan revocation and rotation for any key that leaves its intended host.

Questions teams ask before enabling mutual TLS on Fabric

How much effort does enabling mutual TLS on Fabric take?

The effort depends mostly on how many organizations, peers, orderers and clients are involved and how your CA layout is built today. Each peer and orderer needs its TLS client authentication setting changed, and each node needs the correct root CA chains for every channel member. Effort grows when several organizations run their own CAs, when many nodes are configured by hand, or when client certificates are reused across roles. Ask your team to inventory every node, its current TLS settings and every CA that issues TLS certificates before estimating. A written scope should list each node and each channel so the work can be counted rather than guessed.

Can our own team enable mutual TLS without a partner?

A team that already operates Fabric peers, orderers and a CA can usually make these changes itself, provided it has someone who understands the TLS configuration keys and the channel configuration. The harder parts are verifying that every node trusts the right roots and testing the change without breaking live traffic. Teams new to Fabric operations often benefit from an outside review of the plan or a partner-led test run on a copy of the network. Decide based on your staff's experience with Fabric configuration, your change windows and how many nodes you must update.

What do we need to provide before the work starts?

Plan to provide the following before any node is changed:

  • The CA chains that issue TLS certificates for each organization, including intermediate certificates.
  • A certificate inventory listing each peer, orderer and client, the CA that issued it and its expiry date.
  • Current core.yaml and orderer configuration for each node, plus the channel configuration blocks.
  • A test network that mirrors production topology, so changes can be rehearsed first.
  • A named owner in each member organization who can approve root CA changes.

Missing or outdated inventory is one of the most common sources of delay, so confirm it early.

How long does enabling mutual TLS take?

The duration depends on your environment, and no fixed figure applies across networks. The main variables are the number of nodes, the number of member organizations that must agree on root CA changes, how many environments (test, staging, production) you run, and whether changes can be made in rolling windows. Ask any provider to break the timeline into inventory, test rehearsal, rollout by node and post-change verification. Confirm the timing with your own change management process and your Fabric version, since configuration keys and procedures must match the release you run.

Do we need separate client certificates for each role?

By default a peer uses the same certificate for TLS server and client roles. A separate client pair is optional and set with peer.tls.clientCert.file and peer.tls.clientKey.file. Separate certificates make it easier to track which application or service is calling a peer and to rotate credentials without touching the server identity. The trade-off is more certificates to issue, renew and revoke. Review your current reuse pattern during the inventory step and decide before rollout, because changing it later means another round of node updates.

What breaks if the root CA list is wrong?

A wrong root CA list usually causes TLS handshake failures, so the affected peer, orderer or client cannot connect to the nodes it needs. Peers read member root CA chains from the channel config block when they join a channel and add them to their TLS root CAs, so a missing or stale chain can block gossip, deliver or endpoint traffic. Enabling clientAuthRequired before every needed root is trusted is the most common cause of an outage. Mitigate the risk by testing on a copy of the network, staging the change node by node and keeping the previous configuration available for rollback.

Does the TLS change also affect the MSP and HSM setup?

Mutual TLS uses TLS keys, which Fabric requires to stay file-based even when MSP signing keys sit in an HSM. Enabling client authentication does not move TLS keys into a PKCS#11 device, so the TLS change and the HSM change can be scheduled separately. Confirm the key location for each node before rollout, because a node that expects an HSM-backed TLS key will not behave the same way as one that reads files from disk. Your team should document where each key lives so the TLS and HSM work do not conflict.

Which Fabric version should we confirm before changing TLS settings?

Confirm the exact Fabric release your peers and orderers run, because TLS configuration keys and channel configuration behavior should be checked against the documentation for that release. Fabric v2.5 is the long-term support line for production users, and v3.x receives patch releases in parallel. Plan the TLS change against the version you intend to run for the next period, and check the official upgrade guidance if you plan to upgrade binaries in the same window. Mixing an upgrade with a TLS change makes troubleshooting harder, so most teams schedule them separately.

What to confirm in your environment and Fabric version before you start

Start by confirming which Fabric release line your peers and orderers run. The v2.5 LTS line and the v3.x line both receive patch releases, but the TLS settings you need can differ between them, so read the TLS documentation for the exact version you deploy rather than the latest page. Check the peer and orderer binary versions on every node, not only the version in your deployment plan, because a mixed-version network can behave differently during a rolling change. If you are still on Kafka ordering or the v1.x lifecycle, that is a migration to finish first, not a TLS setting to tune.

Next, confirm how your certificate authority issues TLS certificates. Find out whether the CA is Fabric CA or an enterprise CA, which root and intermediate chains it signs with, and whether it issues TLS certificates with the client authentication extended key usage that mutual TLS requires. Confirm who holds the signing keys and how revocation is published, since the root CA chains you list in peer and orderer configuration must match what the CA actually issues. Also confirm whether any TLS key is held in an HSM. Fabric keeps TLS keys file-based even when MSP keys move to an HSM, so a custom image or HSM-backed component changes how you package and mount certificates but not where TLS keys live.

Finally, map every client that connects to a peer. Applications built on the Fabric Gateway client API, administrative tools, monitoring agents and operations service callers each need a client certificate that the peer trusts, and a single shared identity across them makes revocation and auditing harder. Confirm whether each application can present its own client key pair and where that key is stored. Record these answers in a table that lists the component, version, CA, key location and owner, then review it against the TLS documentation for your release before you change any configuration.

How DeployOpen scopes and delivers mutual TLS work on Fabric networks

DeployOpen plans, implements and documents mutual TLS for Fabric peers, orderers and client applications inside the client's own infrastructure. Each engagement starts from a written scope that names every node, channel, client application and certificate authority in the network, so the TLS changes can be reviewed before any configuration is touched.

How we scope

  • We inventory every peer, orderer, client application and CA chain that must authenticate over TLS.
  • The written scope lists which config keys change on each node and which member root CAs are added to channel configuration.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We enable client authentication on peers and orderers in a non-production network first and record each change.
  • We separate client certificates from server certificates where the client's identity policy requires it, and test both paths.
  • We verify rejected connections from unknown roots, expired certificates and missing client certificates before sign-off.

How we hand over

  • You receive a configuration record per node, a root CA inventory and the steps used to add a new member root CA.
  • Runbooks cover certificate rotation, the expected behavior when a root CA is removed and how to confirm the operations endpoints still answer.
  • Your team walks through the test evidence and the rollback steps before the change moves to production.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, including reviews after Fabric upgrades.
  • We can retest TLS settings after new members join a channel or when certificate authorities are rebuilt.
  • Confirm the support boundary, response expectations and retest cadence in the written agreement before work begins.

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.