It not work for wildcard names #12

Closed
opened 2019-02-03 03:45:02 +00:00 by Ghost · 1 comment

It is a great library for letsencryt with node.

Recently I tried to make it work with wildcard names and it failed.

It will fail with dns-01 challenge testing when getting a wildcard domain certifications.

But I found that it works when changing here:

https://git.coolaj86.com/coolaj86/acme-v2.js/src/branch/master/node.js#L49

, 'dns-01': function (me, auth) {

    // var hostname = ACME.challengePrefixes['dns-01'] + '.' + auth.hostname;
    // ==>
    var hostname = ACME.challengePrefixes['dns-01'] + '.' + auth.hostname.replace(/^\*\./, '');
    return me._dig({
      type: 'TXT'
    , name: hostname
    }).then(function (ans) {
It is a great library for letsencryt with node. Recently I tried to make it work with wildcard names and it failed. It will fail with `dns-01` challenge testing when getting a wildcard domain certifications. But I found that it works when changing here: https://git.coolaj86.com/coolaj86/acme-v2.js/src/branch/master/node.js#L49 ```js , 'dns-01': function (me, auth) { // var hostname = ACME.challengePrefixes['dns-01'] + '.' + auth.hostname; // ==> var hostname = ACME.challengePrefixes['dns-01'] + '.' + auth.hostname.replace(/^\*\./, ''); return me._dig({ type: 'TXT' , name: hostname }).then(function (ans) { ```
Owner

Thanks. I published the update as v1.5.2

Thanks. I published the update as v1.5.2
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coolaj86/acme.js-ARCHIVED#12
No description provided.