Setup (9)
Last updated May 5, 2026
Geo Key Manager v2 Beta
Note
Geo Key Manager v2 is only available through the Cloudflare API.
Geo Key Manager v2 gives customers flexibility when choosing the geographical boundaries of where their keys are stored.
Using the policy field, customers can define policies containing allow and block lists of countries or regions where the private key should be stored.
To use Geo Key Manager v2 with the API, generally, follow the steps to upload a custom certificate.
When sending the POST request, include the policy parameter to define policies containing allow and block lists of countries or regions where the private key should be stored.
Note
You also have access to the geo_restrictions parameter, which is mutually exclusive with the policy parameter and is part of Geo Key Manager v1.
Examples
Store private keys in the E.U. and the U.S.
<details>
<summary>
Required API token permissions
</summary>
At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required:
- <code>Access: Mutual TLS Certificates Write</code>
- <code>SSL and Certificates Write</code>
</details>
Create SSL Configurationbash
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/custom_certificates" \
--request POST \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--json '{
"certificate": "certificate",
"private_key": "<PRIVATE_KEY>",
"policy": "(country: US) and (region: EU)",
"type": "sni_custom"
}'
Store private keys in the E.U., but not in France
<details>
<summary>
Required API token permissions
</summary>
At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required:
- <code>Access: Mutual TLS Certificates Write</code>
- <code>SSL and Certificates Write</code>
</details>
Create SSL Configurationbash
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/custom_certificates" \
--request POST \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--json '{
"certificate": "certificate",
"private_key": "<PRIVATE_KEY>",
"policy": "(region: EU) and (not country: FR)",
"type": "sni_custom"
}'
Note
For more information on the policy field, refer to Supported options.
Geo Key Manager v1
The first version of Geo Key Manager supports 3 regions: U.S., E.U., and a set of High Security Data Centers. If you would like to restrict your private key to another country or region, apply for the closed beta ↗︎ of the new version.
To use Geo Key Manager in the dashboard:
- Follow the steps to upload a custom certificate.
- For Private Key Restriction, choose one of the following options:
- Distribute to all Cloudflare data centers (optimal performance)
- Distribute only to U.S. data centers
- Distribute only to E.U. data centers
- Distribute only to highest security data centers (more details)
- Select Upload Custom Certificate.
To use Geo Key Manager with the API, generally, follow the steps to upload a custom certificate.
When sending the POST request, include the geo_restrictions parameter set to one of the following options:
useuhighest_security(more details)
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ssl/edge-certificates/geokey-manager/setup/#page","headline":"Setup","description":"Learn how to set up Geo Key Manager and choose the geographical boundaries of where your private encryption keys are stored.","url":"https://developers.cloudflare.com/ssl/edge-certificates/geokey-manager/setup/","inLanguage":"en","image":"https://developers.cloudflare.com/ssl/edge-certificates/geokey-manager/setup/og.png?v=07bd3ec88a55a803","dateModified":"2026-05-05","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/"},"keywords":["TLS","Compliance","Geolocation"]}
description: Learn which options are supported for Geo Key Manager. title: Supported options image: https://developers.cloudflare.com/ssl/edge-certificates/geokey-manager/supported-options/og.png?v=149036ab70bca286
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