I use CloudFlare, but also want to use ACM. Is it possible to use both of these products together?
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.