Adding custom CA certificates to Zammad for LDAPS and internal systems

Zammad validates TLS against the certificates its host trusts, so an internal CA must be added correctly for LDAPS, internal mail and webhooks. This page explains how to do it without turning verification off.

On this page

Adding a custom CA certificate to Zammad so LDAPS and internal services validate

A self-hosted Zammad can trust a private certificate authority (CA) by adding that CA's certificate to the trust store the Zammad application uses, so LDAPS directories, internal mail servers and webhook receivers validate without weakening TLS. Teams need this when their directory, mail relay or internal ticketing and monitoring endpoints are signed by an internal CA that public clients do not recognize. The failure usually appears during setup: an LDAP bind or directory sync fails with a certificate error, an outbound mail test is rejected, or a webhook call returns a handshake failure. Under deadline pressure, the quick fix is to turn off certificate verification, which removes the protection the connection was meant to provide and often survives long after the incident.

Two components matter here, and they are easy to confuse. The Zammad host is the operating system whose trust store decides what the Zammad server process accepts when it opens an outbound connection, and the application's own settings or runtime can add a further layer. Confirm for your version, in the Zammad documentation and on a staging copy, which mechanism Zammad reads for custom CA files and whether it needs a restart or container rebuild to pick them up. For a package install, the host trust store is the usual starting point. For Docker Compose or Kubernetes, the CA file must be mounted into the container, and a change to the image or pod can silently drop it on the next update. Keep the certificate chain in your change record so that a patch cycle does not reopen the failure.

Which trust approach fits which integration

This table compares the three ways to make Zammad trust an internal certificate authority, along with the option that is never acceptable. Read each row by first checking the integration you need to connect, then the trade-offs for upgrades, containers and multiple nodes. The main takeaway is that trusting the internal CA is usually the durable choice, while single-certificate files and endpoint-specific certificates fit narrower cases.

ApproachWhen it fitsWhat it affectsTrade-offs for upgrades, containers and nodes
Internal root or intermediate CA in the host trust storeSeveral internal services (LDAPS, mail, webhooks) share one private CA and you run Zammad on a host you manageLDAPS, SMTP or IMAP, and webhooks, if the runtime reads the system trust storeSurvives application upgrades, but must be repeated on every node and rebuilt into custom container images; confirm how your package or image reads the store
Single-certificate PEM file referenced in Zammad settingsOne integration accepts a specific certificate file and you want to limit trust to that endpoint's chainThe specific integration whose settings accept a PEM file; confirm which Zammad settings expose this option in your versionEasy to scope, but each node needs the same file, and file paths must be kept in sync through upgrades and configuration changes
Dedicated certificate for one specific endpointA single internal server uses a certificate from a private CA and no other service needs that CAOne endpoint only, such as an LDAPS directory or an internal webhook receiverNarrowest trust scope and easiest to audit, but adds a file to track and renew each time the endpoint certificate changes
Disabling certificate verificationNot an option to list as a fit for any integrationRemoves the protection that LDAPS, mail and webhook connections rely onLeaves credentials and message content open to interception and fails most security reviews; use one of the approaches above instead

Steps to add an internal CA and verify each connection

This sequence adds an internal certificate authority to the trust store Zammad uses, then proves each internal connection validates the certificate chain before users depend on it.

  1. Export the internal CA certificate as PEM

    The infrastructure or PKI team exports the internal root or intermediate CA certificate in PEM format, the text form that begins with a BEGIN CERTIFICATE line. Do not export the private key. Ask the PKI owner which CA issued the LDAPS server certificate, the internal mail server certificate and any webhook endpoint certificate, because each chain may end at a different root. The step is done when you hold a PEM file for every CA in those chains and can state which service each one protects.

  2. Confirm one certificate per file

    Open each PEM file in a text editor or inspect it with an OpenSSL command such as openssl x509 on the file. Each file should contain exactly one BEGIN CERTIFICATE and END CERTIFICATE block. If a file bundles a root and an intermediate together, split it into separate files so each certificate can be referenced and replaced on its own. The step is done when every file parses as a single valid certificate and its subject and expiry date match what the PKI owner expects.

  3. Place the certificates in the trust location

    Copy the verified files to the trust location documented for your installation method: the operating system store for a package install, a mounted volume or configuration for Docker Compose, or a ConfigMap or Secret for a Kubernetes deployment. Exact paths, file names and environment settings change between versions, so confirm them in the official admin documentation for the version you run before editing anything. The step is done when the files exist at the expected path inside the Zammad application container or on the host, with readable permissions for the service user.

  4. Reference the CA in each integration

    Point each integration at the trusted CA where it is configured: the LDAP or directory source settings for LDAPS, the outgoing and incoming mail account settings for internal mail servers, and the webhook or trigger configuration for internal endpoints. Keep the verification option enabled for every one of them. Confirm in the admin documentation whether a given setting expects the CA file path, a certificate bundle, or relies on the system store. The step is done when each integration has a documented CA reference and no SSL verification setting has been turned off.

  5. Restart the Zammad services

    Restart the Zammad application processes, background workers and scheduler so they load the new trust store, using the restart method for your installation (system services for a package install, container restart for Docker Compose, or a rollout for Kubernetes). Check the logs for startup errors that mention the certificate file. The step is done when all Zammad services report healthy after restart and no certificate-related errors appear in the application log.

  6. Test the LDAPS connection

    From the Zammad host or container, run a TLS handshake test against the LDAPS port, for example with openssl s_client and the CA file, and confirm the output reports a verified chain with a return code of zero. Then run the directory connection test from the Zammad admin interface and confirm an authenticated bind and a user lookup succeed. The step is done when the handshake verifies without an override flag and the directory test passes.

  7. Test mail and webhook connections

    For the internal mail server, run a TLS check against the SMTP or IMAP port with the CA file, then send a test message through the configured outgoing account and fetch through the incoming account. For a webhook, send a test request from a trigger or scheduled job to the internal endpoint and confirm the receiving system logs an accepted request. The step is done when the mail round trip completes and the webhook delivers with the certificate validated.

  8. Record the trust chain and expiry dates

    Document each CA file, the integrations that use it, the verification command output and the certificate expiry dates, and assign an owner for renewal. Set a reminder well ahead of the earliest expiry, and re-run the handshake tests after any CA rotation or Zammad upgrade. The step is done when the record exists, names an owner, and lists the test commands so another engineer can repeat them.

How the trust chain is checked for LDAPS, mail and webhooks

The check starts when Zammad opens a TLS connection to an LDAPS server, an internal mail server or a webhook receiver. The server answers with its leaf certificate, and Zammad's client library builds a chain from that certificate up to a root. The chain is accepted only if its top anchors to a CA in the trust store that you added. Check the chain, the hostname on the leaf certificate and the trust store path first when a connection fails.

Zammad checks each internal server's certificate chain against the trust store you configure.

Why disabling SSL verification creates risk

Turning off certificate checks is the fastest way to make LDAPS, mail and webhook errors disappear, and it is also the fastest way to hide an interception problem. The cards below cover the risk itself and the controls that keep a private CA trust change safe to run over time.

Interception of directory and mail traffic

With verification disabled, Zammad will open a LDAPS session or an SMTP connection to any server that answers, including one sitting between Zammad and the real directory. Bind credentials for the service account and mail login details can then be captured. Before you choose this shortcut, confirm which hosts Zammad connects to and whether each one has a certificate chain you can actually validate.

Zammad requirements

Trust store changes need scope

Adding an internal CA to the trust store extends trust to every certificate that CA signs, not just the one server you had in mind. Limit the trusted file to the CA certificate needed for the named internal service, and record which system needed it. Ask the reviewer to confirm that the CA is restricted to internal names.

Never copy CA private keys to Zammad

Zammad only needs the public certificate of the issuing CA or the server certificate chain. A CA private key on an application host would let anyone with root access on that host sign certificates the organization trusts. Keep signing keys in your PKI system, and confirm during review that only the public PEM file reached the Zammad host.

Monitor expiry and rotation

An internal certificate that expires can break LDAPS logins and webhooks on a day nobody planned for. Track the expiry date of each server certificate and of the CA that issued it, and schedule replacement well before the deadline. Write down who owns each internal certificate so a renewal does not depend on one person's memory.

Log and test every change

Record the file added, the reason, the requester and the date for each trust change. Test the new trust on a staging copy of Zammad, including a directory login and a test email, before production. A tested change with a written rollback is much easier to defend in an audit than a file edited directly on a live server.

Container images and upgrades reset trust

Trust files added inside a running container or copied into a package install can disappear when the image is rebuilt or the package is upgraded. Keep the CA file under configuration management or in a mounted volume, and check that it survives each upgrade. Include a trust check in the post-upgrade test so a silent reset is found before users report failed logins.

Questions buyers ask about internal CA setup in Zammad

How much effort does adding a custom CA to Zammad take?

For a single integration with the certificate already in hand, the work is small. Effort grows with the number of systems that need trust (LDAPS, internal mail, webhooks), how mature your PKI process is, and whether Zammad runs as a single package install or as several containers or cluster nodes. Each container image or node needs the trust change applied and verified, and every certificate renewal repeats part of the work. Cost follows that effort: you pay for internal time, or for a partner's scoped work. Ask any partner for a quote that lists each system, the CA chain type you will supply, the deployment method and the test steps. DeployOpen prices from a written scope, so the same list is what you should bring to any quote request.

How long does a custom CA change take to complete?

The technical change is usually short. Most of the elapsed time comes from getting the right root or intermediate certificate from the PKI owner, agreeing a change window, and testing LDAPS, mail and webhook connections after the restart. If your certificate authority is a managed internal service with quick access, the schedule is short. If each change needs a formal approval cycle, plan for that approval time before the engineering starts. Confirm with your PKI and change teams which windows are open and how long their approvals take, because those answers set the timeline more than the Zammad steps do.

Can our own team add a custom CA to Zammad without a partner?

Yes, for a single integration where your team already has access to the PKI and to the Zammad server or container configuration. The steps are a PEM file with one certificate, a documented way to make Zammad trust it, a restart, and a connection test. The risk comes from the details: sending a server certificate where a CA certificate belongs, mixing several certificates in one file, or turning off SSL verification to make a test pass. Your team can avoid those by testing each connection in isolation and recording the result. A partner becomes more useful when several integrations, several nodes or a regulated change record are involved.

What do we need to provide before the CA work starts?

You will need four named owners. The PKI owner supplies the correct CA certificate in single-certificate PEM form and confirms whether the target uses an intermediate chain. The directory administrator confirms the LDAPS host name, port and that the certificate covers it. The mail administrator confirms the internal SMTP or IMAP host and its certificate. A change approver signs off the restart window and the rollback plan. You also need someone with access to the Zammad host or container configuration and a staging copy for testing. Missing any of these usually delays the work more than the technical steps do.

Does a custom CA setup need a partner for multi-node Zammad?

A partner is worth considering when Zammad runs on several nodes or containers, because each instance must trust the same CA and be restarted in a controlled order. Regulated environments add evidence requirements: change records, test results and proof that verification stayed on. You can handle this internally if your change process is mature and your team has done container or cluster work before. Ask any provider how they will apply the trust change to every instance, how they will verify it on each one, and what evidence they will hand over. DeployOpen plans and documents this kind of work in infrastructure the client controls, and it does not issue audit reports or certifications, which remain with independent auditors.

What breaks if we turn off SSL verification to get Zammad working?

Turning off verification makes Zammad accept any certificate for that connection, including one presented by an attacker on the network path. For LDAPS, that can expose directory bind credentials and user lookups. For mail and webhooks, it can expose message content and API tokens. The fix is to trust the correct CA, not to disable checks. Keep verification on in production, and if a temporary test requires a change, record it, time-limit it and revert it. Auditors and security reviewers will look for this setting first, so document the final configuration.

How do we check that Zammad trusts the internal CA correctly?

Test each connection separately from the Zammad host, using the same CA file, before you test inside Zammad. For LDAPS, confirm the directory answers with a valid chain. For mail, confirm the SMTP or IMAP session negotiates TLS and validates. For webhooks, call the endpoint and confirm a successful response. Then test inside Zammad: run the LDAP connection test, send a test email and fire a trigger that calls the webhook. Repeat the checks after every restart and certificate renewal, and keep the results with the change record.

What your team provides and what DeployOpen delivers

Before work starts, your team provides the root or intermediate CA certificates that issue the certificates for your LDAPS directory, internal mail servers and webhook receivers, along with the list of every endpoint Zammad must reach over TLS. Each endpoint should be listed with its host name and port, because the certificate must match the name Zammad connects to. You also provide administrative access to the Zammad hosts (or to the container images and configuration that feed them), a change window agreed with the people who run those hosts, and test accounts for LDAP, mail and webhook targets so that validation can be checked with real logins and real deliveries. Confirm with your PKI owner which certificate files are public CA material and which must never leave your control, since the handover should contain only what Zammad needs.

In a fixed-scope engagement, DeployOpen delivers the CA bundle prepared as single-certificate PEM files in the format Zammad expects, the configuration changes applied on each Zammad node, and a test plan covering each endpoint with both successful and failing validation cases. The written verification record lists every endpoint, the certificate chain presented, the file used, the test performed, the result, the Zammad version tested, and the person who approved the change. It also records any endpoint where verification was deliberately left at a stricter or looser setting, with the reason. Scope, deliverables and timelines are agreed in writing before work starts, so questions about extra endpoints, additional nodes or a retest after certificate rotation should be settled in the scope document rather than during the change window.

Ask for the verification record to be kept with your change records and reviewed when certificates renew. Your team should confirm the Zammad version and deployment method in the scope, since file locations and reload steps differ between package, Docker Compose and Kubernetes installs, and DeployOpen's work follows the environment you run. Ongoing certificate rotation, upgrade retesting and continuous monitoring are not part of a one-time delivery and can be discussed as a separate retainer if you want them covered.

How DeployOpen works on this

DeployOpen scopes certificate trust for Zammad as part of the wider deployment, so LDAPS, internal mail and webhook endpoints are validated against the certificate authority your organization actually runs. The work is planned in writing, built in the infrastructure you control, and handed over with the evidence your security team needs to review it.

How we scope

  • Inventory every internal endpoint Zammad must reach over TLS, including LDAP directories, mail servers and webhook targets.
  • Confirm which CA issued each endpoint certificate and whether intermediates must be included in the chain.
  • Agree in writing which trust changes are in scope and which systems stay out, as part of a fixed-scope engagement.

How we build

  • Prepare single-certificate PEM files for each CA and test them against each endpoint before changing production.
  • Apply trust settings in your Zammad installation method, whether package, Docker Compose or Kubernetes, and record each change.
  • Confirm that SSL verification stays enabled on every integration and that no workaround disables certificate checks.

How we hand over

  • Deliver a written record of each trusted CA, the endpoints it covers, and the owner responsible for renewal.
  • Document the test steps and expected results so your team can repeat verification after an upgrade or restart.
  • Provide an operations note covering certificate expiry dates, rotation steps and where the trust files live on each node.

How we support

  • Offer ongoing support and upgrades as a retainer, so trust settings are rechecked when Zammad or the internal CA changes.
  • Retest LDAPS, mail and webhook connections after certificate renewals or CA rotations, as agreed in the scope.
  • Support security testing of the Zammad installation, including checks that certificate validation has not been weakened.

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.