What you will have at the end
A host name, shop.lab, served by the gateway with a certificate your own CA issued, on which a client is admitted only when it presents a certificate signed by that CA. A client with such a certificate reaches the backend; a client with none, or with one signed by another CA, is answered 400 by the gateway before any Route is matched; a health path is served without asking for a certificate. The certificate’s private key is sent to the engine and never shown again, the refusals are request records in Traffic Explorer, and the creation of the certificate is in the audit log.
Prerequisites
- Your organization’s CA and three files it signed for this article: a server certificate for
shop.labwith that name as a subject alternative name, a client certificate for the partner system, and, for the refusal, a certificate signed by some other CA. All of them are RSA 2048 keys, made withopensslon the lab host. - A Route for the host. Here it is
partner-api,/partner/*with the hostshop.lab, forwarding to the echo servicehttpbin-backendso that the article can show the request that got through. - The engine’s TLS port, 9443 on this install. The calls below are made from a container on the gateway’s network with a small Python client, because the lab host does not publish that port;
curl --cacert ca.crt --cert client.crt --key client.key https://shop.lab:9443/partner/pingis the same call from a host that can reach it. - Traffic logging turned on under Traffic Explorer › Settings, and a role that may manage certificates. The screenshots below were taken as
nora.becker.
The server certificate for the host name
Open Certificates in the Environment’s navigation and select New certificate. Under General, Type stays Server certificate; the other choice, a client certificate, is one the gateway itself presents to a backend. Server names takes the host names clients will ask for, shop.lab here; the help under it says a leading * matches subdomains. Use names from the certificate fills the list from the certificate’s own names once it is pasted.

Under Certificate, paste the PEM or choose the files: the Certificate, with the leaf first and intermediates after it in the same text, and the Private key. The form reads the certificate as you paste and shows what it found; the key is sent to the engine and never shown again, which the field says in its own help line. Additional certificates takes a second pair for the same names, an ECDSA certificate next to an RSA one. Under Protocols, leave the TLS versions unchecked for the engine default; the measurement below negotiated TLS 1.3.
Who may connect: the client CA
Under Client certificates, switch Require client certificates on. The form says what that means in one line: mutual TLS, clients must present a certificate signed by the CA you provide. Three fields open:
- CA certificate: the PEM of your CA. The form shows the subject and the expiry it read,
CN=Cosmonot Lab CA, expires 13 Oct 2027. - Depth: how many intermediate certificates may stand between a client certificate and the trusted CA. 1, the default, is right for a CA that signs client certificates directly.
- Skip for URIs: paths served without asking for a client certificate, as regular expressions.
^/partner/health$here, so that a load balancer can probe the host without a certificate of its own.

Select Create certificate. The certificate page shows what the engine holds: the subject, the issuer, the names, the validity, the key type, the private key as •••• stored on the engine, and the client CA with its expiry.

What a client sees
Four connections to shop.lab, each verifying the server against the CA. The partner, with its certificate:
handshake ok · server CN=shop.lab issuer CN=Cosmonot Lab CA · TLSv1.3
HTTP/1.1 200 OK
The echo service received the request with Host: shop.lab. The same request without a client certificate:
handshake ok · server CN=shop.lab issuer CN=Cosmonot Lab CA · TLSv1.3
HTTP/1.1 400 Bad Request
And with a certificate signed by another CA:
handshake ok · server CN=shop.lab issuer CN=Cosmonot Lab CA · TLSv1.3
HTTP/1.1 400 Bad Request
One thing to notice: the TLS handshake completes in both refusals. The gateway asks for a client certificate, and when none that the CA signed arrives, it answers the request itself with 400 and never matches a Route. A client library that only checks the handshake will not see the refusal; the status code is where it is.
The health path without any certificate:
handshake ok · server CN=shop.lab issuer CN=Cosmonot Lab CA · TLSv1.3
HTTP/1.1 200 OK
What Traffic Explorer shows
The two refusals are request records, because the gateway answered them: 400, gateway as the Upstream node, and no route matched where the Route would be, since the client certificate is checked before routing. The admitted request and the health probe carry the Route and the backend’s address.

What the audit log keeps
Creating the certificate is an ssl.created record: who, when, and the object as the engine received it, the certificate and the CA in the clear, as they are public, and no private key at all, because the engine never returns one and the console never asks for it back.

What to do next
- Identify the caller behind the certificate as a Consumer with an identity Plugin on the Route: OAuth 2.0 access tokens at the gateway shows the token side, Directory accounts as API callers the directory side.
- The certificate options and the Plugins around them are in the capabilities reference and on API Security; the solution page is API security and identity.