目前,我正在将我的应用程序从AWS迁移到Heroku。在添加通配符时,我遇到了一个Apps using ACM are not allowed to have wildcard domains问题。您能告诉我如何添加通配符吗?我的应用程序处于移动阶段,我的Dynos是免费的。我也想用来举办一个免费的Dynos,因为它对我来说已经足够了。示例我的域名: bar.com我想这样: foo.bar.com而不是foo可以是任何名称
发布于 2018-06-20 08:38:30
您可以生成一个免费的让我们加密通配符证书,并将其上传到Heroku。您可以通过以下步骤完成此操作: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如果您不使用Cloudflare DNS,下面是其他支持的DNS提供商的列表:https://github.com/Neilpang/acme.sh/tree/master/dnsapi#1-use-cloudflare-domain-api-to-automatically-issue-cert
https://stackoverflow.com/questions/45035420
复制相似问题