Challenge set up failing #30

已关闭
由 Ghost 于 2019-01-08 12:01:58 +00:00 打开 · 2 评论

I am running greenlock with following options and getting an error while it is setting the challenge. Is the dns-01 challenge included by default or do I have to include it by the .create() options somehow?

const le = Greenlock.create({
    version: 'draft-12',
    server: 'https://acme-v02.api.letsencrypt.org/directory',
    configDir: '/db',
    agreeTos: true,
    renewWithin: 20 * 24 * 60 * 60 * 1000, // 20 days
    challengeType: 'dns-01',
    debug,
    log: (...debug) => { console.log(...debug); },
  }, handlers);

...

  le.register({
    domains: [domain],
    email: mail,
  })
TypeError: Cannot read property 'set' of undefined
    at Object.certReq.setChallenge (/app/node_modules/greenlock/lib/core.js:303:51)
    at /app/node_modules/acme-v2/node.js:460:17
    at new Promise (<anonymous>)
    at Object.ACME._setChallenge (/app/node_modules/acme-v2/node.js:444:10)
    at /app/node_modules/acme-v2/node.js:285:19
    at Array.map (<anonymous>)
    at /app/node_modules/acme-v2/node.js:269:47
    at Array.map (<anonymous>)
    at Object.ACME._testChallenges (/app/node_modules/acme-v2/node.js:267:38)
    at Object.ACME._getCertificate (/app/node_modules/acme-v2/node.js:581:15)
    at /app/node_modules/acme-v2/node.js:576:21
    at process._tickCallback (internal/process/next_tick.js:68:7)
I am running greenlock with following options and getting an error while it is setting the challenge. Is the dns-01 challenge included by default or do I have to include it by the .create() options somehow? ``` const le = Greenlock.create({ version: 'draft-12', server: 'https://acme-v02.api.letsencrypt.org/directory', configDir: '/db', agreeTos: true, renewWithin: 20 * 24 * 60 * 60 * 1000, // 20 days challengeType: 'dns-01', debug, log: (...debug) => { console.log(...debug); }, }, handlers); ... le.register({ domains: [domain], email: mail, }) ``` ``` TypeError: Cannot read property 'set' of undefined at Object.certReq.setChallenge (/app/node_modules/greenlock/lib/core.js:303:51) at /app/node_modules/acme-v2/node.js:460:17 at new Promise (<anonymous>) at Object.ACME._setChallenge (/app/node_modules/acme-v2/node.js:444:10) at /app/node_modules/acme-v2/node.js:285:19 at Array.map (<anonymous>) at /app/node_modules/acme-v2/node.js:269:47 at Array.map (<anonymous>) at Object.ACME._testChallenges (/app/node_modules/acme-v2/node.js:267:38) at Object.ACME._getCertificate (/app/node_modules/acme-v2/node.js:581:15) at /app/node_modules/acme-v2/node.js:576:21 at process._tickCallback (internal/process/next_tick.js:68:7) ```
管理员

Yes, if you want to use dns-01 then you need to provide a set of handlers.

https://git.coolaj86.com/coolaj86/greenlock-express.js#dns-01-challenges

If you just want to try it out by hand, here's a good first resource to look at:

https://git.coolaj86.com/coolaj86/le-challenge-dns.js

After you've done it by hand with a CLI, then I'd say start looking at the other DNS-01 challenge handlers / plugins.

What DNS provider are you using?

Yes, if you want to use `dns-01` then you need to provide a set of handlers. https://git.coolaj86.com/coolaj86/greenlock-express.js#dns-01-challenges If you just want to try it out by hand, here's a good first resource to look at: https://git.coolaj86.com/coolaj86/le-challenge-dns.js After you've done it by hand with a CLI, then I'd say start looking at the other DNS-01 challenge handlers / plugins. What DNS provider are you using?
管理员

Just did a ton of cleanup and updates in this area. I'd highly recommend trying the new wildcard example and taking a look at the new le-store-fs cert/key store plugin, and the new le-challenge-dns dns-01 plugin.

Just did a ton of cleanup and updates in this area. I'd highly recommend trying the new wildcard example and taking a look at the new `le-store-fs` cert/key store plugin, and the new `le-challenge-dns` dns-01 plugin. * https://git.coolaj86.com/coolaj86/greenlock-express.js/src/branch/master/examples/wildcard.js * https://git.coolaj86.com/coolaj86/le-store-fs.js * https://git.coolaj86.com/coolaj86/le-challenge-dns.js
coolaj862019-04-03 06:06:14 +00:00 关闭此工单
登录 并参与到对话中。
未选择标签
未选择里程碑
未指派成员
2 名参与者
通知
到期时间
到期日期无效或超出范围。请使用 'yyyy-mm-dd' 格式。

未设置到期时间。

依赖工单

没有设置依赖项。

参考:coolaj86/greenlock.js-ARCHIVED#30
没有提供说明。