Skip to content

Manage custom certificates

Learn how to manage custom certificates for your Cloudflare for SaaS custom hostnames. For use cases and limitations, refer to custom certificates.

Upload certificates

This section describes the general process for uploading a custom certificate corresponding to one of the supported types.

To upload a custom certificate in the dashboard, select Custom certificate while creating your custom hostname.

For information about the bundle method options, refer to the Cloudflare SSL/TLS documentation.

Use certificate packs: RSA and ECDSA

A certificate pack allows you to upload up to one RSA and one ECDSA custom certificates to a custom hostname. This process is currently only supported via API.

To upload an RSA and ECDSA certificate to a custom hostname, set the bundle_method to force and define the custom_cert_bundle property when creating a custom hostname via API.

You can also use "bundle_method": "force" and custom_cert_bundle with a PATCH request to the Edit Custom Hostname endpoint.

Delete a custom certificate and private key

Use the Delete Single Certificate And Key For Custom Hostname endpoint to remove one of the custom certificates and corresponding key from a certificate pack.

You cannot delete a certificate if it is the only remaining certificate in the pack.

Replace a custom certificate and private key

To replace a single custom certificate within a certificate pack that contains two bundled certificates, use the Replace Custom Certificate And Custom Key In Custom Hostname endpoint.

You can only replace an RSA certificate with another RSA certificate, or an ECDSA certificate with another ECDSA certificate.


Move to a Cloudflare certificate

If you want to switch from maintaining a custom certificate to using one issued by Cloudflare, you can migrate that certificate with zero downtime.

Send a PATCH request to your custom hostname with a value for the DCV method. As soon as the certificate is validated and the hostname is validated, Cloudflare will remove the old custom certificate and begin serving the new one.