Orthanc peers: exchanging studies over HTTPS instead of DICOM

Orthanc peers let two Orthanc servers exchange studies through their REST APIs over HTTPS, which can be simpler to secure and operate than classic DICOM across a VPN. This page explains the configuration, trade-offs and setup work.

On this page

Why teams link Orthanc sites with peers over HTTPS

A multi-site imaging team that needs studies to move between Orthanc servers can link those servers as peers, which send studies through the Orthanc REST API over HTTPS instead of through the DICOM network protocol. The peer link is a web connection between two servers you operate, so the team manages it with the same tools it already uses for web services: certificates, reverse proxies, user accounts and firewall rules on HTTPS ports. Peers are most useful when both ends are Orthanc and the sites can reach each other over ordinary web connectivity.

The starting point matters. By default, Orthanc only accepts HTTP connections from localhost. Enabling RemoteAccessAllowed opens the REST API to other machines, and the Orthanc security FAQ says AuthenticationEnabled should then be true with users defined in RegisteredUsers. The docs also recommend HTTPS and a reverse proxy for any Internet exposure. Before you configure a peer, confirm which account the remote server will use, where its credentials are stored, and who can reach the port from each site. A peer link that works in a lab but has an open, unauthenticated API is a common way to get this wrong.

Classic DICOM networking still fits many cases. If the other end is a PACS, a scanner or a vendor archive that speaks only DICOM, a peer link does not help, and you need AE titles, ports and, where required, DICOM TLS. Peers fit best when you control both Orthanc servers and want one authenticated web channel. Confirm your own network policy, the identity model at each site and whether your auditors expect DICOM or HTTPS traffic before you choose.

How a study travels between two Orthanc peers

A study leaves Site A's Orthanc through its REST API and is pushed over HTTPS to a reverse proxy at Site B, which terminates mutual TLS and checks the client certificate before forwarding the request to Site B's Orthanc. Orthanc then checks the caller's credentials on its own REST API before storing the instances. The Transfers Accelerator path is shown as an optional branch, and the trust boundary between the two sites is where you should confirm both authentication checks are enforced.

Study movement between two Orthanc peers, with the trust boundary and authentication checks.

Peer configuration options and when each fits

This table compares the main choices for linking two Orthanc servers over HTTPS: transport encryption, peer credentials, network path and optional transfer acceleration. Read each row for when the option fits and what it adds to daily operations. The main takeaway is that the network path and the credential model should be chosen together, because a private network does not remove the need to authenticate REST calls.

OptionWhen it fitsWhat it costs to operate
HTTPS versus plain HTTP on a private networkPlain HTTP only where a dedicated, access-controlled link already encrypts traffic. Otherwise use HTTPS.Plain HTTP avoids certificate work but sends credentials unencrypted. Confirm the link's encryption with your network team.
Username and password credentialsFew peers, no existing certificate infrastructure, and HTTPS in place. Suits small, stable site pairs.Passwords must be stored in server configuration and rotated on both ends. Users are defined through RegisteredUsers when remote access is enabled.
Mutual TLS client certificatesSecurity reviews that require strong peer identity, or many peers managed by a central certificate authority.Certificates must be issued, distributed, renewed and revoked on each side. Expiry is a common cause of failed transfers. Confirm peer client certificate support for your version.
Direct peer calls over a VPNSites reachable through a VPN with private addresses, and no need to expose the API to the Internet.Fewer components to patch, but each server's REST port must still be restricted by firewall rules and authentication.
Reverse proxy in front of OrthancPeers reaching the server over the Internet, or teams needing central TLS termination, access logs and rate limits.An extra component to patch and certificate handling at the proxy. Upload size and timeout limits must be tuned for large studies.
Standard transferSmall volumes, modest distances and studies that move within acceptable time on the existing link.No extra component. Measure transfer times on your own links before deciding whether acceleration is needed.
Transfers AcceleratorLarge studies over long or high-latency wide-area links where standard transfer is too slow for your schedule.An added component that must match the Orthanc version and be tested after each upgrade. Confirm licensing and support terms before adopting it.

Setting up HTTPS peers between two Orthanc servers

This sequence takes two Orthanc servers from a default install to a working peer link in which one site can push a single study to the other over HTTPS, with authentication and encryption in place before any patient data moves.

  1. Confirm both sites run a supported release

    The platform team at each site confirms the Orthanc version it runs and checks it against the current release notes before changing any settings. Upgrade first if either side is behind a version you intend to support, because peer and authentication behavior should be validated on the same release at both ends. Confirm the exact release line you plan to standardize on in the NEWS file and record the version number on each server. Done when both sites have a written version inventory and the team has agreed which release both sides will run during testing.

  2. Enable remote access with authentication

    The Orthanc administrator turns on remote access only after authentication is enabled, because by default Orthanc accepts HTTP connections only from localhost. Define each peer user in the registered users section of the configuration file and give each account only the rights its peer needs. Keep the diagnostic script and export routes disabled, since the security guidance warns that they can run system commands or overwrite files. Confirm the exact configuration keys for remote access, authentication and registered users in the Orthanc Book before editing, because key names can change between releases. Done when an unauthenticated request from another host is refused and a request with the registered credentials succeeds.

  3. Place HTTPS in front with a reverse proxy

    The network or platform team places a reverse proxy in front of each Orthanc server so that all peer traffic is encrypted in transit, and keeps the Orthanc REST port bound to the proxy or a private address rather than exposing it directly. The proxy terminates TLS, forwards requests to the local Orthanc port and applies any request size and timeout limits that large study transfers need. Document which hostname each site uses for its peer endpoint and which network paths can reach it. Done when a request to the public HTTPS hostname reaches Orthanc, returns the expected response, and a plain HTTP request to the same endpoint is refused or redirected.

  4. Issue and install certificates on both ends

    The security or PKI team issues a server certificate for each proxy hostname from the certificate authority the organization trusts, and decides whether the peer link will also require client certificates for mutual TLS. Install the server certificate and private key on each proxy, and if mutual TLS is used, distribute each site's client certificate to the other site and load the issuing authority into the proxy's trust store. Keep private keys out of shared repositories and restrict file permissions on the proxy host. Done when each site can complete a TLS handshake with the other using the intended certificate chain, and a connection without a valid client certificate is rejected where mutual TLS is required.

  5. Define each peer on both servers

    The Orthanc administrator adds the remote site to the peer list on each server using the HTTPS URL of the other site's proxy endpoint, the registered username and the password or credential that matches that account. Store the password through the secrets process your organization uses rather than leaving it in plain text in a shared file. Check the exact peer entry format, including the URL and credential fields, in the Orthanc Book for the release you run. Done when each server lists the other as a peer and the peer's own system information endpoint answers successfully from the other site.

  6. Test a single study transfer

    The operator selects one non-clinical or agreed test study on the sending server and sends it to the receiving peer through the REST API, then confirms that the study arrived with the same number of series and instances. Compare the study identifiers and a sample of tags on both sides, and check the logs on both servers for authentication failures, timeouts or size limits. Only after the single study matches should the team consider larger transfers. Done when the receiving site shows an identical study, the transfer log shows no errors, and the team has recorded the versions, endpoints and test results as the baseline for the peer link.

  7. Document and prepare rollback

    The team writes a rollback note for each change: how to disable a peer entry, how to revert the reverse proxy configuration, how to remove a client certificate from the trust store, and how to restore the previous Orthanc configuration file from a saved copy. Keep the prior configuration under version control or in a dated backup before each change, and state who can execute the rollback during a change window. Done when the rollback steps have been read by the team, the previous configuration is saved, and removing the peer has been tested without affecting local storage or other peers.

When Orthanc peers beat DICOM over a VPN

Choose Orthanc peers over DICOM over a VPN when both ends are Orthanc servers and your team already runs the web controls that protect the REST API, such as HTTPS termination, certificate management, identity-aware access and request logging. A peer link reuses those controls, so the transfer is governed by the same review and monitoring you apply to other HTTPS services. DICOM over a VPN, by contrast, depends on every side holding a correct AE title, IP address and port pairing, and each change to a site's network or hardware means updating DicomModalities entries on both ends. Peers also let the sending server push a study with a single authenticated request instead of a negotiated C-STORE association, which simplifies troubleshooting when a transfer fails.

The trade-off shifts when the other end is not an Orthanc server. Modalities, scanners and most PACS speak only classic DICOM, so the DICOM association is the only option and the question becomes how to protect it. DICOM TLS remains the right choice for those systems, and Orthanc has supported it for inter-site exchanges since version 1.9.0 (see the Orthanc security FAQ). Confirm with the vendor of each modality or PACS that it supports TLS and which certificate formats it accepts before you commit to a design, because a site that cannot terminate TLS on its own equipment will still need a VPN or an intermediary.

The decision therefore depends on the network and on the systems at each end, not on a general preference. Map every link in your sites first: which pairs are Orthanc to Orthanc, which are modality or PACS to Orthanc, and which firewalls and proxies sit between them. Use peers where both sides are Orthanc and your web security team owns the endpoint. Keep DICOM TLS or the existing VPN for the remaining links, and document which controls protect each one so auditors can trace the path of every study.

Securing peer traffic and the Orthanc API

Peer links carry patient images over the REST API, so the same controls that protect the Orthanc web interface also protect every study a peer sends or pulls. The six cards below cover the defaults to change, the authentication and certificate settings that replace them, and the routes and plugins that decide who can do what once a request arrives.

Remote access disabled by default

Orthanc accepts HTTP connections only from localhost unless RemoteAccessAllowed is enabled. A peer on another site cannot reach the REST API until that setting changes, so enabling it is the first deliberate decision in any peer design. Check the setting on both ends of each link and record which network addresses can reach the port. Restrict those addresses at the firewall as well, so the setting is not the only control.

Orthanc security FAQ

Authentication and RegisteredUsers

When remote access is on, the documentation says AuthenticationEnabled should be true and users should be listed under RegisteredUsers. Each peer then needs its own named account rather than a shared login, so access can be revoked for one site without affecting the others. Confirm how the peer configuration stores its credentials and who can read the Orthanc configuration file on each server.

HTTPS and reverse proxy for exposure

The documentation recommends HTTPS and a reverse proxy when Orthanc is reachable from the Internet or from networks outside the hospital. The proxy terminates TLS, sets timeouts that suit large study transfers, and limits request sizes. Test an upload of a large study through the proxy before going live, because proxy limits often fail only at that size.

Mutual TLS client certificate handling

Mutual TLS adds a client certificate check so that a peer must present a certificate the server trusts, in addition to its login. Your team needs a process to issue, renew, and revoke those certificates for each site. Confirm whether your reverse proxy or the Orthanc build in use can enforce client certificates, and plan renewal before expiry so transfers do not stop unexpectedly.

Disabling the execute-script and export routes

The 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 on any server that accepts peer traffic. Verify this on every node after each upgrade, and confirm through your proxy that these paths return an error to external callers.

Access control through the authorization plugin

The advanced authorization plugin forwards each REST request's token to an external web service, which decides whether the request is allowed and returns HTTP 403 when it is not. The orthanc-auth-service reference project pairs this with Keycloak-issued user tokens and Orthanc Explorer 2. Scope the decision logic per peer and per action, and ask who owns and tests that external service before you depend on it.

Authorization plugin docs

When to add the Transfers Accelerator to peer links

The Transfers Accelerator is an add-on for Orthanc that speeds up transfers between Orthanc servers, and it earns its place on links that carry large studies or span long distances. Peer transfers over HTTPS already work without it, so the decision is about whether the throughput of your current link is a real constraint for the studies you move. Measure that before buying anything: time a transfer of your largest typical study between the two sites, then time a batch of ordinary-sized studies, and note where the wait comes from, whether it is the network, the sending server, or the receiving server writing to storage.

Before you plan around the accelerator, confirm three things with the Orthanc vendor, Orthanc Team SRL: its licensing terms for your use, which Orthanc core versions it supports, and how it changes behavior on your workload, including CPU, memory and storage load on both ends. Ask whether the accelerator must be installed on both peers, how it interacts with the transfer settings and retries you already run, and what happens to transfers in progress during an upgrade. Ask for these answers in writing, since the accelerator's terms and version support can change between Orthanc releases.

If the accelerator does not fit, the same peer link still works with the standard REST transfer path, and you can revisit the question after you have measured a few weeks of real traffic. Record transfer durations, failures and retries per peer so the case for the add-on rests on your own numbers, not on the expectation that faster is always better.

Questions buyers ask about Orthanc peers

What drives the cost and effort of an Orthanc peer rollout?

The main drivers are the number of sites, the number of Orthanc servers at each site, how much of the network and security review is already in place, and how many systems must send or receive studies through peers. Each site adds work for configuration, certificate handling, firewall changes and testing. Costs fall into one-time work (design, configuration, testing and handover) and recurring work (certificate renewal, upgrades and monitoring). If you use a partner, ask for a written scope that lists each site, each peer link, the certificate process and the test plan. Orthanc Team, the company that develops Orthanc, sells deployment, configuration and development services, with pre-paid dedicated support hours valid for 12 months, quoted on request. DeployOpen plans and implements these rollouts in your infrastructure against a written scope, and quotes follow from that scope.

How long does a multi-site Orthanc peer setup take?

Duration depends on the number of sites, how many peer links you need, whether each site already has working Orthanc servers, and how quickly your network and security teams can approve firewall rules and certificates. A single pair of servers with an existing certificate authority is usually much faster to connect than a hub-and-spoke design across several hospitals with separate change approval. Testing with real study transfers, including large studies and failure cases, often takes more time than the configuration itself. No fixed duration applies to every environment, so ask for a timeline in the written scope that separates design, approvals, build, testing and go-live for each site.

What must our team provide before an Orthanc peer project starts?

Plan to provide the following before build work begins:

  • Server access in each site, with the Orthanc version and deployment method agreed (Docker, Linux packages or Windows).
  • Network routes and firewall approvals for HTTPS between the peers, including any reverse proxy path.
  • Certificates for each server, issued by a CA your security team trusts, if you plan to use mutual TLS. Confirm who issues, renews and revokes them.
  • A list of peer names, user accounts and permissions, and which studies or labels may move between sites.
  • Test studies, covering several modalities, large series and compressed transfer syntaxes, so you can check that transfers arrive complete.
  • Named contacts for change approval, incident response and access to logs.
Can an internal team set up Orthanc peers without a partner?

Yes, an experienced internal team with Linux or Docker skills, REST API familiarity and TLS certificate experience can configure Orthanc peers. Orthanc's documentation covers the REST API and security settings, and the project publishes packages for Windows, macOS, Linux and Docker. The harder parts are usually organizational: firewall approvals, certificate lifecycle, testing with clinical data and documenting the setup for your security and compliance reviews. Ask yourself whether the team can run tests across sites, respond to a failed transfer at night and keep the configuration current through upgrades. A partner can take the design, build and test work while your team keeps ownership of operations and approvals.

Do we still need DICOM TLS or a VPN if we use Orthanc peers?

Peers replace classic DICOM transfers between Orthanc servers with HTTPS requests to the REST API, so DICOM TLS is not needed on those links. You still need a secure transport. Orthanc does not serve remote HTTP by default, and its security documentation recommends enabling authentication, HTTPS and a reverse proxy for any Internet exposure. A VPN can still be useful for private networks, but it is not required when HTTPS and mutual TLS protect the link. Modalities and PACS that speak only classic DICOM still need DICOM TLS or a VPN for their traffic, so most sites keep both paths. Confirm which systems use which protocol before you remove any existing VPN.

When do Orthanc peers work better than DICOM over a VPN?

Peers suit links where both ends run Orthanc and where you want HTTP-based authentication, per-user access control and simple firewall rules on one HTTPS port. A VPN carrying classic DICOM suits sites where the modalities and PACS only speak DICOM, or where the network team already manages VPN tunnels well. Peers also make it easier to restrict what a remote server can read through REST permissions, although you should test that access rules behave as expected. Ask the engineering team to compare both designs on the same test studies, measuring completeness, failure handling and operations effort.

When should we add the Transfers Accelerator to Orthanc peers?

Consider the Transfers Accelerator when large studies must move between sites and the default transfer speed is too slow for your schedule or network. Confirm first that the bottleneck is Orthanc and not the WAN link, storage or the receiving server. Check the plugin's current documentation and licensing terms for your version before planning it into the design, because licensing and features are set by the project and may change. Add the test cases for large transfers to the scope so you can measure the effect before go-live.

How DeployOpen works on this

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, and Orthanc peer links are scoped the same way. The work starts with a written scope that fixes which sites, certificates and studies flow between Orthanc servers before any configuration changes are made.

How we scope

  • We list each Orthanc server, its site, its network path and the direction in which studies move between peers.
  • We record which peer links will use HTTPS with mutual TLS and which classic DICOM links remain in place.
  • We agree the written scope, deliverables and timeline in advance, since most engagements are fixed-scope.

How we build

  • We configure peer entries, HTTPS endpoints and client certificates on both ends of each link under your change control.
  • We test authentication failures, sends of large studies and interrupted transfers against the agreed scope.
  • Where the need is confirmed, we evaluate the Transfers Accelerator plugin and document its effect on your links.

How we hand over

  • We deliver configuration files, certificate inventory and runbooks that your team can review and reproduce.
  • We document peer names, endpoints, certificate renewal steps and the checks that confirm a study arrived completely.
  • We walk your engineers through the test results so they can operate the links without us.

How we support

  • Ongoing support, upgrades and continuous testing for peer links are available as a retainer.
  • Support covers Orthanc version upgrades, certificate rotation and retesting after changes to either site.
  • Before any retainer starts, we confirm the support scope, response expectations and access model in writing.

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.