首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用ACM的应用程序不允许在heroku上具有通配符域

使用ACM的应用程序不允许在heroku上具有通配符域
EN

Stack Overflow用户
提问于 2017-07-11 21:03:53
回答 1查看 2.9K关注 0票数 4

目前,我正在将我的应用程序从AWS迁移到Heroku。在添加通配符时,我遇到了一个Apps using ACM are not allowed to have wildcard domains问题。您能告诉我如何添加通配符吗?我的应用程序处于移动阶段,我的Dynos是免费的。我也想用来举办一个免费的Dynos,因为它对我来说已经足够了。示例我的域名: bar.com我想这样: foo.bar.com而不是foo可以是任何名称

EN

回答 1

Stack Overflow用户

发布于 2018-06-20 08:38:30

您可以生成一个免费的让我们加密通配符证书,并将其上传到Heroku。您可以通过以下步骤完成此操作:http://aawaara.com/post/175058359322/generate-a-free-lets-encrypt-wildcard-ssl

代码语言:javascript
复制
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

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45035420

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档