Docs · DialCatz

Client certificates (mutual TLS)

Client certificates in DialCatz for APIs that use mutual TLS — one certificate per host, PEM or PKCS#12, with a passphrase, used by requests, WebSocket, gRPC and OAuth token requests, and kept on your computer only.

Some APIs ask who is calling before they answer: the server shows its certificate, as always, and asks the caller for one too. That is mutual TLS (mTLS). In DialCatz you say once which certificate goes to which host, in Settings → Client certificates, and every call to that host shows it.

Add a certificate

  1. Open Settings → General and find the Client certificates card. Press Add.
  2. Host — the host the certificate is for: api.example.com. See Which host gets it.
  3. Format — PEM (certificate + key) or PKCS#12 (.p12 / .pfx).
  4. Pick the files with Choose…: the Certificate and the Key for PEM, or the one File for PKCS#12.
  5. Passphrase — only when the key has one.
  6. Press Add certificate.

DialCatz checks the files before it saves: a key that does not belong to the certificate, a passphrase that does not open it, or a file in the wrong format is refused, with the reason. When it is saved, DialCatz says Requests to <host> now show this certificate.

Which host gets it

One certificate per host. The Host field takes three forms:

You type It goes to
api.example.com That host, on any port
*.example.com Every subdomain of example.com, at any depth — not example.com itself
api.example.com:8443 That host on that port only

An address pasted with https:// or a path is cut down to its host. When several fit, the exact name wins over a wildcard, and the longer name over the shorter.

A certificate is shown only on secure connections: https://, wss:// and grpcs://.

What uses it

Call Uses the host’s certificate
Requests — every HTTP kind, the runner included Yes
WebSocket, Socket.IO and Pusher connections Yes, with the handshake
gRPC calls Yes
OAuth 2.0 token requests Yes, when the token address is a host with a certificate

There is nothing to set on the request: the host decides.

The list

Each certificate is a row: a dot, the host, and its files’ names — with passphrase kept when it has one.

  • A green dot: ready.
  • A red dot, with the reason in place of the file names: the certificate cannot be used now — a file that moved, or a passphrase that is gone. Calls to that host then go out without it, and the server says so.
  • Change opens the form again. The passphrase field says unchanged: leave it to keep the passphrase, type to replace it.
  • The bin removes the certificate.

Where it is kept

Client certificates stay on this computer. They are never part of a workspace: not in a collection, not in a workspace folder, not in a DialCatz Den. Each teammate adds their own.

  • DialCatz keeps the host and the paths of the files, in its own data folder. The files stay where they are and are read when a call needs them — so a renewed certificate saved over the old one is picked up by itself.
  • The passphrase is encrypted for your user account by the system’s secret store (Keychain on macOS, DPAPI on Windows, the keyring on Linux). Where the system has none, it is held only until DialCatz quits, and you type it again next time.

Not the same as certificate checks

A client certificate says who you are. Whether DialCatz trusts the server’s certificate is another matter: see Certificate checks and the Skip certificate checks setting.

From the command line

The CLI does not read the certificates set in the app. It takes one from its own options: --cert with --key for PEM, or --pfx for PKCS#12, the passphrase from --passphrase or the DIALCATZ_CERT_PASSPHRASE environment variable, and --cert-host to limit it to one host.

With MCatzP

Through MCatzP, an AI assistant can see which hosts have a client certificate and whether each is ready (get_settings) — never a file’s path, never a passphrase. It cannot add, change or remove one: that stays yours, in Settings.

Limits

  • One certificate per host.
  • A certificate or key file can be up to 1 MB.
  • The files are read from where you picked them: move or delete one and the row turns red until you choose it again.

Last updated 2026-11-23