Cloudflare
Our Cloudflare integration allows you to discover domains in your Cloudflare account, then add the hosts to your Certificates inventory and begin monitoring them automatically. This synchronization updates every day, so new domains added to Cloudflare will be quickly discovered by Certificates.
Information required to configure the integration
Section titled “Information required to configure the integration”To configure the integration in Certificates, the following information is needed from your Cloudflare account. Firstly, please login to your Cloudflare Dashboard and select the account that you wish to use. We recommend that a separate account is created and used for API token creation purposes that multiple users have to access, rather than using a user allocated account. This will avoid issues should a user leave your organization.
- Capture an identifier to use as “Cloudflare Customer ID”:
- Cloudflare does not provide a unique account identifier in the UI, so we suggest that you make a note of the 32 character identifier that is appended to the URL when you login to your account.
- Or instead, if you have a strict and meaningful naming convention for your account name, capture this instead.
- Generate an API token:
- Click on the user button at the top right-hand side of the page then click My Profile.
- Click on API Tokens on the left-hand side menu.
- Click on Create Token.
- Find the token template that is called Read all resources, then click Use template.
- On the next page, scroll to the very bottom, then click Continue to summary.
- Then on the final page click Create Token.
- Copy the displayed token.
Configuring the integration in Certificates
Section titled “Configuring the integration in Certificates”Once you have all of the information required, you can configure the integration in Certificates. Go to the Integrations page. Then click Add New Integration and select Cloudflare.
- Name — a mandatory field. The name you would like to use for this integration. Use something that will make sense to you and your team.
- Cloudflare Customer ID — a mandatory field. The Customer ID that you made a note of in the previous step.
- Tags — this is optional. When this feature is used, then Certificates will tag any resources that we discover when running the integration.
- API Key — a mandatory field. This is the API key created in the previous step.
- Click Save Integration.
- Once saved, click Test in the integration’s actions in the table. If it succeeds, then ensure the integration is enabled and enable it otherwise using the row actions. Your new integration is now active and will run shortly.
Adding discovered domains to your Certificates inventory
Section titled “Adding discovered domains to your Certificates inventory”Rather than immediately adding domains from integrations to your Certificates inventory, we give you the opportunity to review them first. This means you can check that they should be added to your Certificates inventory, and if so whether the domain should be monitored or not.
Common issues
Section titled “Common issues”If the integration fails then check that the:
- API key has been correctly copied.
- Permissions match what we require.