Manage custom certificates
For use cases and limitations, refer to custom certificates.
To upload a custom certificate in the dashboard, follow the steps for issuing new certificates, but change the Certificate type to Custom certificate.
For more details on bundle method, refer to Bundle Methodologies
The call below will upload a certificate for use with app.example.com
.
Note that if you are using an ECC key generated by OpenSSL, you will need to first remove the -----BEGIN EC PARAMETERS-----...-----END EC PARAMETERS-----
section of the file.
With the certificate and key saved to environment variables (using escaped newlines), build the payload:
Use a POST request to upload your certificate and key.
The serial number returned is unique to the issuer, but not globally unique. Additionally, it is returned as a string, not an integer.
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.