Repeated 'Too many certificates already issued for exact set of domains' error #34

開啟中
opened 2020-10-15 07:18:23 +00:00 by Ghost · 0 comment

I have already checked this post. But even though I tried that method, it didn't work, so I open a new issue.

I use AWS EC2 server and deploy with aws pipeline. So When I push to github repository, it will automatically build and deploy to production server.

At first it's works fine, and there are no errors in the console.

But one day an error began to occur. So when I checked the console, there was an error as below.

[Error Message in console]

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 'expressme.ga':
{"type":"urn:ietf:params:acme:error:rateLimited","detail":"Error creating new order :: too many certificates already issued for exact set of domains: expressme.ga: see https://letsencrypt.org/docs/rate-limits/","status":429,"_identifiers":[{"type":"dns","value":"expressme.ga"}]}
Error: [acme-v2.js] authorizations were not fetched for 'expressme.ga':
{"type":"urn:ietf:params:acme:error:rateLimited","detail":"Error creating new order :: too many certificates already issued for exact set of domains: expressme.ga: see https://letsencrypt.org/docs/rate-limits/","status":429,"_identifiers":[{"type":"dns","value":"expressme.ga"}]}
    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 'expressme.ga':

In my opinion, I think there was a limit to the process of reissuing the certificate every time I push the code, but I don't know where the problem occurred even if I check the code.

My code structure is written as below and developed with 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": "expressme.ga", "altnames": ["expressme.ga"] }] }

[.greenlockrc]

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

[package.json (scripts.start line)]

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

I am aware of the seven-day limit from Let's Encrypt. So I want to find a way to solve this problem.

I have already checked [this post](https://git.rootprojects.org/root/greenlock.js/issues/22). But even though I tried that method, it didn't work, so I open a new issue. I use AWS EC2 server and deploy with aws pipeline. So When I push to github repository, it will automatically build and deploy to production server. At first it's works fine, and there are no errors in the console. But one day an error began to occur. So when I checked the console, there was an error as below. **[Error Message in console]** ``` 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 'expressme.ga': {"type":"urn:ietf:params:acme:error:rateLimited","detail":"Error creating new order :: too many certificates already issued for exact set of domains: expressme.ga: see https://letsencrypt.org/docs/rate-limits/","status":429,"_identifiers":[{"type":"dns","value":"expressme.ga"}]} Error: [acme-v2.js] authorizations were not fetched for 'expressme.ga': {"type":"urn:ietf:params:acme:error:rateLimited","detail":"Error creating new order :: too many certificates already issued for exact set of domains: expressme.ga: see https://letsencrypt.org/docs/rate-limits/","status":429,"_identifiers":[{"type":"dns","value":"expressme.ga"}]} 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 'expressme.ga': ``` In my opinion, I think there was a limit to the process of reissuing the certificate every time I push the code, but I don't know where the problem occurred even if I check the code. My code structure is written as below and developed with 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": "expressme.ga", "altnames": ["expressme.ga"] }] } ``` **[.greenlockrc]** ``` {"configDir":"./greenlock.d"} ``` **[package.json (scripts.start line)]** ``` "scripts": { "start": "node server.js" }, ``` I am aware of the seven-day limit from Let's Encrypt. So I want to find a way to solve this problem.
登入 才能加入這對話。
未選擇標籤
未選擇里程碑
No Assignees
1 參與者
訊息
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/greenlock.js#34
No description provided.