簡體   English   中英

GreenLock package 重復出現“已為確切的域集頒發了太多證書”錯誤

[英]Repeated 'Too many certificates already issued for exact set of domains' error with GreenLock package

我已經檢查過這篇文章 但是即使我嘗試了那個方法,它也沒有用,所以我打開了一個新的問題。

我使用 AWS EC2 服務器並使用 aws 管道進行部署。 所以當我推送到 github 存儲庫時,它會自動構建並部署到生產服務器。

起初它工作正常,並且控制台中沒有錯誤。

但是有一天,錯誤開始發生。 所以當我檢查控制台時,出現如下錯誤。

[控制台中的錯誤消息]

set greenlockOptions.notify to override the default logger
certificate_order (more info available: account subject altnames challengeTypes)
Error cert_issue:
[acme-v2.js] authorizations were not fetched for 'mydomain.com':
{"type":"urn:ietf:params:acme:error:rateLimited","detail":"Error creating new order :: too many certificates already issued for exact set of domains: mydomain.com: see https://letsencrypt.org/docs/rate-limits/","status":429,"_identifiers":[{"type":"dns","value":"mydomain.com"}]}
Error: [acme-v2.js] authorizations were not fetched for 'mydomain.com':
{"type":"urn:ietf:params:acme:error:rateLimited","detail":"Error creating new order :: too many certificates already issued for exact set of domains: mydomain.com: see https://letsencrypt.org/docs/rate-limits/","status":429,"_identifiers":[{"type":"dns","value":"mydomain.com"}]}
    at Object.E.NO_AUTHORIZATIONS (/home/project/build/node_modules/@root/acme/errors.js:75:9)
    at /home/project/build/node_modules/@root/acme/acme.js:1198:11
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
Error cert_issue:
[acme-v2.js] authorizations were not fetched for 'mydomain.com':

在我看來,我覺得每次push代碼的時候重新頒發證書的過程是有限制的,但是我查了代碼也不知道是哪里出了問題。

我的代碼結構如下所示,是用 Express 開發的。

[服務器.js]

"use strict";

const app = require("./app.js");

require("greenlock-express")
    .init({
        packageRoot: __dirname,
        configDir: "./greenlock.d",

        // contact for security and critical bug notices
        maintainerEmail: process.env.EMAIL,

        // whether or not to run at cloudscale
        cluster: false
    })
    // Serves on 80 and 443
    // Get's SSL certificates magically!
    .serve(app);

[greenlock.d/config.json]

{ "sites": [{ "subject": "mydomain.com", "altnames": ["mydomain.com"] }] }

[.greenlockrc]

{"configDir":"./greenlock.d"}

[package.json(scripts.start 行)]

 "scripts": {
    "start": "node server.js"
  },

我知道 Let's Encrypt 的 7 天限制。 所以我想找到一種方法來解決這個問題。

在我的快遞文件夾里,我做

sudo chmod 775 ./greenlock.d

然后我刪除 greenlock.d(一次)和 npm 開始

我沒有問題因為

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM