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.
When You Need This
Section titled “When You Need This”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:
| Message | Error code | What it means |
|---|---|---|
unable to get local issuer certificate | UNABLE_TO_GET_ISSUER_CERT_LOCALLY | The 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 chain | SELF_SIGNED_CERT_IN_CHAIN | The 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 certificate | UNABLE_TO_VERIFY_LEAF_SIGNATURE | The server sent only its own certificate, and whatever signed it is not trusted. |
self-signed certificate | DEPTH_ZERO_SELF_SIGNED_CERT | The 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.
Which Mechanism You Need
Section titled “Which Mechanism You Need”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 connectors | apt, npm and downloads while the image is built | ODBC | IBM DB2 | Oracle | |
|---|---|---|---|---|---|
GUI or env variable (Runtime) | yes | no | no | no | no |
The operating system’s trust store (Operating system) | yes | yes | yes | yes | yes |
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.
Configuring CA Certificates
Section titled “Configuring CA Certificates”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.
Environment Variable
Section titled “Environment Variable”The certificates can also be supplied as an environment variable, a Docker secret or appsettings.json.
| Katalogue Parameter | Holds |
|---|---|
TLS_CA_CERTIFICATES_PEM | The certificate text. |
TLS_CA_CERTIFICATES_FILENAME | The 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. |
The Operating System’s Trust Store
Section titled “The Operating System’s Trust Store”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:
docker build \ --build-arg CA_CERTIFICATE_PEM="$(cat corp-root.pem)" \ --build-arg CA_CERTIFICATE_FILENAME=corp-root.pem \ ./services/apior 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.
Network Proxy
Section titled “Network Proxy”See also Network Proxy Configuration for the proxy settings, which are a separate concern that often arrives on the same day.