Mutual TLS between Orthanc peers

Mutual TLS lets two Orthanc servers prove their identity to each other with client certificates, so only known peers can exchange studies. This page covers when to use it, the configuration choices, the build sequence and what to confirm in your Orthanc version.

On this page

When mutual TLS between Orthanc peers is worth the effort

A hospital imaging network that runs two Orthanc servers, one at a satellite clinic and one in a central archive, needs each server to prove its identity to the other before studies move. Mutual TLS adds that machine-to-machine proof on top of HTTPS, which only authenticates the server, and on top of user credentials, which identify people. Teams need it when automated exchange between servers must be verified in both directions. Without it, a shared password copied into two configuration files is the only check, and that password is hard to rotate and easy to leak. Before you commit to the work, confirm that your operations team can issue, renew and revoke certificates for every peer, because the trust chain is only as well managed as its issuance process.

The project's orthanc-setup-samples repository includes samples that use client certificates to authenticate Orthanc instances to each other, and samples where nginx handles server-side TLS for external web services. Use them as a reference for the moving parts: which server presents a certificate, which side verifies it, and where the trusted authority is referenced. Before you adapt them, decide who issues the certificates, how long they live, and how a compromised peer certificate is revoked and replaced. Confirm with your security team whether the sample certificate material is meant for production or only for testing, and check the settings the sample uses against the release of Orthanc you run.

Mutual TLS decides only that a peer is a known machine. It does not decide which user may open a patient list, which studies a peer may retrieve, or whether a viewer session may see a given study. Those are per-user and per-study access decisions, and they belong to Orthanc's own authentication settings and to any authorization service you run alongside it. A peer that passes the certificate check still needs its permitted actions defined, and a trusted certificate at the proxy does not grant study-level rights inside Orthanc. Plan these as separate controls and test each one, because a valid certificate paired with a study the peer should not see must still be refused. Check every refusal path with the same care as the successful transfer.

How client certificates flow between two Orthanc peers

This illustrative flow shows Orthanc A presenting its client certificate to a reverse proxy placed in front of Orthanc B. The proxy checks the certificate chain against the issuing CA it trusts, and only a verified request is forwarded to the Orthanc B process. The three trust boundaries are the site holding Orthanc A, the reverse proxy and the Orthanc process itself, so a failed check never reaches the Orthanc API. Treat the hop order as a sketch until you confirm each hop against the client certificate samples in the orthanc-setup-samples repository.

Illustrative client certificate hops between two Orthanc peers, with trust boundaries marked.

Mutual TLS options for Orthanc peers and when each fits

This table compares the layers where client certificates can be checked for Orthanc peers: a reverse proxy, Orthanc's own REST API TLS settings and DICOM TLS. Read each row for what the layer authenticates, who manages the certificates and the main trade-off. The main takeaway is that DICOM TLS protects DICOM exchanges while the other layers cover HTTP, so most sites need to decide each layer separately and confirm exact configuration keys in the Orthanc Book.

LayerWhat it authenticatesWho manages the certificatesMain trade-off
Reverse proxy (nginx) client certificatesThe client certificate presented to the proxy, checked before any request reaches Orthanc's REST APIYour infrastructure team issues and rotates the certificates and the proxy's trust storeFits HTTP peer and browser access, but the proxy must stay aligned with Orthanc's user settings
Orthanc REST API TLS settingsEncrypted HTTPS connections to the REST API, with any client certificate checks confirmed in the Orthanc BookOperators place certificate and key files on the Orthanc host and manage renewalsFewest components, but the project samples use nginx, so the built-in path has less reference material
DICOM TLS between sitesEncrypted DICOM associations between Orthanc and peer sites, available from version 1.9.0Both sites manage matching certificates and trust settings for each DICOM peerCovers DICOM traffic that HTTP layers never see, but the other device must also support DICOM TLS
Browser access with client certificatesThe user's or workstation's certificate, checked at the proxy before the viewer loadsYour PKI team issues user or device certificates and handles revocationStrong per-device control, but certificate distribution and lost-device handling add support work
Peer-to-peer HTTP transfersOrthanc-to-Orthanc REST calls, authenticated at the proxy and by any Orthanc-side credentials you configureEach site's team manages its own certificates and its list of peersTwo checks must agree, so test both sides after every certificate change

Setting up mutual TLS between two Orthanc peers

This sequence sets up mutual TLS between two Orthanc peers so that each side accepts peer calls only from a holder of a certificate issued by the agreed certificate authority. It moves from naming and issuance through proxy enforcement and Orthanc configuration to tests that confirm an accepted peer and a rejected peer both behave as intended. The result is a peer path that the team can review and repeat.

  1. Agree the certificate authority and peer naming

    Before any certificate is issued, decide which certificate authority signs peer certificates, who holds its private key, and how each peer is named. Use names that match the hostnames clients will connect to, because they go into the certificate subject and subject alternative names. Record the decisions in a short sheet that both teams sign off. Done when the CA certificate, the naming list for each peer and the owner of each key are written down and approved.

  2. Issue server and client certificates for each peer

    Issue one server certificate for the proxy endpoint of each peer and one client certificate for each peer that calls out to others, all signed by the agreed CA. Set the server certificate names from the naming sheet, and mark each certificate for the use it serves, so a client certificate is not accepted as a server identity by accident. Keep private keys on the host that will use them and out of shared folders. Check each certificate against the CA certificate before distribution, and confirm the names and expiry dates match the naming sheet. Done when every certificate verifies against the CA and matches its entry on the sheet.

  3. Require and verify client certificates at the proxy

    On the proxy that fronts each Orthanc peer, enable TLS with the server certificate and require a client certificate on the peer path only, verifying it against the CA you agreed. Scope the rule to the peer path so that browser and viewer routes keep their own access controls. Use the orthanc-setup-samples repository as the reference for how nginx handles server-side TLS and client certificate checks, and confirm the directive names against your proxy version. Done when a handshake without a client certificate is refused at the proxy and a handshake with a valid certificate reaches Orthanc.

  4. Configure each Orthanc peer with its certificate material

    Give each Orthanc instance its own client certificate and private key, plus the CA certificate it needs to verify the remote proxy, and point each peer entry at the proxy address that carries the mutual TLS path. Take the exact setting names from the samples that match your Orthanc version and check them against the Orthanc Book before you apply them. Store the key file so that only the Orthanc service account can read it. Restart the service and check the startup log for certificate load errors. Done when each instance starts cleanly and its peer list shows the other peer with the expected address.

  5. Test an accepted peer exchange in both directions

    From peer A, send a REST request through the mutual TLS path to peer B using the valid client certificate. Use an endpoint that your Orthanc version exposes for this check, and confirm it in the version documentation before the test. Confirm that the request succeeds and that peer B's logs record the call from the expected peer identity. Repeat the test from peer B to peer A so that each direction is covered. Done when both directions succeed and the logs on both sides match the test record you kept for this step.

  6. Test a rejected peer and record the results

    Repeat the request from a client that presents no certificate, then from one signed by a different CA, and then from one with an expired certificate. Expect the proxy to refuse the handshake in each case, before any request reaches Orthanc. Check the proxy error log for the rejections, and confirm that Orthanc's own logs show no accepted request from those callers. Keep the accepted and rejected results together in one test record so that a reviewer can see that both paths were exercised. Done when every rejected case fails at the handshake and the record lists each case with its result.

Issuing and rotating client certificates for Orthanc peers

Issue every Orthanc peer's client certificate from the internal certificate authority (CA) or PKI your security team already runs, so issuance, revocation and audit stay in one place. Before the first certificate is signed, settle three decisions with that team: the key type, validity period and naming. The key type should match what your CA and proxy accept. The validity period sets how often each peer must be renewed, so align it with your rotation calendar. The naming should identify each peer unambiguously, for example by site and Orthanc instance, so a log entry or revocation request points to exactly one server. The orthanc-setup-samples repository shows client certificates used between Orthanc instances. Review how it wires the certificate and trust chain before copying any of it into your environment.

Put every peer certificate's expiry date on a shared rotation calendar, with a renewal date early enough to issue, test and deploy the replacement to both ends of each peer link. An expired peer certificate makes the TLS handshake fail, so the link stops working on the day it expires, and the outage lasts until the new certificate is installed on the Orthanc side or on the proxy that presents it. Assign a named owner to each calendar entry, and confirm the CA's renewal process and lead time with the team that runs it. Test the replacement on a non-production peer first, and confirm that your proxy reloads its trust material without a full restart. Agree the change window with the sites that send and receive studies, because a stopped peer link halts image transfers until someone notices.

When a peer certificate is compromised, revoke it at the CA first, then block it at the proxy so the certificate stops working even though it is still inside its validity period. Publishing revocation status through a certificate revocation list (CRL) or the Online Certificate Status Protocol (OCSP) lets the proxy refuse the certificate. Confirm which revocation method your proxy supports, whether it checks CRLs, OCSP or both, how often it refreshes that status, and whether a failed status lookup blocks the connection or lets it through. Test this with a revoked test certificate before you rely on it. Then issue the peer a replacement certificate and remove the compromised identity from any Orthanc configuration that still trusts it.

Browser access with client certificates versus server-to-server peers

Peer Orthanc instances and external web services authenticate to each other with certificates, so no person signs in during the exchange. The setup work is issuing a certificate to each side, trusting the issuing authority on both ends, and wiring the client certificate into the peer configuration. The project's orthanc-setup-samples repository includes samples that use client certificates between Orthanc instances, with nginx handling server-side TLS.

  • Setup: Each peer needs its own certificate and private key, plus the CA certificate that signed the other side's certificate. Confirm the file formats and paths against the sample you adopt.
  • What fails: A missing, expired or unknown-authority certificate breaks the TLS handshake before any request reaches Orthanc. The error often appears on only one side, so check logs on both peers.
  • Access model: Access follows the peer's certificate and configuration, and no person's login is involved. Confirm whether your peer link also uses HTTP credentials and whether the peer account holds more rights than the exchange needs.
  • Network scope: Limit peer endpoints to known source addresses and keep them away from browser-facing hostnames.

Check that each peer rejects a connection that presents no certificate, and record each certificate's expiry date in your renewal calendar.

Security risks that peer certificates do not solve

Mutual TLS proves that a caller holds a trusted certificate. It does not limit what that caller can do once connected, and it does not protect a key that has leaked. The four risks below sit around the handshake and need controls of their own in the proxy, the Orthanc configuration and the logs.

Stolen peer client key

A client certificate proves that a machine holds a private key. It does not identify the person or service using that machine. If a peer's key is copied from a backup, a build server or a shared file share, an attacker can present a valid certificate and make the same requests as that peer. Check where each private key is stored, who can read it, and how quickly you can revoke and reissue it. Confirm that your CA runs a tested revocation process.

Proxy trusts the wrong CA

The reverse proxy in front of Orthanc is where the client certificate is checked. Its trusted CA setting decides which certificates pass. If that setting includes a broader internal root, such as one used for other services, any certificate that root has issued can reach Orthanc. Check that ssl_client_certificate in nginx, or the equivalent in your proxy, names only the CA that signs your peer certificates. Then test with a certificate from an unrelated CA and confirm the proxy refuses it.

Orthanc setup samples

Keep script and export routes off

The Orthanc security FAQ warns that the /tools/execute-script route can let a malicious user run any system command, and that the export route can overwrite files. Both should stay disabled. A valid peer certificate does not make these routes safe, because a trusted peer can be compromised or misused. Check that the proxy blocks both paths for every peer, and that no Orthanc setting re-exposes them. Repeat the check after each upgrade.

Orthanc security FAQ

Log which peer made each request

When every peer presents a certificate from the same trusted CA, the access log can show only the proxy address and leave out which peer sent each request. Log the client certificate subject from the proxy, for example with the $ssl_client_s_dn variable in nginx, on every route that reaches Orthanc. Send a test request from each peer and confirm that the log line names it. Then confirm that retention and review follow your own audit policy.

How much does mutual TLS between Orthanc peers cost and take?

What drives the effort for a mutual TLS setup between Orthanc peers?

The effort is driven by four things: the number of peers, how mature your certificate process already is, which platform terminates TLS, and how strict your change control is. Each extra peer adds a client certificate, a trust entry on both sides, a configuration change and a test path to verify. A team with an internal CA and automated issuance has a short list of steps. A team that issues certificates by hand, keeps no inventory and routes every change through a board will spend most of its time on coordination. The proxy platform matters because nginx, Apache and IIS each handle client certificate verification and forwarded identity differently, so the design must be checked against the platform you run. Ask for the peer list, the proxy in each site and the approval steps in writing before you compare estimates.

Can our own team set up mutual TLS for Orthanc with the samples?

Yes, a team that already runs Orthanc and a reverse proxy can build a first pair of peers with mutual TLS, using the samples as a guide. The orthanc-setup-samples repository includes samples that use client certificates to authenticate Orthanc instances to each other and to external web services, with nginx handling server-side TLS. Treat the samples as a starting point and expect to adapt them: they do not know your CA, your certificate lifetimes, your revocation process or your monitoring. Your team will still need to test expired certificates, broken chains and rejected peers on the exact Orthanc version you run before production. If the team has never operated a PKI or changed DICOM network settings, plan for an external design review before the build.

What must our team provide for an Orthanc mutual TLS project?

The client needs to supply network access, a named owner for the certificate authority, and change windows for each peer. Network access means routes and firewall rules between the Orthanc hosts and every peer, including the HTTPS and DICOM TLS ports, opened in your own infrastructure. The CA owner decides the issuing chain, certificate lifetimes, naming for each server and client, and how revoked certificates are handled. Change windows matter because enabling client certificate verification on a proxy can lock out a live peer if the steps run in the wrong order. Also provide a staging Orthanc or test peers, sample data that avoids live patient images where possible, and a contact who can confirm each site's endpoint details and certificate paths.

How do we request a fixed-scope quote for Orthanc peer TLS?

Ask for a fixed-scope quote by putting the scope in writing before any work starts. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing, and a quote follows from that written scope. DeployOpen does not publish a price list. To make quotes comparable, list the peers and their Orthanc versions, the reverse proxy in each site, the certificate source and its owner, the environments to be changed, the test evidence you expect, and whether you want documentation and a handover session. Ask the partner to separate one-time work, such as design, build, testing and cutover, from recurring work, such as renewal support or upgrades under a retainer. Also ask which items are excluded, such as firewall changes in networks you do not manage.

Does mutual TLS between Orthanc peers make us HIPAA or GDPR compliant?

No. Mutual TLS between Orthanc peers supports access control and encryption in transit, which covers part of what the HIPAA Security Rule and GDPR expect, but it does not make an archive compliant by itself. Compliance depends on the wider system: per-user or per-study access, audit logging, encryption at rest, backups, retention and deletion, incident handling, and contracts such as business associate agreements where they apply. Client certificates identify the machines that connect, so user authentication and authorization inside the viewer and the REST API still need their own design. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any audit report or certification. Confirm your obligations with your privacy, legal and compliance teams.

Which costs recur after mutual TLS between Orthanc peers goes live?

Most recurring work is certificate lifecycle work: renewing client and server certificates before they expire, rotating keys, updating trust stores on every peer, and revoking certificates for retired systems. Each Orthanc upgrade or proxy upgrade can change how TLS settings and client certificate checks behave, so each upgrade needs a retest of peer connections. Recurring costs also include monitoring for expiry dates and failed handshakes, plus any support retainer you choose. One-time costs cover design, the build, testing and cutover. Ask the partner who renews certificates, how alerts reach your team and what a retest after an Orthanc upgrade covers. Ongoing support, upgrades and continuous testing are available as retainers, and their scope should be written separately from the build.

What goes wrong most often with client certificates between Orthanc peers?

The most common failures are expired certificates, a CA chain missing an intermediate, a client certificate whose name does not match what the peer expects, and a proxy that verifies clients but does not pass the identity on to Orthanc. Peers often fail silently because the connection is refused before any DICOM or HTTP log entry is written. Test each peer with a valid certificate, an expired one, one signed by an untrusted CA and one with a missing chain, and confirm the rejection and the log entry for each case. Check the TLS and authentication configuration key names against the documentation for your Orthanc version, since behavior can change between releases. Keep one inventory that lists which certificate each peer uses and when it expires.

What to confirm about mutual TLS in your Orthanc version

Mutual TLS between Orthanc peers depends on the exact Orthanc version, the proxy in front of it and the client tools that present certificates. The five checks below show where those pieces can differ and what to test on your own build before you rely on the setup. Check each item against the documentation for the version you run, because behavior has changed between releases.

Peer certificate validation mechanism

Start by identifying which component in your build checks the client certificate a peer presents. Depending on your deployment, that check may sit in the Orthanc HTTP layer, in a reverse proxy such as nginx, or in both places, and each choice changes what Orthanc itself can see and log. Read the configuration reference for your exact version, then confirm the trust chain, certificate fields and failure behavior that apply. The project's samples use client certificates between instances with nginx handling server-side TLS, a useful starting point that still needs testing on your build. Confirm which component validates the client certificate before you write any peer configuration.

Orthanc setup samples

DICOM TLS and REST authentication

DICOM TLS protects DICOM associations, and the security FAQ states that Orthanc supports it for inter-site exchanges starting with version 1.9.0. It is a separate channel from the REST API, so a certificate that works for HTTPS peer calls does not, by itself, show that DICOM associations will succeed. Confirm which certificates, CA files and cipher settings each DICOM peer needs. Test each DICOM association separately with the modalities and sites you actually connect to, in both directions, before you treat the REST setup as proof of the DICOM setup.

Orthanc security FAQ

Explorer 2 and viewer plugins

Browser-based tools reach Orthanc through the REST API, so they must present a client certificate or rely on the proxy to handle the handshake for them. Orthanc Explorer 2 and the official viewer plugins may behave differently from a plain API client, so verify each interface in testing before assuming a certificate accepted by the API also opens the viewer. If you use the advanced authorization plugin, it forwards each REST request's token to an external service that decides access. Test every interface separately with a browser profile that holds the certificate, and confirm which user identity each request carries afterward.

Orthanc plugins

Retesting after the 1.13.0 release

The 1.13.0 release included a complete rewrite of storage-area access and DICOM parsing and transcoding, aimed at better caching and lower memory use. These changes sit beside the peer and TLS settings, so a mutual TLS setup that passed on an earlier release should not be assumed to pass after an upgrade. Keep a test list covering certificate acceptance, rejected certificates, DICOM associations and viewer access, and run it on a staging copy first. Retest the full setup on every upgrade, including the proxy and client tools.

Orthanc NEWS file

Proxy and revocation method support

If you revoke client certificates, choose the revocation method first, then confirm that your reverse proxy, your Orthanc build and each client tool can enforce it. Proxies and client stacks handle certificate revocation lists and online status checks differently, and a component that ignores the chosen method can leave a revoked peer accepted. Ask each vendor or maintainer for its documented behavior, then test a revoked certificate on every path: peer REST calls, DICOM associations and browser access. Record the result in your change control records.

How DeployOpen scopes and delivers mutual TLS between Orthanc peers

DeployOpen plans and implements mutual TLS between Orthanc peers inside your own infrastructure, so the client certificates, peer configuration and trust chain stay under your control. Work starts from a written scope that names each peer, the certificate authority used, and the verification steps agreed with your team. The sections below describe what that scope covers, how the build runs, what you receive, and how ongoing support is arranged.

How we scope

  • Inventory every Orthanc peer, its DICOM and HTTP roles, and the remote systems it must trust.
  • Record which peers require client certificate checks and which need only server-side TLS.
  • Agree in writing who issues, stores, renews and revokes the certificates, and on which systems.

How we build

  • Set up or connect to your existing PKI, inside your infrastructure.
  • Configure each Orthanc instance with its server and client certificate, and the trusted CA file.
  • Model the peer setup on the project's client certificate samples, adjusted to your network and proxies.

How we hand over

  • Deliver the certificate issuance steps, peer configuration files and a runbook for renewal.
  • Provide a test record showing each peer accepts trusted certificates and rejects untrusted ones.
  • Document the controls and evidence your compliance team can review, without issuing any attestation.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Plan certificate renewal and revocation checks with your team before the first expiry date arrives.
  • Retest peer access after Orthanc upgrades, configuration changes or changes to the certificate authority.

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.