Managing Cloudflare Origin CA certificates
()
Understand how to use a Cloudflare Origin CA certificate to encrypt traffic between Cloudflare and your origin web server. Learn how to manage Origin CA certificates via Cloudflare and receive advice to install Origin CA certificates at your origin web server.
Overview
Use Origin CA certificates to encrypt traffic between Cloudflare and your origin web server.
To ensure greater convenience, security, and performance, Cloudflare recommends an Origin CA certificate over a self-signed certificate or a certificate purchased from a Certificate Authority. With an Origin CA certificate, you can use Full and Full(strict) SSL modes in the Cloudflare SSL/TLS app without first purchasing a certificate from a Certificate Authority to install at your origin web server.
Deploying Origin CA certificates typically requires three steps:
- Create an Origin CA certificate
- Install an Origin CA certificate at your origin web server
- Configure the SSL mode in the Cloudflare SSL/TLS app
Step 1 - Create an Origin CA certificate
You can generate your own Origin CA certificate in the Cloudflare dashboard:
- Log in to Cloudflare.
- Select the appropriate account for the domain requiring an Origin CA certificate.
- Select the domain.
- Click the SSL/TLS app.
- Click the Origin Server tab.
- Click Create Certificate to open the Origin Certificate Installation window.
- In the Origin Certificate Installation window, choose either:
- Let Cloudflare generate a private key and a CSR - requires specifying whether the Private key type is RSA or ECDSA.
- I have my own private key and CSR - requires pasting the Certificate Signing Request into the text field.
- List the hostnames (including wildcards) the certificate should protect with SSL encryption. The zone root and first level wildcard hostname are included by default.
- Choose the certificate expiration. The default is 15 years and the minimum is 7 days.
- Click Next.
- Select the Key Format. Select the key pair format that best matches your environment. Most OpenSSL-based web servers such as Apache and NGINX expect PEM files (Base64 encoded ASCII), but also work with binary DER files. Windows and Apache Tomcat users must opt for PKCS#7.
- Copy the signed Origin Certificate and Private key details into separate files as instructed by the Origin Certificate Installation window.
- Click OK.
Step 2 - Install an Origin CA certificate at your origin web server
Adding an Origin CA certificate to an origin web server requires several general steps:
- Upload the Origin CA certificate (created above in Step 1) to your origin web server.
- Use the linked installation guides below to update your web server configuration to point to the certificate.
- (Optional for most origin web servers) Upload Cloudflare's CA root certificate to your origin web server.
- Enable SSL and port 443 at your origin web server.
- Check that your origin server firewall doesn't block connections to port 443.
Review the list of links below for installation instructions specific to your origin web server. For further assistance installing an Origin CA certificate, contact your hosting provider, web administrator, or web server vendor.
- Apache httpd
- GoDaddy Hosting (with cPanel)
- Microsoft IIS 7
- Microsoft IIS 8 and 8.5
- Microsoft IIS 10
- NGINX
- Tomcat
Step 3 - Configure the SSL mode in the Cloudflare SSL/TLS app
Instruct Cloudflare to encrypt traffic to your origin web server after you install the Cloudflare Origin CA certificate at your origin web server. Set the SSL mode in the Cloudflare SSL/TLS app to either Full or Full(strict)to enable encryption between Cloudflare and your origin web server.
(optional) Step 4 - Add Cloudflare Origin CA root certificates
Some origin web servers require uploading the Cloudflare Origin CA root certificate. See below for an RSA and ECC version of the Cloudflare Origin CA root certificate. Click on a link to download a file:
Alternatively, click to expand the root certificate contents for copy and paste into your origin web server configuration:
-----BEGIN CERTIFICATE-----
MIIEADCCAuigAwIBAgIID+rOSdTGfGcwDQYJKoZIhvcNAQELBQAwgYsxCzAJBgNV
BAYTAlVTMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMTQwMgYDVQQLEytDbG91
ZEZsYXJlIE9yaWdpbiBTU0wgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MRYwFAYDVQQH
Ew1TYW4gRnJhbmNpc2NvMRMwEQYDVQQIEwpDYWxpZm9ybmlhMB4XDTE5MDgyMzIx
MDgwMFoXDTI5MDgxNTE3MDAwMFowgYsxCzAJBgNVBAYTAlVTMRkwFwYDVQQKExBD
bG91ZEZsYXJlLCBJbmMuMTQwMgYDVQQLEytDbG91ZEZsYXJlIE9yaWdpbiBTU0wg
Q2VydGlmaWNhdGUgQXV0aG9yaXR5MRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRMw
EQYDVQQIEwpDYWxpZm9ybmlhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
AQEAwEiVZ/UoQpHmFsHvk5isBxRehukP8DG9JhFev3WZtG76WoTthvLJFRKFCHXm
V6Z5/66Z4S09mgsUuFw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YXRlIEF1dGhvcml0
eTAeFw0xOTA4MjMyMTA4MDBaFw0yOTA4MTUxNzAwMDBaMIGPMQswCQYDVQQGEwJV
UzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEZ
MBcGA1UEChMQQ2xvdWRGbGFyZSwgSW5jLjE4MDYGA1UECxMvQ2xvdWRGbGFyZSBP
cmlnaW4gU1NMIEVDQyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwWTATBgcqhkjOPQIB
BggqhkjOPQMBBwNCAASR+sGALuaGshnUbcxKry+0LEXZ4NY6JUAtSeA6g87K3jaA
xpIg9G50PokpfWkhbarLfpcZu0UAoYy2su0EhN7wo2YwZDAOBgNVHQ8BAf8EBAMC
AQYwEgYDVR0TAQH/BAgwBgEB/wIBAjAdBgNVHQ4EFgQUhTBdOypw1O3VkmcH/es5
tBoOOKcwHwYDVR0jBBgwFoAUhTBdOypw1O3VkmcH/es5tBoOOKcwCgYIKoZIzj0E
AwIDSQAwRgIhAKilfntP2ILGZjwajktkBtXE1pB4Y/fjAfLkIRUzrI15AiEA5UCL
XYZZ9m2c3fKwIenMMojL1eqydsgqj/wK4p5kagQ=
-----END CERTIFICATE-----
Remove an Origin CA certificate
Follow these steps to revoke an Origin CA certificate:
- Log in to Cloudflare.
- Select the appropriate account for the domain where the Origin CA certificate needs revoked.
- Select the domain.
- Click the SSL/TLS app and scroll down to Origin Certificates.
- Click the X icon to the right of the certificate name in the list of Origin CA certificates.
- The Revoke Origin Certificate confirmation window appears.
- Check the confirmation box and click Revoke.