Skip to content

Trusted CA Certificates

Katalogue trusts the default public certificate authorities any browser trusts. When it has to reach a server whose certificate is signed by your own certificate authority — an internal mail server, or any host behind a firewall that inspects TLS — that certificate has to be trusted explicitly.

The usual reason to need this is a deployment behind a corporate proxy that inspects TLS. Such a proxy terminates each connection and re-signs it with the organisation’s own certificate authority, so everything Katalogue reaches is presented a certificate that nothing trusts yet. See Network Proxy Configuration for reaching the proxy itself, which is a separate setting and does not make its certificate trusted.

The image build is probably where this is first encountered. apt, npm ci and the Oracle Instant Client download each verify the certificate they are served. Once Katalogue is running, sending emails or connecting to internal sources might also fail, all on the same conditions listed below.

Here are examples of error messages that indicate a missing certificate. They might appear in the log, in a connection test, when sending emails or in a sync job’s result:

MessageError codeWhat it means
unable to get local issuer certificateUNABLE_TO_GET_ISSUER_CERT_LOCALLYThe server sent an intermediate certificate but not the root that signed it, and that root is not trusted. The usual shape for an internal PKI.
self-signed certificate in certificate chainSELF_SIGNED_CERT_IN_CHAINThe server sent its whole chain, including a root that signs itself and is not trusted. The usual shape behind a TLS-inspecting firewall.
unable to verify the first certificateUNABLE_TO_VERIFY_LEAF_SIGNATUREThe server sent only its own certificate, and whatever signed it is not trusted.
self-signed certificateDEPTH_ZERO_SELF_SIGNED_CERTThe server’s certificate signs itself. There is no certificate authority at all — trust that certificate itself, or have one issued properly.

All four are solved the same way: trust the certificate authority that signed the server’s certificate. That is the root of the chain — not the server’s own certificate, and not the intermediate. Pasting the server’s certificate instead is the most common mistake, and Katalogue flags it as Not a CA rather than letting it fail silently later.

There are two ways to supply a certificate to Katalogue, and which you need depends on what has to trust it.

Mail, Microsoft Graph, OIDC and most connectorsapt, npm and downloads while the image is builtODBCIBM DB2Oracle
GUI or env variable (Runtime)yesnononono
The operating system’s trust store (Operating system)yesyesyesyesyes

Most installations need only the first. The second is the only route to the Docker build (apt, npm, wget etc) and to the ODBC, IBM DB2 and Oracle drivers, which bring their own TLS and read only the operating system’s trust store. A deployment behind a TLS-inspecting proxy therefore needs it whether or not it uses those drivers.

The names in brackets are what Katalogue calls them in logs and the GUI.

In Settings -> Certificates, paste the certificate text in PEM format and save. The field takes PEM text — one or more blocks, each running from -----BEGIN CERTIFICATE----- to -----END CERTIFICATE-----. It is also possible to upload a local .pem, .crt or .cer file through the Browse… button. The file is read locally in your browser and never actually uploaded, but its name is kept as a reference to identify where the current config comes from later.

CA Certificates are public and not considered as a secret. As a safety feature, The GUI refuses values containing a private key. This prevent private keys from being accidentally uploaded and stored unencrypted.

This Settings page also contains an Installed Certificates section that lists all CA Certificates trusted by Katalogue beyond the public roots.

The certificates can also be supplied as an environment variable, a Docker secret or appsettings.json.

Katalogue ParameterHolds
TLS_CA_CERTIFICATES_PEMThe certificate text.
TLS_CA_CERTIFICATES_FILENAMEThe file it came from. Shown along the certificate in logs and the GUI as a reference, it has no other effect and is not required.

Supply the certificate where Katalogue is deployed, so the build and the native drivers can read it too. In a container image this needs no edit to the Dockerfile — either pass it on the command line:

Terminal window
docker build \
--build-arg CA_CERTIFICATE_PEM="$(cat corp-root.pem)" \
--build-arg CA_CERTIFICATE_FILENAME=corp-root.pem \
./services/api

or put one or more .pem / .crt files in services/api/ca/, which is read during the build. Both methods can be used together.

Katalogue reads these through the environment variable NODE_EXTRA_CA_CERTS, so an installation not built from the default Katalogue Dockerfile can set that variable itself. That variable is a Node.js environment variable and it must be set to a file that holds one or more certificates. It cannot be a directory or PEM string.

See also Network Proxy Configuration for the proxy settings, which are a separate concern that often arrives on the same day.