MISP behind a reverse proxy with TLS

Publish MISP securely behind NGINX, Apache or a load balancer, with the mandatory BASE_URL, certificate placement, custom root CAs and sync partner API traffic working through the proxy.

On this page

Why MISP behind a reverse proxy with TLS needs a deliberate design

Before an organization exposes a MISP instance to analysts, sync partners and feed traffic, the proxy, the certificates and the public URL need to be designed together. The BASE_URL setting is the point where they meet. In the misp-docker project, BASE_URL is mandatory, and the NGINX web server runs in its own container rather than inside the core MISP container. That split means the proxy layer is not an afterthought you bolt on later: it is part of the deployment model, and the value you set for BASE_URL has to match the hostname and scheme that users and partners actually reach. A mismatch shows up as broken links, login redirects and sync problems that look like application faults.

A reverse proxy or load balancer in front of MISP does several jobs: it terminates TLS, presents the certificate clients validate, routes requests to the application, and gives you one place to apply access rules and logging. Teams usually place NGINX or Apache in front of a native install, and often place a managed or hardware load balancer in front of either. Each option changes where certificates live, which component sees the client address, and how long requests can run. The misp-docker project also disables SSL when certificates are missing, so a container can appear to start normally while serving plain HTTP. Confirm the certificate paths and the expected HTTPS behavior in the project README before you test from outside the network. The misp-docker README is the reference for the current variables.

The design differs between native and Docker installs. A native install on the Ubuntu installer path configures its own web server during installation, while a misp-docker deployment spreads web serving, the application and supporting services across containers with their own volumes and variables. Decide early which component owns TLS, which owns the public hostname, and who renews certificates. Ask your MISP administrator to document the chosen layout, then test both browser login and API calls from a sync partner's network before any partner is onboarded.

How requests and certificates flow through the proxy

The diagram starts with users, sync partners and feed fetches arriving at the TLS proxy on the internet side of the boundary. The proxy terminates TLS with the certificate you place on it and forwards requests to the MISP web container inside the internal network. MISP's own outbound calls for feeds and sync trust the custom root CA bundle, so check that the chain is complete at both the proxy and the MISP container.

Inbound traffic crosses the proxy boundary; outbound calls depend on the CA bundle.

Which proxy and certificate options fit which environment

This table compares three ways to publish MISP: the NGINX container in misp-docker, a host-level NGINX or Apache in front of a native install, and a corporate load balancer that terminates TLS. Read each row as a decision point, and treat the load balancer column as the one most likely to need extra checks for sync partners and API clients.

Decision pointNGINX in misp-dockerHost NGINX or Apache, native installCorporate load balancer terminates TLS
Who manages certificatesYour team places certificate files in the NGINX container's mounted configuration; renewal is handled on the Docker hostYour team manages certificates on the web server host, including renewal and reloadThe network or platform team manages certificates on the load balancer; MISP may only see plain HTTP
Where BASE_URL is setSet BASE_URL in the .env file to the public HTTPS address; the variable is mandatorySet the ServerName or server_name and the MISP base URL in the application configuration to the public HTTPS addressSet the MISP base URL to the public HTTPS address the load balancer presents, not the internal hostname
Forwarded headers and client IPConfirm the container's proxy settings pass the original host and scheme so MISP generates HTTPS linksPass X-Forwarded-Proto, Host and client IP headers explicitly and confirm MISP trusts only your proxyConfirm the load balancer sets X-Forwarded-Proto and X-Forwarded-For, and that MISP trusts only that hop
Sync partner API trafficWorks if the public address and certificate chain are reachable from partners; test a sync pull after setupWorks with the same checks; body size and timeout limits on the web server can break large sync or search requestsCheck idle timeouts, request body limits and whether partners' client certificates or tokens survive termination
Custom root CA for outbound feeds and syncAdd the root CA as a .crt file in the documented location so MISP trusts internal feed and sync endpointsInstall the CA in the operating system trust store and confirm PHP and the MISP workers use itOutbound trust is separate from inbound termination; the MISP host still needs the internal CA for its own outbound calls
Internal-only deploymentsUsually simplest, with an internal certificate authority and no public endpoint requiredSuited to internal-only hosts, but internal certificate issuance and renewal must be planned as a serviceCommon in regulated networks; confirm the load balancer's access logs and MISP's own audit logs both record the user
Traffic inside the network after terminationTraffic between the proxy and MISP stays on the Docker network unless you add TLS thereTraffic between the proxy and PHP-FPM stays on the host unless you add TLSTraffic from load balancer to MISP may be plain HTTP; confirm your policy allows this on your network segment
Who to ask during planningAsk your Docker host owner and security team to confirm the certificate storage path and renewal processAsk your web server owner and PKI team to confirm certificate issuance, renewal and reload stepsAsk the load balancer team to confirm termination settings, header injection, timeouts and change control for MISP endpoints

Set up BASE_URL, certificates and the proxy in order

This sequence takes MISP from an internal address to a publicly reachable HTTPS endpoint in a fixed order, so that each change is verified before the next one depends on it. The order matters because MISP generates links from BASE_URL and turns SSL off when certificate files are missing.

  1. Confirm the external address and DNS record

    Before touching any configuration, the platform owner and network team agree the exact externally visible address MISP will use, including scheme, hostname and any non-standard port. Confirm that DNS resolves that name to the proxy or load balancer and that the name matches the certificate you plan to issue. Done means a lookup from outside the network returns the expected address and the name is written down for the next step.

  2. Set BASE_URL to the external address

    In the misp-docker .env file, set BASE_URL to the full externally visible address, such as ` (illustrative), and treat the variable as mandatory because the project moved NGINX into its own container and the setting is required for the stack to route correctly. Keep the value identical everywhere it appears, including the proxy's server name. Done means the variable is set, the stack restarts cleanly, and the value matches the address your users type.

  3. Place certificate and key files where NGINX reads them

    Copy the server certificate chain and private key into the directory the NGINX container or host proxy is configured to read, and restrict the key file to the service account that needs it. In misp-docker, confirm the certificate and key paths in the compose configuration and that the files are mounted into the container, not only present on the host. Done means the files exist at the mounted paths, the key permissions are restricted, and the proxy starts without file-not-found errors.

  4. Confirm SSL is active in the container

    Because misp-docker disables SSL when certificates are missing, a stack can start and serve plain HTTP without any visible failure. Check the NGINX container logs and the active configuration to confirm the TLS listener is enabled and that the certificate file names match what the container expects. Done means the logs show the TLS listener bound on port 443 and no fallback to HTTP is logged.

  5. Add custom root CAs with a .crt extension

    If MISP must reach internal feeds, sync partners or a private certificate authority, place each root CA certificate in the custom CA directory with a .crt extension, since files with other extensions are not picked up. Ask the PKI team for the root and any intermediate certificates the chain requires, and rebuild or restart the container so the trust store reloads. Done means outbound calls to the internal endpoint succeed from inside the MISP container without certificate verification errors.

  6. Verify the login page over HTTPS

    From a client browser outside the internal network, open the external address and confirm the MISP login page loads over HTTPS with no mixed-content warnings. Check that the address bar shows the expected hostname and that redirects keep the same scheme and host. Done means the login page renders from the external address and the browser shows no certificate warnings.

  7. Validate the certificate chain externally

    Use an external TLS checker or openssl s_client from a host outside the network to inspect the full chain sent by the proxy, including the leaf certificate, intermediates and expiry date. Confirm the chain is complete so that clients without the intermediates still trust the site, and that the server name matches the certificate. Done means the chain validates to a trusted root with no missing intermediates and the hostname matches.

  8. Test an API call from outside the network

    From an external host, call a simple authenticated endpoint with an API key created for a test user, such as the version or user-information endpoint, and confirm it returns a valid response over HTTPS. Check that the API keys and headers pass through the proxy unchanged and that no redirect strips the authorization header. Done means the API call returns the expected JSON through the external address, which is the path sync partners and automation will use.

Trusting internal and custom root CAs for outbound feeds and sync

The reverse proxy protects inbound traffic to MISP, but it does nothing for the connections MISP makes outward. When MISP fetches a feed, pulls events from a sync partner or calls an internal service such as a misp-modules host, the MISP containers must trust the certificate authority that signed the remote end. If your organization uses an internal or custom root CA, or a partner's feed host presents a chain signed by a CA that is not in the default bundle, those outbound requests fail certificate validation. The symptom is usually a feed or sync job that errors while the web interface and inbound API calls keep working, which makes the fault easy to misdiagnose as a proxy problem.

In misp-docker, custom root CAs are added by placing the certificate file in the directory the project designates for them, and the file must carry a .crt extension or it will not be picked up. Treat the change as part of the deployment record: name each CA after the issuing authority, keep the file under version control with the rest of your configuration, and record which feed hosts and sync partners depend on it. Check the current behavior in the misp-docker README before you rely on it, including which directory is read, whether a container restart is needed and how the setting behaves in your image tag. Confirm these details against the version you have pinned rather than against older examples.

After the change, test outbound trust from inside the MISP container, not from your workstation, because the container's CA store is the one that matters. Run a TLS handshake against each feed host and sync partner, confirm the chain validates, and then trigger one feed fetch and one sync pull from the MISP interface and read the job output. Repeat the test after every image update, since a new base image can change the default trust store. Ask your partners which CA signs their certificates and when it rotates, so that a planned renewal does not become an outage on your side.

Keeping sync partner API traffic working through the proxy

Sync partners pull and push events through the same proxy that serves analysts, so a setting that works for browsers can silently break machine-to-machine traffic. The cards below cover the parts of the proxy layer that most often break partner sync: how the public URL is advertised, how large pushes are handled, how certificates change, what gets blocked, and how to test from outside your network.

Forwarded headers and BASE_URL

MISP builds links and sync configuration from the public address it believes it has. If the proxy does not pass the original host and scheme, partners may receive internal addresses or plain HTTP links. Set BASE_URL to the exact public HTTPS address partners use, and confirm that the proxy forwards the Host and X-Forwarded-Proto headers. Check the sync server entry on each partner's side after any change, since a mismatched URL can make a sync link look healthy while pointing somewhere else.

misp-docker README

Request body and timeout limits

Large event pushes and bulk attribute uploads can exceed the default request body size or hit a proxy read timeout before MISP finishes processing them. The failure often appears as a partner error with no matching entry in the MISP log. Set the maximum body size and timeouts on the proxy to match the largest events your communities exchange, and test one of your biggest events end to end. Ask each partner what size and timeout their own client uses.

Certificate renewal without breaking trust

Partners that pin certificates or import your root CA will fail when a renewed chain changes issuer or intermediate. Before renewal, confirm with each partner whether they pin the leaf, the intermediate or a root, and whether they can trust the new chain in advance. Keep the full chain on the proxy, reload the proxy after replacement without dropping connections, and verify the served chain from outside your network afterwards.

IP allowlists and rate limits

Firewalls, WAF rules and proxy rate limits often treat a sync server as a bot. Partners pulling feeds on a schedule can look like bursts, and a shared egress address can hit a limit meant for one client. Decide whether partner traffic gets its own path or allowlist, record which source addresses each partner uses, and ask partners to tell you when their egress addresses change. Review blocked requests from the proxy log, not only from MISP.

Testing a partner pull from outside

Internal tests miss problems that only appear on the public path, such as DNS, firewall rules and certificate chains. Run a pull from a host outside your network that mirrors a partner's client, using the same API key type and sync URL the partner uses. Confirm the response status, the event count and the time taken, and repeat the test after every proxy or certificate change. Store the test steps so the next change can reuse them.

Questions teams ask before putting MISP behind a proxy

How much effort does a MISP reverse proxy and TLS setup take?

The effort depends less on the proxy software than on how many decisions the team has to make before the first request. Expect work in four areas: choosing the public hostname, issuing and placing certificates, setting the BASE_URL value so MISP generates correct links, and testing that sync partners and API clients still connect. A single NGINX or Apache virtual host is quick to write. Getting the trust chain, headers and sync traffic right across every partner takes longer, and the total grows with the number of partners, internal tools and load balancers in front of the instance. Ask any partner to split their estimate into these four areas so you can see where the time goes.

What drives the cost of doing this in-house versus with a partner?

Cost comes from who does the work, how many environments need it, and how much testing is required. In-house, you pay for staff time from network, security and MISP administrators, plus any certificate tooling you buy. With a partner, you pay for a fixed-scope engagement agreed in writing before work starts, which is usually easier to budget. The main cost drivers are the number of MISP instances (production, staging, sharing hub), whether a load balancer or WAF sits in front, how many sync partners must be verified, and whether custom root CAs are needed for outbound feeds. Ask for a quote that lists each environment, each proxy layer and the verification steps separately. Recurring costs include certificate renewal and proxy configuration changes after MISP upgrades.

Can our team set up MISP behind a proxy without outside help?

Yes, if you have people comfortable with NGINX or Apache, TLS certificates and MISP's configuration. The official Docker project has moved NGINX into its own container and makes BASE_URL mandatory, so the proxy layer and the application configuration must agree from the start. Teams that have not run MISP before often underestimate the sync side: partners call the API over the public name, so a proxy rule that blocks or rewrites headers can break sync without any visible error in the web interface. A useful test is whether one engineer can explain how a sync request reaches the MISP application and why. If not, plan for review or a partner check before go-live.

What does the work need from our side?

Prepare these inputs before the work starts: a public DNS name for the MISP instance, a certificate issued for that name (or a plan to issue one), network routes from the proxy to the MISP host, and firewall rules that allow inbound HTTPS from the sync partners you need. You also need the internal root CA certificates your outbound feeds and sync peers use, saved in the format the Docker project expects, which is a .crt extension for custom root CAs. Name the people who can approve DNS and firewall changes, and the contacts at each sync partner who can test API connectivity with you. Missing any of these usually stalls the project more than the configuration itself.

What breaks sync if BASE_URL or CA trust is wrong?

A wrong BASE_URL is the most common cause of broken links and failed callbacks, because MISP builds URLs from that value and uses them in responses and integrations. If it does not match the public name partners use, links in alerts and exports point at the wrong host. CA trust problems appear when MISP cannot verify the certificate of a feed or sync peer. The outbound request then fails, often in background jobs, so the symptom shows up as a stalled pull rather than an error on screen. Check both on every instance after changing the proxy, and test one pull and one push with each partner. Your partners' own documentation and the MISP project's troubleshooting guidance should set the expected results for each test.

Does a DeployOpen engagement include certificate and compliance sign-off?

DeployOpen plans, configures and tests the reverse proxy, TLS settings, custom root CA handling and sync connectivity in your infrastructure as agreed in a written scope. DeployOpen can also prepare configuration records and evidence that your compliance or security teams review. DeployOpen does not issue audit reports, attestations or certifications. Any compliance sign-off comes from your internal assessors or an independent auditor, and you should confirm with them which evidence they need before the scope is written.

How do we confirm the setup is correct before partners depend on it?

Test in a staging instance that uses the same proxy layers and certificate chain as production. Confirm that the web interface loads over HTTPS with the expected name, that BASE_URL matches that name, and that an API call with a valid key returns the expected data. Then run one pull and one push with each sync partner from a non-production instance, and record the results. Review proxy logs for rejected requests and certificate errors after the first scheduled sync. Repeat these checks after every MISP upgrade or proxy change, since either can alter headers, paths or trust settings.

How DeployOpen scopes a MISP proxy and TLS engagement

A proxy and TLS engagement starts with a written design, not a configuration file. DeployOpen first maps how MISP will be reached: the browser and API clients on the user side, sync partners and feed sources on the outbound side, and the load balancer, reverse proxy and certificate authority that sit between them. The design fixes the public hostname that becomes BASE_URL, decides where TLS terminates, sets which paths and headers the proxy passes through, and records which internal address each request ends at. It also records which sync partners connect inbound, since their API traffic must reach the instance unchanged through the proxy. Those decisions are agreed with the client's network, security and MISP administrators before any change is made to a running instance.

Once the design is approved, DeployOpen documents the configuration as a deliverable the client can keep: the proxy and load balancer settings, certificate file locations, the custom root CA files for outbound feeds and sync, and the verification steps for each. Testing covers the paths the design depends on, including sync and feed pulls, API key requests and the web login flow, from networks that resemble the production path. The handover includes a runbook for certificate renewal, with the owner of each step, the commands to reload the proxy, and a check that confirms the new certificate is served and that sync still succeeds afterward. Confirm with your own team how renewal alerts are sent and who receives them. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and DeployOpen carries out the work inside your own cloud accounts, data centers or air-gapped networks.

How DeployOpen delivers MISP proxy and TLS work

DeployOpen plans and builds MISP behind your reverse proxy or load balancer as part of a self-hosted deployment in infrastructure you control. The work covers the proxy path, certificate handling, outbound trust and sync partner access, with each step documented so your own team can run it after handover.

How we scope

  • Confirm the MISP deployment method, version and public hostname before any proxy configuration is written
  • Record the proxy or load balancer product, certificate source and who issues and renews certificates
  • List outbound feeds and sync partners that need custom root CAs and document their API access paths
  • Agree the scope in writing as a fixed-scope engagement, with ongoing support available as a retainer

How we build

  • Set the public BASE_URL so links, API responses and sync endpoints resolve to the address partners use
  • Place certificates and private keys in controlled locations and confirm that TLS is enforced end to end
  • Add custom root CAs with the expected file extension and verify feed fetches and sync connections succeed
  • Test sync partner API calls through the proxy, including headers, request size limits and timeouts

How we hand over

  • Deliver a written configuration record covering proxy rules, certificate paths, trust store changes and renewal steps
  • Provide a test checklist your team can repeat after certificate renewal or proxy upgrades
  • Document how to diagnose common failures such as mixed content, redirect loops and rejected partner calls
  • Walk your operators through ownership of each component so responsibilities are clear after handover

How we support

  • Review proxy and certificate changes before they reach production, including MISP upgrades that touch the web layer
  • Re-run the partner API and feed checks after changes to the proxy, certificates or trust store
  • Keep the configuration record current with each change agreed under the retainer
  • Confirm supported proxy and certificate options with your security team before changing a production setup

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.