【问题标题】:GitLab SSL certificate error: No account existsGitLab SSL 证书错误:不存在帐户
【发布时间】:2022-01-08 15:00:22
【问题描述】:

我正在尝试设置一个自托管的 GitLab 实例,一切正常,除非我尝试使用 Let's encrypt 创建 https 连接。尝试重新配置 GitLab 实例时出现以下错误:

There was an error running gitlab-ctl reconfigure:

letsencrypt_certificate[gitlab.***.org] (letsencrypt::http_authorization line 6) had an error: Acme::Client::Error::AccountDoesNotExist: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 41) had an error: Acme::Client::Error::AccountDoesNotExist: No account exists with the provided key

我的 external_url=https://gitlab.***.org,在我的网络上,我为端口:80 和:443 设置了端口转发。我还将 DNS 设置为我的 IP,因为该站点在不受保护时是可访问的。

希望有人能认出这个错误,我看了一遍并没有看到它在任何地方弹出。

最好的问候

【问题讨论】:

    标签: ssl gitlab lets-encrypt


    【解决方案1】:

    我在尝试更改 GitLab 的 url 时遇到了同样的问题。

    感谢https://gbe0.com/posts/linux/server/gitlab-acme-account-does-not-exist/,我解决了这个问题,方法是停用旧的 Acme 私钥,然后重新加载 GitLab 配置

    sudo mv /etc/acme/account_private_key.pem /etc/acme/account_private_key.pem.backup
    sudo gitlab-ctl reconfigure
    

    【讨论】:

    • 这对我有用,即使我没有尝试更改 GitLab 实例的 URL。
    猜你喜欢
    • 2019-11-25
    • 2020-07-26
    • 1970-01-01
    • 2013-10-21
    • 1970-01-01
    • 1970-01-01
    • 2023-03-28
    相关资源
    最近更新 更多