Workers: New RFC 9440 mTLS certificate fields
Four new RFC 9440-formatted fields are now available on request.cf.tlsClientAuth in Workers for mTLS client certificates, allowing direct forwarding to origins without custom parsing or encoding logic.
Four new fields are now available on request.cf.tlsClientAuth in Workers for requests that include a mutual TLS (mTLS) client certificate. These fields encode the client certificate and its intermediate chain in RFC 9440 ↗ format — the same standard format used by the Client-Cert and Client-Cert-Chain HTTP headers — so your Worker can forward them directly to your origin without any custom parsing or encoding logic.
New fields
| Field | Type | Description |
|---|---|---|
certRFC9440 |
String | The client leaf certificate in RFC 9440 format (:base64-DER:). Empty if no client certificate was presented. |
certRFC9440TooLarge |
Boolean | true if the leaf certificate exceeded 10 KB and was omitted from certRFC9440. |
certChainRFC9440 |
String | The intermediate certificate chain in RFC 9440 format as a comma-separated list. Empty if no intermediates were sent or if the chain exceeded 16 KB. |
certChainRFC9440TooLarge |
Boolean | true if the intermediate chain exceeded 16 KB and was omitted from certChainRFC9440. |
Example: forwarding client certificate headers to your origin
export default {
async fetch(request) {
const tls = request.cf.tlsClientAuth;
// Only forward if cert was verified and chain is complete
if (!tls || !tls.certVerified || tls.certRevoked || tls.certChainRFC9440TooLarge) {
return new Response("Unauthorized", { status: 401 });
}
const headers = new Headers(request.headers);
headers.set("Client-Cert", tls.certRFC9440);
headers.set("Client-Cert-Chain", tls.certChainRFC9440);
return fetch(new Request(request, { headers }));
},
};
For more information, refer to Client certificate variables and Mutual TLS authentication.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for macOS 2026.8.2100.0
GA release for macOS Cloudflare One Client with improved split tunnel handling that no longer briefly blocks traffic during reconnects, support for non-RFC 1918 local IPv4 networks, faster connects with lower memory use, and numerous reliability fixes across DNS, reauthentication, and client stability.
Cloudflare One Client for Windows 2026.8.2100.0
This GA release improves split tunnel reliability, adds support for non-RFC 1918 local networks, optimizes connection performance with faster reconnections and lower memory usage, and includes numerous bug fixes for DNS, registration, and network handling. The client now features a service recovery mechanism that automatically restarts on system unlock and better handles large hosts files without blocking traffic.
Cloudflare One Client for Linux 2026.8.2100.0
New GA release for Linux with improved split tunnel handling that no longer briefly blocks traffic during reconnects, support for non-RFC 1918 local IPv4 networks, faster tunnel reconnections, and lower memory usage. Includes numerous stability and reliability fixes for DNS, reconnection behavior, and crash issues.