- Zone-level
- Before you begin
- 1. Upload your certificate to Cloudflare
- 2. Upload the CA certificate to your origin
- 3. Configure origin to accept client certificates
- 4. Enable zone-level Authenticated Origin Pulls
- 5. Enforce validation check on your origin
- 6. (Optional) Set up expiration alerts
- Further options
- On this page
Zone-level
Last updated Apr 16, 2026 When you enable zone-level Authenticated Origin Pulls (AOP), all proxied traffic to your zone is authenticated at the origin web server using a certificate that you upload. Unlike global AOP, which uses a Cloudflare-provided certificate shared across all accounts, zone-level AOP uses your own certificate for stricter security.
Global, zone-level, and per-hostname AOP are independent configurations. Enabling or disabling one does not affect the others.
Before you begin
Make sure your zone is using an SSL/TLS encryption mode of Full or higher.
Caution
Zone-level AOP certificates are also applied to custom hostnames configured on a Cloudflare for SaaS zone. If you need a different AOP certificate for different custom hostnames, use per-hostname AOP.
Zone-level AOP requires you to upload your own certificate. Refer to the steps below for an example of how to generate a custom certificate using OpenSSL. The CA root certificate that you use to issue the custom certificate should be the same CA that you will upload to your origin.
<details>
<summary>
OpenSSL example
</summary>
- Run the following command to generate a 4096-bit RSA private key, using AES-256 encryption. Enter a passphrase when prompted.
openssl genrsa -aes256 -out rootca.key 4096
- Create the CA root certificate. When prompted, fill in the information to be included in the certificate. For the <code>Common Name</code> field, use the domain name as value, not the hostname.
openssl req -x509 -new -nodes -key rootca.key -sha256 -days 1826 -out rootca.crt
- Create a Certificate Signing Request (CSR). When prompted, fill in the information to be included in the request. For the <code>Common Name</code> field, use the hostname as value.
openssl req -new -nodes -out cert.csr -newkey rsa:4096 -keyout cert.key
- Sign the certificate using the <code>rootca.key</code> and <code>rootca.crt</code> created in previous steps.
openssl x509 -req -in cert.csr -CA rootca.crt -CAkey rootca.key -CAcreateserial -out cert.crt -days 730 -sha256 -extfile ./cert.v3.ext
- Make sure the certificate extensions file <code>cert.v3.ext</code> specifies the following:
basicConstraints=CA:FALSE
</details>
1. Upload your certificate to Cloudflare
- Go to the Origin Server page. Go to Origin Server ↗
- Select the Authenticated Origin Pulls tab.
- In the Zone-level section, select Upload certificate.
- Paste the certificate and private key, then select Continue.
Note
You must upload a leaf certificate. If you upload a root CA instead, the upload will fail. 5. Review your certificate details, save the certificate ID for future reference, and select Done.
Use the Upload a zone-level client certificate endpoint to upload your certificate.
Note
You must upload a leaf certificate. If you upload a root CA instead, the API will return a missing leaf certificate error.
2. Upload the CA certificate to your origin
Upload the CA root certificate used to sign your client certificate to your origin server. Your origin will use this CA certificate to verify the client certificate presented by Cloudflare.
3. Configure origin to accept client certificates
With the certificate installed, set up your origin web server to accept client certificates.
Check the examples below for Apache and NGINX or refer to your origin web server documentation - for example, HAProxy ↗︎, Traefik ↗︎, Caddy ↗︎.
<details>
<summary>
Apache example
</summary>
SSLCACertificateFile /path/to/origin-pull-ca.pem
For this example, you would have saved your certificate to <code>/path/to/origin-pull-ca.pem</code>.
</details>
<details>
<summary>
NGINX example
</summary>
ssl_verify_client optional;
ssl_client_certificate /etc/nginx/certs/cloudflare.crt;
For this example, you would have saved your certificate to <code>/etc/nginx/certs/cloudflare.crt</code>.
</details>
At this point, you may also want to enable logging on your origin so that you can verify the configuration is working.
4. Enable zone-level Authenticated Origin Pulls
- Go to the Origin Server page. Go to Origin Server ↗
- Select the Authenticated Origin Pulls tab.
- In the Zone-level section, switch the toggle to On.
Use the Set Enablement for Zone endpoint to enable zone-level Authenticated Origin Pulls.
Caution
This endpoint is separate from the global AOP toggle, which uses the zone settings tls_client_auth setting. Make sure you use the correct endpoint for the configuration you intend.
5. Enforce validation check on your origin
Once you can confirm everything is working as expected for your specific origin setup, configure your origin to enforce the authentication.
<details>
<summary>
Apache example
</summary>
SSLVerifyClient require
</details>
<details>
<summary>
NGINX example
</summary>
ssl_verify_client on;
</details>
After completing the process, you can use curl to send requests directly to your origin IPs, verifying that the requests fail due to certificate validation being enforced.
6. (Optional) Set up expiration alerts
You can configure alerts to receive notifications before your AOP certificates expire.
<details>
<summary>
Zone-level Authenticated Origin Pulls Certificate Expiration Alert
</summary>
Who is it for?
Customers that upload their own certificate to use with zone-level Authenticated Origin Pull (AOP) to secure connections from Cloudflare to their origin server. AOP certificate expiration notifications are sent 30 days and 14 days before the certificate expiry.
Other options / filters
None.
Included with
Authenticated Origin Pull.
What should you do if you receive one?
Upload a renewed certificate to use for <a href="https://developers.cloudflare.com/ssl/origin-configuration/authenticated-origin-pull/set-up/">zone-level AOP</a>.
</details>
Refer to Cloudflare Notifications for more information on how to set up an alert.
Further options
Refer to Manage certificates for further options.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ssl/origin-configuration/authenticated-origin-pull/set-up/zone-level/#page","headline":"Zone-level","description":"Set up zone-level Authenticated Origin Pulls with a custom certificate.","url":"https://developers.cloudflare.com/ssl/origin-configuration/authenticated-origin-pull/set-up/zone-level/","inLanguage":"en","image":"https://developers.cloudflare.com/ssl/origin-configuration/authenticated-origin-pull/set-up/zone-level/og.png?v=9cda0a622a9d896c","dateModified":"2026-04-16","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Configure how Cloudflare selects TLS 1.3 key agreement algorithms for connections to your origin servers. title: Automatic key exchange to origins image: https://developers.cloudflare.com/ssl/origin-configuration/automatic-key-exchange/og.png?v=ef78dd3fb33e0c07
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/ssl/llms.txt
Use this file to discover all available pages before exploring further.
Docs