Authenticated Origin Pulls, mTLS Client Certificates, and Origin Server Protection
How Cloudflare Authenticated Origin Pulls and edge mTLS work, when to use each level, limits with Tunnel and encryption modes, and how to verify origin protection.
This page summarizes Cloudflare documentation on Authenticated Origin Pulls (AOP)—mutual TLS between Cloudflare and your origin—and how that differs from client certificates (mTLS) on the path from browsers or APIs to Cloudflare. Together they address a common goal: only trusted parties get a response, whether the worry is direct hits on an exposed origin IP or unsigned API clients at the edge.
Authenticated Origin Pulls: why origin pulls need mTLS beyond Full (strict)
Section titled “Authenticated Origin Pulls: why origin pulls need mTLS beyond Full (strict)”Authenticated Origin Pulls makes sure origin pulls—the HTTPS requests Cloudflare sends to your origin when a cache miss occurs—come from Cloudflare, not from anyone who knows your origin’s IP address.
When visitors request content from your domain, Cloudflare first attempts to serve content from the cache. If this attempt fails, Cloudflare sends a request — or an origin pull — back to your origin web server to get the content.
Authenticated Origin Pulls makes sure that all of these origin pulls come from Cloudflare.
— Cloudflare, About Authenticated Origin Pulls
Without AOP, Full or Full (strict) encryption still uses ordinary TLS between Cloudflare and the origin: the origin proves its identity to Cloudflare, but Cloudflare does not present a client certificate. An external client can complete a standard TLS handshake with the origin and receive a response. With AOP enabled, Cloudflare uses a client-authenticated TLS handshake on the Cloudflare-to-origin leg, so HTTPS requests that never passed through Cloudflare should fail once the origin enforces verification.
Authenticated Origin Pulls (AOP) helps ensure requests to your origin server come from the Cloudflare network, which provides an additional layer of security on top of Full or Full (strict) encryption modes.
— Cloudflare, Authenticated Origin Pulls (mTLS)
Pairing AOP with the Cloudflare Web Application Firewall (WAF) is the usual reason operators adopt it: traffic evaluated at the edge is also what reaches the origin when pulls are authenticated.
When you combine AOP with the Cloudflare Web Application Firewall (WAF), your origin only accepts requests that have passed through Cloudflare, which means every request is evaluated by the WAF before reaching your server.
— Cloudflare, Authenticated Origin Pulls (mTLS)
How mTLS fits the origin pull path
Section titled “How mTLS fits the origin pull path”Cloudflare describes enforcement as an extra layer of TLS client certificate authentication on the connection between Cloudflare and the origin web server. For a concise threat model, see About Authenticated Origin Pulls. The same block also applies to requests targeting unproxied DNS records in Cloudflare when AOP is in scope for those cases.
Global, zone-level, and per-hostname AOP: which certificate scope to choose
Section titled “Global, zone-level, and per-hostname AOP: which certificate scope to choose”AOP has three independent configuration levels. Each level has its own certificate, enablement, and origin-side trust configuration. Turning one level on or off does not change the others.
| Level | Certificate source | Scope | Stricter identity guarantee |
|---|---|---|---|
| Global | Cloudflare-provided, shared across all accounts | All proxied traffic on the zone | Proves request is from the Cloudflare network, not your account alone |
| Zone-level | Certificate you upload | All proxied traffic on the zone | Certificate exclusive to your account; overrides global |
| Per-hostname | Certificate you upload | Named hostnames only | Takes precedence over zone and global for that hostname |
Global AOP uses a Cloudflare-provided certificate shared across all accounts, so it only proves a request came from the Cloudflare network — not from your account specifically. If you need to guarantee requests come from your account, set up zone-level or per-hostname AOP with your own certificate.
— Cloudflare, Authenticated Origin Pulls (mTLS)
The Cloudflare-provided certificate used by global AOP is not exclusive to your account. It only guarantees that a request is coming from the Cloudflare network.
— Cloudflare, About Authenticated Origin Pulls
Setup walkthroughs: Global, Zone-level, Per-hostname, and the Setup index. Per-hostname cannot use the global Cloudflare-provided certificate; you must upload your own leaf certificate and install the signing CA on the origin (Per-hostname). Upload a leaf certificate, not the root CA, or upload fails.
FIPS compliance requires your own certificate at zone-level or per-hostname (Authenticated Origin Pulls (mTLS)). Zone-level and per-hostname AOP also support ML-DSA (FIPS 204) post-quantum client certificates (Post-quantum ML-DSA certificates, Post-quantum between Cloudflare and origin servers).
Dashboard upload and association for AOP certificates are described in Manage mTLS and BYO CA certificates from the Cloudflare dashboard.
Client mTLS at the edge vs Authenticated Origin Pulls
Section titled “Client mTLS at the edge vs Authenticated Origin Pulls”These features both use mutual TLS but protect different hops. Confusing them is a common planning mistake.
When a record is proxied, TLS terminates at Cloudflare’s global network. Cloudflare establishes a separate TLS connection to your origin server. This means the origin never receives the end-user’s client certificate during the TLS handshake.
— Cloudflare, Client certificate (mTLS) validation
| Direction | Feature | Who presents the client certificate | Typical goal |
|---|---|---|---|
| Client → Cloudflare | Client certificates (mTLS) | Your API, IoT device, or browser | Restrict who can reach a hostname at the edge |
| Cloudflare → origin | Authenticated Origin Pulls | Cloudflare | Block direct-to-IP bypass of the proxy |
Standard TLS verifies the server’s identity to the client. Mutual TLS (mTLS) adds a second check: the server also verifies the client’s identity using a client certificate.
— Cloudflare, Client certificates (mTLS)
For client→Cloudflare mTLS, Cloudflare validates certificates against account-level CAs and exposes cf.tls_client_auth.cert_verified for rules (Client certificates (mTLS)). Enforcement uses WAF custom rules or API Shield mTLS rules—for example blocking when not cf.tls_client_auth.cert_verified (Configure mTLS, mTLS with Application Security). Application Security client mTLS and Cloudflare Access service-auth mTLS differ in plan, CA model, and revocation patterns; see the comparison in Use mTLS with Cloudflare protected resources.
Workers can present a client certificate on outbound fetch() via an mTLS binding (mTLS); that is server-to-server mTLS from the Worker, not the same as AOP on your zone’s origin pulls.
Limitations: Tunnel, encryption mode, certificate life cycle, and enforcement gaps
Section titled “Limitations: Tunnel, encryption mode, certificate life cycle, and enforcement gaps”Cloudflare Tunnel and AOP
Section titled “Cloudflare Tunnel and AOP”AOP is not compatible with origins connected through Cloudflare Tunnel. Tunnel uses outbound-only connections from your origin, so there is no inbound listener for Cloudflare to present a client certificate to; tunnel connector credentials already authenticate that path (Authenticated Origin Pulls (mTLS)).
Expiration and rotation
Section titled “Expiration and rotation”Cloudflare does not delete AOP client certificates when they expire unless you delete them via API. If the origin accepts only valid client certificates, expired certs cause dropped requests—set alerts 30 and 14 days before expiry (Manage certificates). Replace per-hostname certificates by uploading a new leaf and associating it; the most recently deployed certificate wins when multiple remain active (Manage certificates, AWS ALB integration).
Revocation and BYOCA
Section titled “Revocation and BYOCA”Revocation checks on cf.tls_client_auth.cert_revoked apply to the Cloudflare-managed CA for edge client certificates, not customer-uploaded BYOCA CAs (Configure mTLS, mTLS related features).
Workers mTLS to proxied zones
Section titled “Workers mTLS to proxied zones”Presenting a client certificate from a Worker to a hostname proxied on Cloudflare can return a 520 error (mTLS).
Configure the origin to require Cloudflare’s client certificate
Section titled “Configure the origin to require Cloudflare’s client certificate”Origin configuration is required for every AOP level: trust the correct CA (global pull CA PEM for Global, your own CA for zone-level and per-hostname), start with optional client verification, then enforce.
- Install the trust anchor on the origin (for example
SSLCACertificateFileon Apache orssl_client_certificateon NGINX) as shown in Global and Zone-level setup. - Enable logging and confirm successful pulls while verification is optional (
ssl_verify_client optionalon NGINX). - Turn on the matching AOP level in the dashboard Origin Server → Authenticated Origin Pulls tab or via the APIs linked from Setup.
- Enforce required client certificates (
SSLVerifyClient require/ssl_verify_client on) and confirm directcurlto the origin IP fails without Cloudflare’s client cert (Global, Per-hostname).
For AWS Application Load Balancer mutual TLS verify with per-hostname AOP, Cloudflare documents CA generation, trust store upload, and API association in AWS integration. Roll back per-hostname AOP via Roll back per-hostname AOP.
Mutual TLS concepts that apply to both directions
Section titled “Mutual TLS concepts that apply to both directions”Cloudflare’s learning material stresses bidirectional trust for mTLS in general:
Mutual TLS (mTLS) authentication ↗︎ ensures that traffic is both secure and trusted in both directions. The client presents a certificate to the proxy, and the proxy validates it before allowing the connection.
— Cloudflare, Authentication (Mutual TLS)
Stronger authentication: mTLS ensures mutual verification between the client and server, confirming that both parties are who they claim to be.
— Cloudflare, Benefits of mTLS
mTLS is intended for server-to-server (or device-to-service) trust, not replacing user login via an identity provider (Authentication (Mutual TLS)). For architecture placement with WAF and AOP, see Authenticated Origin Pulls (mTLS) in the multi-vendor reference and Application Security.
Common mistakes
Section titled “Common mistakes”- Enabling Flexible or Off encryption and expecting AOP to apply—it does not (Authenticated Origin Pulls (mTLS)).
- Assuming Full (strict) alone blocks direct origin IP access—it encrypts the pull but does not authenticate Cloudflare as the client without AOP (About Authenticated Origin Pulls).
- Uploading a root CA instead of the leaf client certificate for zone-level or per-hostname AOP.
- Enforcing edge mTLS on a CNAME target hostname instead of the hostname clients actually use (Bring your own CA for mTLS, mTLS with Application Security).
- Enabling AOP on hostnames served only via Cloudflare Tunnel and expecting it to take effect (Authenticated Origin Pulls (mTLS)).
- Relying on global AOP when you need proof the pull belongs to your account—use zone-level or per-hostname with your own CA.
How to check this on your site
Section titled “How to check this on your site”- In the Cloudflare dashboard, confirm SSL/TLS encryption mode is Full or higher for the zone or hostname using AOP (Authenticated Origin Pulls (mTLS)).
- On SSL/TLS → Origin Server → Authenticated Origin Pulls, verify the intended level (global, zone-level, or per-hostname) is enabled (Setup).
- From a host outside Cloudflare, run
curlagainst your origin IP with SNI for your site—after enforcement, the request should fail without Cloudflare’s client certificate (Global). - For edge client mTLS, test with and without
--cert/--keyand review WAF or mTLS rules usingcf.tls_client_authfields (Troubleshooting client certificates, Configure mTLS). - You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.