我想将我的heroku应用程序配置为使用SSL(https(
根据这个链接中提供的信息,我显然做错了什么
https://devcenter.heroku.com/articles/automated-certificate-management
以下是我迄今为止所做的:
将我的dyno改为业余爱好(现在每月7美元,而不是免费:-((因为免费dyno不能启用自动证书。
然后我运行这个命令来验证我的域(文章建议(
heroku domains
这给了我:
=== instanttiming Custom Domains
Domain Name DNS Record Type DNS Target
──────────────────── ─────────────── ─────────────────────────────────────────────────────────
www.myeventtimes.com CNAME descriptive-harbor-<somestuffhere>.herokudns.com
然后我运行以下程序以启用自动证书(文章建议(
heroku certs:auto:enable
这给了我:
Enabling Automatic Certificate Management... starting.
See status with heroku certs:auto or wait until active with heroku certs:auto:wait
=== Your certificate will now be managed by Heroku. Check the status by running heroku certs:auto
然后我运行以下程序查看我的证书状态(文章建议(
heroku certs:auto
这给了我:
=== Automatic Certificate Management is enabled on instanttiming
Certificate details:
Common Name(s): www.myeventtimes.com
Expires At: 2020-06-30 15:56 UTC
Issuer: /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
Starts At: 2020-04-01 15:56 UTC
Subject: /CN=www.myeventtimes.com
SSL certificate is verified by a root authority.
Domain Status Last Updated
──────────────────── ─────────── ────────────
www.myeventtimes.com Cert issued 1 minute
在这一点上,无论如何,对我来说,看起来我有SSL证书,所以我去了:
httpS:\MyEventTimes.com
得到:
NET::ERR_CERT_COMMON_NAME_INVALID
This server could not prove that it is myeventtimes.com;
its security certificate is from shortener.secureserver.net.
This may be caused by a misconfiguration or an attacker intercepting your connection
注意:http://MyEventTimes.com工作
我错过了什么?
更新1
我跑了:
heroku certs
给出:
Name Common Name(s) Expires Trusted Type
───────────────── ──────────────────── ──────────────────── ─────── ────
apatosaurus-10680 www.myeventtimes.com 2020-06-30 15:56 UTC True ACM
哇。。。我做了所有这些事情,神奇地。。。过了"一段时间"它才起作用。。。
所以我不知道还能说什么。