1

我想将我的 heroku 应用程序配置为使用 SSL (https)

根据此链接中提供的信息,我显然做错了什么

https://devcenter.heroku.com/articles/automated-certificate-management

这是我到目前为止所做的:

将我的测功机更改为爱好(现在每月 7 美元而不是免费 :-( )因为免费测功机无法启用自动证书。

然后我运行这个命令来验证我的域(文章建议)

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
4

1 回答 1

0

哇...我做了所有这些事情并且神奇地...它在“一段时间”后才起作用...

所以我不知道还能说什么。

于 2020-04-09T19:24:00.203 回答