When HTTPS for Orthanc is required and how the two options differ
Any team that lets clinicians or other sites reach the Orthanc REST API and web viewers from outside the server needs HTTPS, and the choice is between two routes: built-in TLS through the SslEnabled setting, where Orthanc loads its own certificate and key, or TLS terminated on a reverse proxy such as nginx, Apache or IIS, with Orthanc listening only on the local network. By default Orthanc accepts HTTP connections only from localhost. Setting RemoteAccessAllowed to true opens the server to other machines, and the security FAQ says AuthenticationEnabled should then be true, with users defined under RegisteredUsers. Treat these three settings as one change, because enabling remote access without them leaves the REST API reachable without a login.
The Orthanc Book recommends HTTPS and a reverse proxy for any Internet exposure. For anything beyond a single isolated network, that recommendation points to the proxy route, because the proxy carries certificate renewal, access logging and any extra filtering in tooling your infrastructure team already runs. Built-in SslEnabled fits a small intranet where one server holds the certificate and no other component sits in front of it. Before you choose, confirm with your security team which certificate authority issues the certificates, who renews them and on what process, and whether every viewer and API client you use trusts that chain without manual steps. Those answers often decide the route more than the feature list does, and they determine how much certificate work lands on the Orthanc administrator.
DICOM TLS is a separate control. It encrypts DICOM traffic between Orthanc and its peers, such as other sites or modalities, and Orthanc supports it for inter-site exchanges starting with version 1.9.0. Enabling HTTPS for the REST API does not encrypt DICOM storage or query traffic, and enabling DICOM TLS does not protect web access to the viewers. Plan the two as separate changes, each with its own test: open the web viewer over HTTPS after the first change, and run a C-ECHO or C-STORE test against each peer after the second. Confirm the Orthanc version you run before you write the DICOM TLS configuration, since the feature depends on 1.9.0 or later. Mutual certificate authentication between peers is covered in its own topic.
Built-in SslEnabled or a reverse proxy: which setup fits your network
This table compares the four ways to protect Orthanc's REST API and viewers, plus TLS for DICOM exchanges between peers. Read each row by the network it fits, who holds the certificate and what your team must renew and patch. The main takeaway: built-in SslEnabled suits a contained intranet, while any Internet-facing archive should sit behind a reverse proxy with authentication enabled.
| Setup | Where it fits | Certificates and upkeep | Main trade-off |
|---|---|---|---|
| Built-in SslEnabled | Single-site intranet where users reach Orthanc directly on one host | Your team issues, installs and renews the certificate and key in Orthanc's configuration | Simplest path, but Orthanc handles TLS itself and renewal is a manual task |
| nginx reverse proxy | Sites that need a hardened edge in front of Orthanc and its viewers | Certificates sit on nginx; your team patches nginx and renews its certificates | Extra component to patch, and forwarded headers must be set and tested with each viewer |
| Apache reverse proxy | Sites already running Apache HTTP Server operations for web services | Certificates live in the Apache virtual host; your team patches Apache and renews certificates | Same proxy trade-off as nginx: an extra patched component and header forwarding to verify |
| IIS reverse proxy | Windows-hosted networks where IIS is the approved web tier in front of Orthanc | Certificates are bound to the IIS site; Windows administrators renew them | Adds an IIS component to patch, and proxy rules must be tested against each viewer |
| DICOM TLS between peers | Exchanges between Orthanc and other sites or modalities that support TLS | Both peers need matching certificates and trust settings; each side renews its own | Protects DICOM traffic only, not the REST API or viewers; supported from Orthanc 1.9.0 and both peers must be configured |
| Internet exposure | Archive reached from outside the hospital network | The edge team owns certificates, renewal and proxy patching | Enable authentication and registered users before any remote access |
TLS ends either on Orthanc or on the proxy, and RegisteredUsers is checked in both cases
The diagram starts with a browser or viewer on the client network and crosses the trust boundary over HTTPS. In Option A, Orthanc's built-in SslEnabled listener ends TLS itself, and Orthanc then checks the user against RegisteredUsers. In Option B, a reverse proxy ends TLS and forwards plain HTTP to Orthanc on localhost, and Orthanc still checks RegisteredUsers when AuthenticationEnabled is true. Confirm that the proxy is the only listener reachable from outside and that Orthanc stays bound to localhost.
Two ways an HTTPS request reaches Orthanc, with the trust boundary and authentication check marked.
Setting up HTTPS for Orthanc step by step
This sequence moves an Orthanc archive from plain HTTP to HTTPS and aligns the access settings that go with it. Each step ends with a check you can record, so your security team can review the result before users depend on it.
Inventory clients and networks reaching Orthanc
The network team and the Orthanc administrator list every workstation, viewer, modality and peer that calls the REST API or opens a browser session, along with the network segment each one sits on. Separate users inside the hospital network from users who arrive over the Internet, because the second group determines whether you need a reverse proxy. Record which routes each group uses, including Orthanc Explorer 2 and any viewer plugins. You are done when the list is signed off and every access path has a named owner.
Choose built-in TLS or a reverse proxy
Use the built-in SslEnabled option for an intranet archive with a small, known set of clients and a certificate your organization can issue. Choose a reverse proxy such as nginx, Apache or IIS when users reach Orthanc from the Internet, or when your team already manages TLS termination and certificate renewal there. The project recommends HTTPS and a reverse proxy for any Internet exposure. Record the decision with its owner, because it determines the configuration and checks that follow.
Obtain a certificate from your CA
Your organization's certificate authority issues the server certificate and private key for the host name that clients will use. Ask for the host name in the certificate's subject alternative names so browsers and viewers accept it, and store the private key where only the Orthanc service account and administrators can read it. Confirm the expected certificate and key file formats with the Orthanc Book configuration reference and your CA team before submitting the request. You are done when a test client on the intended network validates the full certificate chain.
Configure SslEnabled or the proxy
For built-in TLS, set SslEnabled to true, point the certificate and key settings at the files from the previous step, and restart Orthanc under its service manager or container runtime. For a proxy, terminate TLS in nginx, Apache or IIS, forward requests to Orthanc on localhost, and close plain HTTP on the external interface. Check the Orthanc log for startup errors. You are done when the HTTPS endpoint answers and presents the expected certificate.
Align remote access with authentication settings
Set RemoteAccessAllowed to true only if clients outside the local machine need the API, and when you do, set AuthenticationEnabled to true and define each account in RegisteredUsers. Remove any sample or default accounts and give each user a unique password held in your secrets process. Built-in authentication gives every registered user full read-write access, so decide who needs an account before you publish one. You are done when a request without credentials is refused and a registered user can log in over HTTPS.
Verify HTTPS, refused HTTP and disabled routes
Test from an approved client on the internal network and from an outside network. The HTTPS endpoint should respond, plain HTTP from outside should be refused, and unauthenticated requests should fail. Confirm that the /tools/execute-script route and the export route remain disabled, because the Orthanc security FAQ warns that the first can run system commands and the second can overwrite files. Save the test results with the configuration as evidence for your review. You are done when every check passes and the results are filed with the change record.
How the HTTPS setup differs across Docker, Windows and Linux
Docker images are the most common route for running Orthanc in a container platform. Settings usually reach the container through a mounted configuration file or environment overrides, and certificate files must be mounted into the container so Orthanc can read them at startup. The points below are what the platform team should settle before the first deployment.
- Configuration delivery: Confirm whether your image reads a mounted configuration file, environment overrides or both, and keep the TLS settings in the same method as the rest of the configuration.
- Certificate mounts: Mount the certificate and private key read-only, and confirm the in-container paths against the Orthanc Book for the image version you run.
- Published ports: Map only the HTTPS port for viewers and the DICOM port for modalities that need it, then confirm that the container runtime and the host firewall agree.
- Image tag: Pin a specific image tag so TLS behavior does not change on an unplanned pull, and confirm the tag matches the Orthanc release whose options you reviewed.
- Secret handling: Keys placed in environment variables can appear in container inspection output, so confirm the secret store and access rights your orchestrator uses.
Before writing the final mount list, confirm the orchestrator, secret store and network policy with the platform team.
Windows installs run Orthanc as a service, which changes where the configuration is read, who can read the certificate key and how changes take effect. The installer and the service account determine most of the setup, so confirm those details on the target server before you edit any TLS setting.
- Configuration location: Confirm where the installer places the configuration file and which file the service loads at startup, since Orthanc reads only the file the service uses.
- Key permissions: Grant read access to the private key only to the service account Orthanc runs under, and confirm that no interactive user group has access.
- Firewall rules: Open the HTTPS and DICOM ports in Windows Firewall only for the networks that need them, and record each rule with the network team.
- Restart behavior: Confirm that a configuration change needs a service restart, and schedule that restart with the application owners.
- Reverse proxy on IIS: If IIS terminates TLS in front of Orthanc, confirm whether the Orthanc listener stays bound to localhost and which certificate IIS presents.
Before the change window, confirm the service account, firewall rules and restart plan with the platform team.
Linux packages cover the Debian, Ubuntu, openSUSE and FreeBSD builds listed on the Orthanc downloads page, and each distribution places configuration and service files according to its own conventions. Start by confirming the package and init system your standard uses, then check the locations the installed package actually uses before writing any TLS setting.
- Package choice: Confirm which listed distribution package your platform standard covers, and record the version the package installs.
- Configuration and certificates: Confirm the configuration directory and certificate location from the installed package files and the Orthanc Book, and avoid copying paths from older guides.
- Ownership and permissions: Keep the private key readable only by root and the Orthanc service user, and confirm the file ownership after each package upgrade.
- Host firewall: Open the HTTPS and DICOM ports in the firewall your standard uses, such as firewalld, ufw or nftables, and limit sources to known networks.
- Service management: Confirm the service manager (systemd on most distributions, and the rc system on FreeBSD) and the exact reload or restart command for TLS changes.
Before the change window, confirm the package version, file ownership and firewall policy with the platform team.
Security checks to run alongside HTTPS for Orthanc
Turning on HTTPS protects traffic in transit but does not close the other exposures in an Orthanc server. The six checks below cover the gaps that most often remain after certificates are installed, and each names the team that should sign off on it.
Direct plain HTTP access
When a reverse proxy terminates TLS, the Orthanc port can still answer plain HTTP from other hosts if the firewall or bind address allows it. Test from a machine outside the proxy path and confirm that a direct request to the Orthanc port is refused or never reaches the server. Your network team owns the firewall and bind rules, and the Orthanc administrator confirms the listener settings in the configuration file. Repeat the test after every network change, including changes to cloud security groups.
Authentication off with remote access
By default Orthanc accepts HTTP connections only from localhost. Once RemoteAccessAllowed is enabled, the Orthanc Book says AuthenticationEnabled should be true, with users defined in RegisteredUsers. Check that both settings match the intended state on every node, and that an anonymous request to the REST API is rejected. The Orthanc administrator owns the settings, and the security team owns the review of who holds an account.
Orthanc security FAQScript execution route exposure
The /tools/execute-script route can let a malicious user run any system command on the host, so the Orthanc security FAQ says it should stay disabled. Check that no Orthanc setting, reverse proxy rule or load balancer path exposes this route, and that a request to it fails. Your proxy configuration should block the path before the request reaches Orthanc, so the check covers both layers. Platform engineering owns the proxy allow list, and the security team reviews any change to it.
Export route file overwrite
The export route can overwrite files on the server, so it should stay disabled for any user or environment that does not need it. Confirm that it is turned off in every environment, including test copies restored from production, and that no authenticated user can reach it through a viewer or the proxy. The Orthanc administrator owns the setting, and the data protection owner decides whether any export workflow is allowed. Record each decision with the change ticket.
Forwarded header trust
Behind a reverse proxy, Orthanc sees the connection coming from the proxy, so any logic that reads client address or scheme headers can be fooled by a caller who sets them. Confirm that the proxy sets these headers itself and drops any copy sent by the client. Check which headers Orthanc and any authorization service read, and where the proxy's trusted address range is defined. The network team owns the proxy configuration, and the platform team owns the Orthanc side. Test by sending a forged header from outside and confirming the access decision does not change.
TLS private key custody
The private key that matches the certificate is the secret that makes HTTPS trustworthy, so its storage needs the same control as other production credentials. Confirm who can read the key file on the Orthanc host or proxy, and that the key is not baked into a container image or copied into backups without protection. Check that a documented process exists for rotation and revocation. The security or PKI team owns issuance and custody, and the platform team owns file permissions. Ask who holds copies and where each copy is recorded.
Certificate formats, renewal and HTTPS between Orthanc peers
Start with the issuer, because it decides who must trust your certificate and who renews it. An internal certificate authority suits an archive that only clinicians reach over a hospital network: you control the issuing chain and can issue certificates for internal host names, but you must distribute the root certificate to every workstation, browser and peer that connects. A publicly trusted certificate removes most of that distribution work for outside users, but it requires a host name the public issuer can validate, which an internal-only archive may not have. Decide this before the first viewer is configured, because changing the issuer later means re-trusting every endpoint. Name one owner for issuance and renewal, record the expiry date, and set an alert well before it. Renewal is a recurring task that fails silently if no one holds it.
Confirm the accepted certificate formats in the Orthanc Book for the version you run before you request anything. The expected file types, whether the private key must sit in a separate file, and the order of the intermediate chain can differ between releases, so do not rely on an older example. Enable HTTPS through the SslEnabled setting only after you have confirmed the certificate file settings for that version. Test the result from a machine that does not already trust your internal root, so you see the same warning an outside viewer would see. Restrict read access to the private key to the Orthanc service account. Finally, confirm whether a renewed certificate needs a service restart or a reload, so that renewal does not become an unplanned outage.
Treat HTTPS for the REST API and viewers and DICOM TLS between peers as two separate configurations. The first protects browser and API traffic, and Orthanc can terminate it itself or a reverse proxy can terminate it in front of Orthanc. If a proxy terminates TLS, the hop from the proxy to Orthanc is a separate decision that you must document. The Orthanc Book security FAQ says remote access needs authentication enabled and recommends HTTPS and a reverse proxy for Internet exposure. The second protects DICOM associations with other sites, a capability the project lists from version 1.9.0 onward, and it needs its own certificate and trust settings on both ends. Requiring client certificates from peers is covered in the mutual TLS topic, so this section does not repeat those steps. Plan both certificate sets together, since they share an issuer and a renewal calendar.
Limits to confirm for your Orthanc version and environment
Each card below is a check to run against the exact Orthanc version and network you plan to deploy. Confirm every item against the release notes and the Orthanc Book, and do not carry over behavior from an earlier release or from another environment.
SslEnabled behavior in your version
The SslEnabled settings control whether Orthanc serves its REST API and viewers over HTTPS, using the certificate and key files named in the configuration. Behavior can change between releases, so read the entries for your target version before you write the configuration. Orthanc 1.13.0 rewrote storage-area access and DICOM parsing, which is a good reason to retest the HTTPS path after every upgrade. Load the certificate chain with the exact build you will run, and confirm which file formats it accepts.
Orthanc NEWS fileViewer support over HTTPS
Each viewer plugin you run, such as Orthanc Explorer 2, the Stone Web viewer, OHIF or a DICOMweb client, must load its scripts, API calls and images over HTTPS without mixed content errors. Test every viewer plugin in the browsers your clinicians use, with the certificate chain those workstations trust. Confirm in each plugin's documentation whether it builds URLs from a fixed HTTP address, because one hardcoded address can break the session once TLS is switched on.
Orthanc plugins listProxy header forwarding
When nginx, Apache or IIS terminates TLS, the viewers and Orthanc depend on the proxy passing the original host name, scheme and client address to the backend. Confirm the exact headers your viewers and your Orthanc build expect, and make sure the proxy sets them on every location, including DICOMweb and plugin paths. A missing or stale forwarded scheme can produce redirects to HTTP or links that point to the wrong host. Test these paths through a browser session and with curl, and check the results for both.
Certificate renewal and revocation
Confirm with your certificate authority how certificates are renewed, how long each one lasts, and how revocation is published, through OCSP or a certificate revocation list, before you choose between built-in TLS and a proxy. Then confirm how the chosen server picks up a renewed certificate: whether Orthanc needs a restart, whether the proxy needs a reload, and whether renewal can run without a maintenance window. Record the owner and expiry date of each certificate in your operations calendar, and rehearse a renewal in staging first.
DICOM TLS for each peer
Orthanc supports DICOM TLS for inter-site exchanges starting with version 1.9.0, but each peer must be configured for it separately. For every modality, PACS or Orthanc peer, confirm whether it offers TLS, which certificate authority it trusts, whether it requires client certificates, and which port carries the encrypted traffic. Mismatches can appear as failed association requests, so test C-ECHO over TLS before moving studies. Document the settings for each peer, because a change on one side can stop transfers.
Orthanc security FAQQuestions teams ask before enabling HTTPS for Orthanc
What does enabling HTTPS for Orthanc cost to implement?
The main cost is staff time, plus certificate fees and any outside services you choose to buy. Your engineers spend time on design, configuration, certificate handling and testing, and that effort recurs whenever certificates renew or Orthanc is upgraded. Certificate cost depends on the authority. An internal certificate authority adds no per-certificate fee once it runs, while a public authority charges according to its own terms, so confirm those terms before you commit. Orthanc has no paid edition, so the software itself adds no licence line. If you hire outside help, Orthanc Team SRL quotes deployment and configuration services on request, and its pre-paid support hours are valid for 12 months. Ask for a written quote that lists each task, who performs it, and what you receive at handover.
How long does it take to enable HTTPS on Orthanc?
The duration depends on scope, not on a fixed number of days. The main drivers are whether TLS terminates inside Orthanc with SslEnabled or on a reverse proxy such as nginx, Apache or IIS, and how many entry points need encryption, including the REST API, Orthanc Explorer 2, viewers and any DICOMweb endpoints. Certificate sourcing and internal approval times matter, as do firewall rule changes and DNS updates by the network team. Peer-to-peer DICOM TLS between sites adds work, because each side needs matching trust settings and its own tests. Testing with every browser and viewer that clinicians use often takes longer than the configuration. Ask for a timeline that names each dependency, the party responsible for it, and the point where a delay moves the end date.
What does our team need to provide for HTTPS on Orthanc?
Plan to provide three things before the work starts, plus named owners who approve changes.
- Network access: administrative access to the Orthanc host and any reverse proxy, firewall change approval, and the DNS names that clients will use.
- Certificates: one certificate for each host name, issued by your internal or public authority, with its private key held under your key management policy. Confirm the certificate format your Orthanc version expects in the Orthanc Book before the request goes out.
- Test clients: the browsers and viewers your users rely on, plus a DICOM client for any peer connection tests.
Identify who approves configuration changes and who will renew certificates after go-live, because both tasks recur after the initial work is finished.
Can an in-house IT team enable HTTPS for Orthanc alone?
Often yes for a single intranet server, if the team already runs TLS on web servers. The answer depends on skills and on the risk you accept. Setting SslEnabled or configuring a reverse proxy is familiar work for most platform teams. The gaps tend to be DICOM TLS between peers, certificate renewal and rotation, validation of the client trust chain, and a test record that shows the change was checked. Ask whether your engineers have done these tasks on Orthanc before, whether one person owns certificate renewal, and whether a second person reviews each configuration change. Your team can keep the whole task or hand over only the parts it cannot cover, such as peer TLS testing or an independent configuration review. In either case, record who owns each step after handover.
Does HTTPS alone make Orthanc safe for Internet exposure?
No. HTTPS protects data in transit between a client and the server, but it does not decide who may sign in or which studies each user can see. By default, Orthanc accepts HTTP connections only from localhost. When remote access is enabled, the Orthanc security FAQ says authentication should be turned on with users defined in RegisteredUsers, and it recommends HTTPS and a reverse proxy for Internet exposure. These are separate controls, and each needs its own configuration and test. Review the DICOM listener, the authorization model and the script and export routes as well. The security FAQ warns that the script route can run system commands and that the export route can overwrite files, so both should stay disabled. Have someone test the exposed endpoints from outside your network.
What should a written quote for HTTPS on Orthanc include?
A useful quote states scope, deliverables, responsibilities and exclusions before work starts. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing first. Ask the quote to include:
- The Orthanc version, the host platform, and whether TLS terminates in Orthanc or on a reverse proxy.
- Each endpoint in scope, such as the REST API, Orthanc Explorer 2, viewers, DICOMweb and peer connections.
- Which tasks the partner performs, which tasks your staff perform, and what you receive, such as configuration files and a test record.
- Certificate handling: who requests, installs and renews certificates, and who holds the private keys.
- Test clients, pass criteria and the retest after fixes.
- Exclusions, the change process, and any support hours included with their validity period.
How DeployOpen scopes and delivers HTTPS for Orthanc
DeployOpen scopes HTTPS for Orthanc as a fixed-scope engagement, agreed in writing before work starts. We first decide whether the REST API and viewers stay on an intranet with built-in SslEnabled certificates or sit behind a TLS-terminating reverse proxy such as nginx, Apache or IIS. We then build, test, document and hand over the chosen setup inside your own infrastructure, with ongoing support available as a retainer.
How we scope
- The written scope names each Orthanc host, its clients, and whether the REST API or viewers reach beyond the intranet.
- Scope records the certificate source, format, and renewal owner, such as an internal CA or a public certificate.
- Peer HTTPS and DICOM TLS between sites are listed as separate items, each with its own test and sign-off.
How we build
- We configure SslEnabled for intranet hosts, or set up TLS termination on nginx, Apache or IIS.
- Remote access keeps authentication on, with RegisteredUsers defined and the proxy as the only public entry point.
- Certificate formats are matched to each server and checked against client trust stores before rollout.
How we hand over
- Handover includes the final configuration files, certificate inventory, renewal steps and a record of each tested endpoint.
- Test results cover HTTPS redirects, certificate chains, cipher settings and that HTTP is refused from outside localhost.
- Runbooks state who renews certificates, where keys are stored, and how to roll back a failed change.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
- Retainers can cover certificate renewal checks and retesting after Orthanc upgrades, including the 1.13.0 release.
- Confirm with us which proxy version, OS and Orthanc version your environment runs before the scope is signed.

