Encrypting DICOM traffic between sites with DICOM TLS

Orthanc supports DICOM TLS for inter-site exchanges from version 1.9.0. This page covers when to encrypt classic DICOM traffic, how to configure certificates on both ends, how to test it, and when to use stunnel or nginx stream termination instead.

On this page

When DICOM TLS is the right control for encrypting DICOM traffic

Image exchange between sites often still runs on classic DICOM associations, and those associations are not encrypted by default. If studies move between a hospital and a teleradiology partner, a satellite clinic or a cloud archive over a network you do not fully control, the DICOM association itself is the first thing to protect. Orthanc supports DICOM TLS for inter-site exchanges starting with version 1.9.0, so the question for most teams is not whether the feature exists but whether their traffic pattern calls for it. Confirm the exact configuration keys, certificate handling and peer settings in the Orthanc Book security FAQ before you plan changes, because option names and defaults should be checked against the version you run.

DICOM TLS protects the DICOM association between two peers: the contents of the C-STORE, C-FIND, C-MOVE and related exchanges while they cross the wire. It does not cover the REST API, web viewers, DICOMweb access, authentication of users, the database, or the DICOM files sitting on disk. Each of those needs its own control, such as HTTPS behind a reverse proxy, access control, and encryption at rest. Treat DICOM TLS as one layer in a design that also includes network segmentation and, where a site must receive studies over HTTP instead of DICOM, the separate peer mechanism described elsewhere in this group.

Plan for DICOM TLS when a modality, PACS or Orthanc instance must talk to a peer outside the trust boundary of your own network, or when a contract or security review asks you to show that patient images are encrypted in transit between organizations. Ask the peer which TLS versions, cipher policies and certificate authorities it supports before you commit, since both ends must agree. If a legacy modality cannot speak TLS, the team should record that gap and decide whether a tunnel in front of it is acceptable, which is covered in the alternatives section.

Which encryption path fits each exchange

This table compares native Orthanc DICOM TLS, a TLS wrapper such as stunnel, nginx stream termination, a site-to-site VPN and HTTPS peering across the properties that matter for a DICOM exchange. Read each row against the modality or site pair you are securing, and confirm the details with your own network and vendor documentation before choosing a path.

PathWhat it encryptsWhere certificates liveWho operates it and when it fits
Native Orthanc DICOM TLSThe DICOM association between an Orthanc SCP or SCU and a peer that also speaks DICOM TLSOn the Orthanc host and in the peer's trust store, one certificate set per endpointOrthanc administrators. Fits when both ends support DICOM TLS and you want no extra network component
stunnel TLS wrapperClassic DICOM traffic tunneled between two hosts, so the wrapped DICOM port carries TLSOn the stunnel hosts, separate from Orthanc's own configurationNetwork or platform team that runs stunnel. Fits when a modality or PACS cannot use DICOM TLS natively
nginx stream terminationTCP traffic on the DICOM port, terminated at a proxy in front of the destinationOn the proxy host, with the proxy holding the server certificatePlatform or infrastructure team that already operates nginx. Fits when a central ingress point should handle TLS for several destinations
Site-to-site VPNAll traffic between the two networks, including DICOM, C-STORE, C-FIND and C-MOVEOn the VPN gateways, using the VPN's own key materialNetwork team at both sites. Fits when many protocols must cross the link, not only DICOM
HTTPS peering with OrthancStudy transfers sent through the REST API over HTTPS, not the DICOM protocolOn the Orthanc hosts for HTTPS, with mutual TLS configured on both peers when usedOrthanc administrators at both sites. Fits when the destination is another Orthanc and DICOM transfers are not required
Certificate ownershipWho issues, renews and revokes the keys for each pathNative TLS and HTTPS peering: Orthanc configuration. Wrappers and VPNs: the gateway's storeConfirm the renewal owner for each path before go-live, since expired certificates stop exchanges silently
Peer support requiredWhether the remote device or PACS must change to take partNative TLS: the remote must support DICOM TLS. Wrappers and VPNs: usually no change on the remote applicationAsk each modality vendor whether DICOM TLS and which cipher and certificate settings are supported
Verification methodHow you prove the path is encrypted and workingPacket capture, C-ECHO over the secured path and gateway or Orthanc logsUse DCMTK or dcm4che test tools for each path, then confirm a failed certificate is rejected

How the TLS endpoints and trust boundaries fit between sites

The diagram starts at a modality or remote PACS at site A, whose DICOM association is wrapped in TLS before it crosses the wide-area network to Orthanc at site B. Each site edge is a trust boundary with its own certificate authority, and the client certificate is checked during the TLS handshake on the receiving side. Plaintext DICOM exists only inside each site, so check where TLS terminates on both ends before you rely on the link.

Trust boundaries, certificate authorities and where DICOM becomes plaintext.

Per-modality certificates and trust on both ends

Give each modality, PACS and Orthanc site its own certificate, with a name that says which device it is, which site it sits in and who owns it. A shared certificate across several scanners or sites looks simpler at setup, but it removes the ability to tell which device sent a given association. When a device is compromised, retired or moved, you then have to rotate the secret for everything that shares it. Keep a register that maps each certificate's subject to the device, the AE title, the owning team and the renewal date. Before deployment, confirm with the vendor whether each modality accepts a per-device certificate and an explicit trusted CA, because many imaging devices only offer a limited set of trust stores.

Trust has to work in both directions. Each side needs the certificate authority that signed the other side's certificate in its trust store, and the chain should be complete, including any intermediate certificates the peer presents. A common failure is an intermediate that is missing from one end, which produces handshake errors that look like a configuration fault. Keep the private keys on the host that uses them, with file permissions limited to the Orthanc service account, and avoid copying keys into shared folders or tickets. If you hold keys in a secrets platform, confirm how the DICOM stack will read them at startup and how a rotation restarts the service.

Track expiry for every certificate in the register and alert well before the end date, since an expired certificate stops exchanges without a clear error on the modality. Confirm the revocation approach you can actually run: whether the installed Orthanc version checks certificate revocation, whether the modality does, and what you will do if a key is lost before a certificate expires. Do not assume revocation coverage that you have not tested. Whether client certificates are required at all, and which trust options apply to each connection, must be confirmed in the Orthanc Book security FAQ for the exact version you install, because these settings change between releases.

Setting up DICOM TLS between two Orthanc sites

This sequence takes two Orthanc sites from plain DICOM to an encrypted association, with each side verified before the next change is made. The result is a tested TLS link between the two sites, along with evidence that a mismatched certificate is rejected.

  1. Confirm the Orthanc version supports DICOM TLS

    Start by checking that both Orthanc instances run a release with DICOM TLS support. The Orthanc Book security FAQ states that DICOM TLS encryption for inter-site exchanges is available starting with version 1.9.0, so any older build needs an upgrade plan before work begins. Confirm the exact version on each server with the current Orthanc release notes, since the latest releases are listed in the Orthanc NEWS file. Done means both sites report a version at or above 1.9.0 and the team has written down the version numbers for the change record.

  2. Inventory peers and their TLS support

    List every modality, PACS and remote Orthanc that will exchange images with the site over DICOM, and record whether each one can negotiate TLS. Note the AET, IP address, port and the TLS version and cipher options each device supports, because a device that only speaks plain DICOM cannot be secured by changing Orthanc alone. Owners of each device should confirm support in the vendor documentation. Done means every peer has a row in the inventory marked as TLS capable, TLS through a proxy, or plain DICOM only, and each plain-only peer has a named owner and a decision.

  3. Issue and install certificates on both ends

    Issue a certificate for each Orthanc server and for each remote peer that will authenticate, signed by the certificate authority your organization trusts for this traffic. Install the private key and certificate on each Orthanc instance and place the trusted CA certificates where the TLS configuration can read them. Keep private keys readable only by the Orthanc service account. Done means each side holds its own key pair and the CA chain, and the team can show the certificate subject, issuer and expiry date for each one.

  4. Enable TLS on the Orthanc side

    Turn on TLS for the Orthanc DICOM listener and point it at the server certificate, key and trusted CA file. Check the DICOM TLS settings in the Orthanc Book configuration reference before editing the file, because option names change between releases and should be confirmed against the version in use. Restart Orthanc and confirm in the logs that the listener starts without certificate errors. Done means the service runs with the TLS listener active and the team has a saved copy of the configuration with secrets removed.

  5. Register the remote modality with TLS settings

    Add the remote peer to the modality list on each Orthanc server, including the TLS option that makes Orthanc use an encrypted association for that peer. Confirm the exact configuration keys for modality TLS in the Orthanc Book before writing them, and keep the AET, host and port identical to what the remote device expects. The remote side must be configured in the same way with its own certificate and the other site's CA. Done means both entries exist, both restarts completed, and each side lists the other as a known modality.

  6. Verify the TLS association with C-ECHO

    From each site, run a DICOM C-ECHO to the remote peer and confirm it succeeds over the encrypted association. DCMTK and dcm4che both provide echo tools that accept TLS options, and the team should confirm the command-line flags for the version installed. Capture the Orthanc log line showing a TLS-negotiated association. Done means a successful echo in both directions, with the log and packet or tool output saved as evidence.

  7. Test rejection with a wrong certificate

    Repeat the echo using a certificate that the remote side does not trust, or use a test client without the expected CA, and confirm the association fails. A failed attempt proves that the link authenticates the peer and does not accept any device that connects. Record the error and the Orthanc log entry for the rejected connection. Done means the untrusted attempt is refused, the valid attempt still succeeds, and the results are filed with the change record for the security review.

Testing DICOM TLS with DCMTK and dcm4che

DCMTK ships command-line DICOM utilities that can open a TLS association to an Orthanc DICOM listener. The usual sequence is a C-ECHO to confirm that the association is accepted and the peer answers, followed by a C-STORE of a single test instance so that you can see the stored result in Orthanc. Run the test from the same network segment as the real modality, because firewalls and NAT often differ between sites.

  • C-ECHO first: Run the echo utility with the TLS options and the certificate material for the client, then confirm the association is accepted before you send any image data.
  • C-STORE a small test file: Use one anonymized or synthetic instance so that a failure does not expose patient data and the result is easy to find in Orthanc.
  • Successful handshake: The tool reports a negotiated TLS session and an accepted association, and the echo returns a success status.
  • Failed handshake: Look for a TLS alert or certificate verification error printed before any DICOM message is exchanged, which points to certificate, trust or protocol problems rather than AE title mismatches.
  • Orthanc logs: Check the Orthanc log for the incoming connection, the TLS error and the calling AE title, then confirm the test instance appears in the index.

Confirm exact option names and TLS flags against the DCMTK version your team installs, because options vary between releases.

Alternatives: stunnel and nginx stream termination

DICOM TLS built into Orthanc is not the only way to encrypt traffic between sites. The options below move encryption into a separate component, a network tunnel or the HTTPS layer, and each one changes who holds the certificates, what the wrapper can read and who gets paged when a handshake fails.

Stunnel wrapping a plaintext DICOM port

Stunnel runs beside Orthanc and terminates TLS on a public port, then forwards decrypted DICOM to Orthanc on localhost. Certificates live in the stunnel configuration, and Orthanc sees plain DICOM, so its own AET and IP allow lists still apply. Confirm that the wrapper is the only path to the plaintext port, that the modality's DICOM stack can complete the TLS handshake your stunnel version offers, and who renews the certificates on both ends.

Nginx stream termination in front of Orthanc

The nginx stream module can terminate TLS for raw TCP, so DICOM associations pass through a reverse proxy before reaching Orthanc. The proxy sees decrypted DICOM payloads and logs connection metadata, which makes it part of your audit trail. Confirm with your network team that the proxy can keep the DICOM association intact, that your existing nginx http configuration is not shared with the stream block, and that the team owning the proxy accepts DICOM traffic.

Site-to-site VPN

An IPsec or WireGuard tunnel between two networks carries plain DICOM inside an encrypted link, so modalities and PACS keep their existing configuration. The trust model is network membership rather than per-device certificates, which means any host on the tunnel can reach the DICOM port unless firewall rules restrict it. Ask your network team how keys are rotated, whether the tunnel is redundant, and how it is monitored, because a silent tunnel failure stops every exchange at once.

HTTPS peering between Orthanc servers

Orthanc peers exchange studies through the REST API over HTTPS instead of DICOM, and the peer link can use mutual TLS with certificates issued to each server. Only the Orthanc-to-Orthanc path is covered, so modalities still need DICOM TLS or another wrapper. Confirm which sites run Orthanc on both ends, how peer credentials are stored, and whether the HTTPS endpoint is reachable only from approved peers.

Orthanc security FAQ

Operating DICOM TLS: expiry, logs and access changes

Certificate expiry is the recurring task that breaks DICOM TLS most often, and it is easy to miss because a working link keeps working until the day its certificate lapses. Each modality, PACS and Orthanc peer that terminates TLS holds its own certificate and key, so renewal is a per-endpoint calendar item. Track the not-after date of every certificate in a register that also lists the AET, host, port and the team that owns each end. Renew ahead of expiry, and schedule key rotation at the same time so that the new key and certificate are deployed together. Confirm with each modality vendor how its TLS certificate is replaced, whether it needs a restart, and whether it accepts a chain that includes an intermediate CA, because some devices only trust a single self-signed certificate and cannot be updated without a service visit.

Changes on one site reach the other site immediately. Rotating a CA, changing an AET, moving a PACS to a new address, or tightening which remote AETs and IP addresses are allowed can silently stop traffic from the far end, and the failure usually appears as a TLS handshake error or an unknown-modality rejection on the side that did not change. For that reason, make every change in a staged cutover: apply it first to a test peer that mirrors production configuration, run a C-ECHO and a small C-STORE over TLS in both directions, then move the production peer during a window agreed with the other site. Keep the previous certificate and configuration available until the new path has carried real studies. Review logs on both ends after the cutover, searching for handshake failures and rejected associations, and treat a sudden rise in those entries as a change to investigate, not as noise. The Orthanc logs and verbose settings are covered in the troubleshooting section of this series.

Back up certificates and private keys as a controlled set, separate from routine configuration backups. Store the private key encrypted, with access limited to the few people who deploy it, and keep the matching certificate, the CA chain and the configuration file version together so that a restore brings back a consistent state. Record which key belongs to which endpoint and its expiry date in the same register. Test a restore on a non-production host at least once, because an archive that cannot be imported under pressure does not count as a backup. Ask any partner or vendor who will operate the setup to confirm where keys are generated, who can export them, and how revocation is handled if a key is exposed. Those answers determine how much of this work your team keeps in-house.

Limits and what to confirm in your environment

The items below are open questions rather than settled facts, because TLS behavior depends on each modality, each PACS and the Orthanc build you run. Answer them with the vendor or in your own test lab before you commit to a design, and record the answers next to your configuration.

Does each modality support DICOM TLS

Support for DICOM TLS is not universal across scanners, ultrasound units, reading workstations and older PACS. Some devices offer it only in a later firmware release, and others offer it on one port but not on the port your workflow uses. Ask each vendor whether TLS is a supported option for the specific model and software version, and whether it is licensed or optional. Where the answer is unclear, test a C-ECHO over TLS from that device before you plan any migration around it.

First Orthanc release with DICOM TLS
1.9.0
Orthanc security FAQ

Supported TLS versions and cipher suites

Both ends of an association must agree on a protocol version and cipher suite, and older devices often support only outdated options. Confirm the lowest TLS version each modality accepts, the cipher suites it offers, and whether it enforces certificate verification. Check the same settings on the Orthanc host and on any stunnel or nginx stream proxy in the path, because the weakest component sets the effective security. Record the result from an actual handshake, not from the datasheet alone.

Client certificate requirements

Some peers require mutual authentication, where each side presents a certificate that the other side validates, while others only present a server certificate. Ask whether the remote system needs a client certificate, which certificate authority it trusts, and whether it checks certificate subject names or only the chain. Confirm who issues and renews these certificates and how the trust store is updated on each device. A mismatch here usually appears as a failed association rather than a clear error message.

Behavior when a certificate expires

An expired certificate can stop all DICOM traffic with a modality or peer at once, often at a time when no one is watching the logs. Ask each vendor what happens on expiry: whether the device rejects the connection, falls back to unencrypted transfer, or keeps retrying silently. Then confirm how Orthanc reports the failure and whether your monitoring alerts on it. Set renewal reminders well before the expiry date and test the replacement certificate in a non-production setting first.

Interaction with your Orthanc version

TLS handling in Orthanc has changed across releases, and the current series includes large internal rewrites of storage access and DICOM parsing. Confirm that the TLS settings you rely on are present and behave as documented in the exact version you run, and check the release notes before upgrading. Plan a test of your full set of TLS associations after any core upgrade, including the database plugin and Docker image if you use them.

Latest release in the NEWS file
1.13.0
Orthanc NEWS file

Effect of TLS on C-MOVE and C-GET callbacks

C-MOVE and C-GET rely on a second association from the storage side back to the requesting system, so encryption must be configured on both directions of the exchange. Ask whether each device encrypts the callback connection, whether it expects TLS on the destination port it advertises, and whether a retrieve works when only one direction is secured. Test a full retrieve across the TLS path, not only an echo, because a successful C-ECHO does not prove that the callback works.

Questions teams ask before encrypting DICOM traffic

How much effort does DICOM TLS take to set up?

Effort depends mostly on how many modalities, PACS and remote sites must be changed, and on how each one handles certificates. Each connection pair needs a certificate chain the other side trusts, matching TLS settings on both ends, and a test that proves the association is encrypted. Orthanc supports DICOM TLS for inter-site exchanges starting with version 1.9.0, so the server side is rarely the hard part. The work multiplies with each device that needs its own certificate, its own AET and port mapping, and its own cutover window. Ask for a written inventory of every peer before estimating anything.

Can our internal team set up DICOM TLS without a partner?

Yes, a team with Linux administration, PKI experience and access to the imaging vendor's documentation can usually do it, provided the modalities support TLS at all. The skills most often missing are certificate lifecycle management and DICOM networking troubleshooting, not Orthanc configuration itself. Consider who will renew certificates, who owns the internal certificate authority, and who can call the modality vendor when a device rejects the handshake. DeployOpen plans, implements and tests these setups in infrastructure you control, so you can compare an internal build against a fixed-scope engagement with a written scope.

What do we need from the modality or PACS vendor?

You need the vendor to confirm that the device supports DICOM TLS, which protocol version and cipher suites it accepts, and whether it can load your certificate authority and client certificates. Some devices need a firmware update, a licensed option, or a service visit before TLS can be enabled. Ask the vendor for the exact configuration steps, the supported certificate formats, and the process for reverting to unencrypted traffic during a rollback. Vendor cooperation is often the longest dependency in the project, so request these answers in writing before the pilot is scheduled.

How long does a DICOM TLS pilot take?

No general duration can be given here, so plan the pilot around its drivers. The main ones are the number of peers in the pilot, whether each device can be changed remotely or needs on-site work, how quickly the certificate authority can issue and sign certificates, and how long your change board takes to approve a production window. A pilot with one modality and one PACS is short compared with one that covers several sites and vendors. Ask any partner for a timeline built from your peer inventory and dependency list, and for the test evidence they will hand over at the end of the pilot.

Is stunnel a safe substitute for native DICOM TLS?

Stunnel can encrypt a DICOM connection when a device cannot speak TLS itself, but it changes the trust model. The tunnel terminates on a host you must secure, patch and monitor, and you must confirm that traffic between the tunnel and the application is either on a trusted network or also protected. Certificate validation, logging and failure behavior must be tested in the same way as a native setup. nginx stream termination follows the same pattern. Treat these options as a compatibility bridge, document the extra component in your security architecture, and retire it when the device or Orthanc configuration can carry TLS directly.

What changes for operations after DICOM TLS goes live?

Operations gain recurring work that did not exist before. Certificates expire, so someone must track renewal dates, rotate keys and update every peer that trusts the old chain. Certificate revocation or a compromised device requires a documented procedure. Monitoring should alert on failed TLS handshakes, not only on general association errors, and troubleshooting runbooks need the new failure modes. Changes to Orthanc, its plugins or the modality firmware should be retested against the TLS configuration. Ask for a runbook, an inventory of certificates with expiry dates, and an agreed retest checklist before you approve go-live.

How DeployOpen scopes and delivers DICOM TLS for Orthanc

DeployOpen treats DICOM TLS as a change to every modality, PACS and remote site that talks to your Orthanc server, not only a setting on the server. We agree the scope in writing first, then build and test the encrypted exchanges inside your own infrastructure, and hand over documentation your team can run.

How we scope

  • We list every modality, PACS and remote Orthanc site that exchanges images with your server.
  • We record which DICOM links will use TLS and which will stay on the existing network path.
  • We confirm certificate authority ownership, renewal responsibility and where private keys will be stored.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We configure TLS on the Orthanc side and on each peer, with per-modality certificates issued from your chosen authority.
  • We align AE titles, ports and trust stores on both ends so each association can be checked against the written design.
  • We test each link with DCMTK and dcm4che tools, then confirm that unencrypted fallback is blocked where you require it.
  • We document the fallback path, such as stunnel or nginx stream termination, if a device cannot speak DICOM TLS directly.

How we hand over

  • You receive configuration files, a certificate inventory, and test records for every encrypted link.
  • We walk your network, PACS and imaging operations staff through renewal, revocation and troubleshooting steps.
  • Documentation covers the controls and evidence your compliance and security teams need for their own review.
  • DeployOpen prepares evidence for assessments but does not issue audit reports or certifications.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover certificate renewals, Orthanc upgrades that affect TLS settings, and retesting after new modalities are added.
  • Ask any quote to name the links covered, the test environment used and who owns certificate renewal after go-live.

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.