GreenLock程序包重复“已为正确的域集颁发了太多证书”错误

问题描述

我已经检查了this post。但是,即使我尝试了该方法,该方法也无效,所以我打开了一个新期刊。

我使用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","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':

我认为,每次我输入代码时,重新颁发证书的过程都受到限制,但是即使我检查了代码,也不知道问题出在哪里。

我的代码结构如下编写,并使用Express开发。

[server.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": "node server.js"
  },

我知道让我们加密的7天期限。因此,我想找到一种解决此问题的方法

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)