How can I use Automated Certificate Management with CloudFlare?

Issue

I use CloudFlare, but also want to use ACM. Is it possible to use both of these products together?

Resolution

It is possible to use CloudFlare with Automated Certificate Management. Please follow the procedure below.

First, add the custom domain to the app:

$ heroku domains:add www.example.com
Adding www.example.com to  example-app... done
     Configure your app's DNS provider to point to the DNS Target
     whispering-willow-5678.herokudns.com.
     For help, see https://devcenter.heroku.com/articles/custom-domains

Second, configure CloudFlare. Add a CNAME record with the sub domain (www in this example, use @ for the root domain) as "Name" and the DNS Target (whispering-willow-5678.herokudns.com in this example) as the "Domain name".

Third, enable ACM:

$ heroku certs:auto:enable

After a while, a TLS certificate is generated for your app's custom domains. With SSL Mode "Full (strict)", CloudFlare verifies the domain using the TLS certificate provided with ACM. Client programs accessing the custom domain sees the TLS certificate provided by CloudFlare.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support
Terms of Service Privacy Cookies © 2018 Salesforce.com