Apps using ACM are not allowed to have wildcard domains on heroku

Viewed 3439

currently I am moving my application from AWS to Heroku. While wildcard addition I have faced a problem Apps using ACM are not allowed to have wildcard domains. Could you please tell me how to add wildcards? My app is on the phase of moving and my Dynos is free of charge. Also I would like to use for staging a free of charge Dynos, because it is enough for me now. example my domain: bar.com I want to this: [foo].bar.com instead foo may be any name

1 Answers

You can generate a free Let's encrypt wildcard certificate and upload it to Heroku. You can do it by following the steps here: http://aawaara.com/post/175058359322/generate-a-free-lets-encrypt-wildcard-ssl

curl https://get.acme.sh | sh
# Open a new terminal window after executing above command

# Create a cloudflare account (and assuming that you will use it for DNS) and get your API key from the profile section
export CF_Email=my.cloudflare@example.com
export CF_Key=replace_with_cloudflare_api_key

# Generate wildcard certificate for *.example.com
acme.sh  --issue -d example.com  -d '*.example.com'  --dns dns_cf

In case you don't use Cloudflare DNS, below is a list of other supported DNS providers: https://github.com/Neilpang/acme.sh/tree/master/dnsapi#1-use-cloudflare-domain-api-to-automatically-issue-cert

Related