【问题标题】:Laravel Forge Letsencrypt FailsLaravel Forge Letsencrypt 失败
【发布时间】:2022-12-03 08:26:58
【问题描述】:

这是一个远景,但想知道是否有其他人遇到过类似的问题。

我正在尝试使用 DigitalOcean 作为我的提供商在 Laravel Forge 上建立一个新站点。我已经设置了服务器实例并安装了应用程序,但是当我尝试导航到该站点时,我收到 SSL_ERROR_UNRECOGNIZED_NAME_ALERT 错误。

DNS 由 CloudFlare(代理)提供,A 记录正确解析。我进入我的 Forge 仪表板以从 LetsEncrypt 请求一个新的 SSL 证书,但失败并显示以下错误输出。

2022-12-03 00:00:35 URL:https://forge-certificates.laravel.com/le/1617562/1825058/ecdsa?env=production [4557] -> "letsencrypt_script1670025635" [1]
Cloning into 'letsencrypt1670025635'...
Note: switching to '91cccc0c234e4decf0a19595fa19a6f306788032'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 91cccc0 ensure newline before new section in openssl.cnf
  + ERROR: An error occurred while sending post-request to https://acme-v02.api.letsencrypt.org/acme/new-order (Status 400)

Details:
HTTP/2 400 
server: nginx
date: Sat, 03 Dec 2022 00:00:39 GMT
content-type: application/problem+json
content-length: 173
cache-control: public, max-age=0, no-cache
link: <https://acme-v02.api.letsencrypt.org/directory>;rel="index"
replay-nonce: 5CA2cs4FJk70Onq0iakIYvXisgUnrGMELGxh0lXsKjFUAWU

{
  "type": "urn:ietf:params:acme:error:accountDoesNotExist",
  "detail": "Account \"https://acme-v02.api.letsencrypt.org/acme/acct/853465757\" not found",
  "status": 400
}

我环顾四周,看到了类似的问题,但所建议的解决方案似乎都不相关(或者他们在尝试后没有解决问题。)任何和所有建议都值得赞赏。提前致谢!

【问题讨论】:

    标签: laravel lets-encrypt laravel-forge


    【解决方案1】:

    看起来问题出在您的 SSL 证书上。您可能需要从 LetsEncrypt 生成新证书并在 Forge 仪表板中配置它。如果问题仍然存在,可能值得检查您的 DNS 设置以确保 A 记录指向正确的服务器 IP 地址。您可能还需要检查您的 Forge 配置以确保域名配置正确。

    【讨论】:

      猜你喜欢
      • 2019-10-05
      • 2017-09-02
      • 2020-06-30
      • 1970-01-01
      • 1970-01-01
      • 2016-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多