如何为 SSL 配置我的 heroku 应用程序?
How can I configure my heroku app for SSL?
我想将我的 heroku 应用配置为使用 SSL (https)
根据这个 link
中提供的信息,我显然做错了什么
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
哇...我做了所有这些事情并且神奇地...它在 "a while" 之后起作用...
所以我不知道还能说什么。
我想将我的 heroku 应用配置为使用 SSL (https)
根据这个 link
中提供的信息,我显然做错了什么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
哇...我做了所有这些事情并且神奇地...它在 "a while" 之后起作用...
所以我不知道还能说什么。