When using greenlock-express I get the error: bad challenge dns-01 module config{"options":{}} #2

Open
opened 2021-10-14 01:49:31 +00:00 by Ghost · 1 comment

I am using the code from the README:

  challenges: {
    'http-01': require('acme-http-01-fs'),
    'dns-01': require('acme-dns-01-cli').create({ debug: true }),
    'tls-alpn-01': require('acme-tls-alpn-01-cli')
  }
  // ...
});

with greenlock-express, so not Greenlock.create but greenlockExpress.init, like so:


const server = greenlockExpress.init({
  challenges: {
    'dns-01': require('acme-dns-01-cli').create({ debug: true }),
  }
  // ...
});

And I am seeing the following error:

bad challenge dns-01 module config{"options":{"debug": true}}

Any ideas what I might be doing wrong?

I am using the code from the README: ```Greenlock.create({ challenges: { 'http-01': require('acme-http-01-fs'), 'dns-01': require('acme-dns-01-cli').create({ debug: true }), 'tls-alpn-01': require('acme-tls-alpn-01-cli') } // ... }); ``` with greenlock-express, so not Greenlock.create but greenlockExpress.init, like so: ```const greenlockExpress = require('greenlock-express'); const server = greenlockExpress.init({ challenges: { 'dns-01': require('acme-dns-01-cli').create({ debug: true }), } // ... }); ``` And I am seeing the following error: `bad challenge dns-01 module config{"options":{"debug": true}}` Any ideas what I might be doing wrong?
Author

@coolaj86 I have interacted with you on other platforms, but I'm not sure if you get notifications for this project.

@coolaj86 I have interacted with you on other platforms, but I'm not sure if you get notifications for this project.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
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: coolaj86/acme-dns-01-cli.js#2
No description provided.