Hello, I tried to create my own module challenger acme-dns-01 for ovh #1

Closed
opened 2019-11-21 20:10:46 +00:00 by Ghost · 6 comments

Hello, I tried to create my own module challenger acme-dns-01 for ovh.

  • greenlock.manager.defaults data
{
  agreeToTerms: true,
  subscriberEmail: 'my-mail',
  challenges: {
    "dns-01": my_module_create_function({})
  }
}
  • console ouput
Could not load 'undefined'
Did you install it?
	npm install --save undefined
Error load_plugin:
The "id" argument must be of type string. Received type undefined
code: ERR_INVALID_ARG_TYPE
TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:112:11)
    at Module.require (internal/modules/cjs/loader.js:845:3)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.P._loadHelper (/var/node/router/node_modules/@root/greenlock/plugins.js:29:32)
    at Object.P._loadChallenge (/var/node/router/node_modules/@root/greenlock/plugins.js:18:14)
    at /var/node/router/node_modules/@root/greenlock/greenlock.js:477:38
    at Array.map (<anonymous>)
    at /var/node/router/node_modules/@root/greenlock/greenlock.js:476:53
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async getSsl (/var/node/router/index.js:120:18)
TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:112:11)
    at Module.require (internal/modules/cjs/loader.js:845:3)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.P._loadHelper (/var/node/router/node_modules/@root/greenlock/plugins.js:29:32)
    at Object.P._loadChallenge (/var/node/router/node_modules/@root/greenlock/plugins.js:18:14)
    at /var/node/router/node_modules/@root/greenlock/greenlock.js:477:38
    at Array.map (<anonymous>)
    at /var/node/router/node_modules/@root/greenlock/greenlock.js:476:53
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async getSsl (/var/node/router/index.js:120:18) {
  code: 'ERR_INVALID_ARG_TYPE',
  context: 'load_plugin',
  toJSON: [Function: errorToJSON],
  subject: 'my-domain-name',
  servername: 'my-domain-name',
  _site: {
    subject: 'my-domain-name',
    altnames: [ 'my-domain-name' ],
    renewAt: 1
  }
}
Hello, I tried to create my own module challenger acme-dns-01 for ovh. - greenlock.manager.defaults data ```js { agreeToTerms: true, subscriberEmail: 'my-mail', challenges: { "dns-01": my_module_create_function({}) } } ``` - console ouput ```console Could not load 'undefined' Did you install it? npm install --save undefined Error load_plugin: The "id" argument must be of type string. Received type undefined code: ERR_INVALID_ARG_TYPE TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type undefined at validateString (internal/validators.js:112:11) at Module.require (internal/modules/cjs/loader.js:845:3) at require (internal/modules/cjs/helpers.js:74:18) at Object.P._loadHelper (/var/node/router/node_modules/@root/greenlock/plugins.js:29:32) at Object.P._loadChallenge (/var/node/router/node_modules/@root/greenlock/plugins.js:18:14) at /var/node/router/node_modules/@root/greenlock/greenlock.js:477:38 at Array.map (<anonymous>) at /var/node/router/node_modules/@root/greenlock/greenlock.js:476:53 at processTicksAndRejections (internal/process/task_queues.js:93:5) at async getSsl (/var/node/router/index.js:120:18) TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type undefined at validateString (internal/validators.js:112:11) at Module.require (internal/modules/cjs/loader.js:845:3) at require (internal/modules/cjs/helpers.js:74:18) at Object.P._loadHelper (/var/node/router/node_modules/@root/greenlock/plugins.js:29:32) at Object.P._loadChallenge (/var/node/router/node_modules/@root/greenlock/plugins.js:18:14) at /var/node/router/node_modules/@root/greenlock/greenlock.js:477:38 at Array.map (<anonymous>) at /var/node/router/node_modules/@root/greenlock/greenlock.js:476:53 at processTicksAndRejections (internal/process/task_queues.js:93:5) at async getSsl (/var/node/router/index.js:120:18) { code: 'ERR_INVALID_ARG_TYPE', context: 'load_plugin', toJSON: [Function: errorToJSON], subject: 'my-domain-name', servername: 'my-domain-name', _site: { subject: 'my-domain-name', altnames: [ 'my-domain-name' ], renewAt: 1 } } ```
Ghost closed this issue 2019-11-21 20:12:44 +00:00
Ghost started working 2019-11-21 20:13:40 +00:00
Ghost canceled time tracking 2019-11-21 20:13:57 +00:00
Author

Sorry my bad this ticket is in the wrong place, can you delete him please?

Sorry my bad this ticket is in the wrong place, can you delete him please?
Author

I made this ticket for nothing I didn’t pay attention to the documentation. sorry

I made this ticket for nothing I didn’t pay attention to the documentation. sorry
Owner

Take a look at https://git.rootprojects.org/root/acme-dns-01-ovh.js

The documentation is for v2, but if you follow the v3/v4 documentation instead, it should work just fine.

I haven't tested it myself yet, it may still need some adjustments, but it should get you 99% of the way there.

Take a look at https://git.rootprojects.org/root/acme-dns-01-ovh.js The documentation is for v2, but if you follow the v3/v4 documentation instead, it should work just fine. I haven't tested it myself yet, it may still need some adjustments, but it should get you 99% of the way there.
Author

Great thanks, I didn’t see him.

Great thanks, I didn’t see him.
Author

Sorry but,

 'acme-dns-01-ovh@3.x' is not in the npm registry.
Sorry but, ```console 'acme-dns-01-ovh@3.x' is not in the npm registry. ```
Author

Work with:

npm install --save git+https://git@git.rootprojects.org/root/acme-dns-01-ovh.js.git
Work with: ```console npm install --save git+https://git@git.rootprojects.org/root/acme-dns-01-ovh.js.git ```
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 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: root/acme-http-01-standalone.js#1
No description provided.