It not work for wildcard names #12

クローズ
Ghostが2019-02-03 03:45:02 +00:00に作成 · 1件のコメント

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) { ```
オーナー

Thanks. I published the update as v1.5.2

Thanks. I published the update as v1.5.2
coolaj86 がイシューをクローズ 2019-02-05 05:31:55 +00:00
サインインしてこの会話に参加。
ラベルなし
マイルストーンなし
担当者なし
2 人の参加者
通知
期日
期日が正しくないか範囲を超えています。 'yyyy-mm-dd' の形式で入力してください。

期日は未設定です。

依存関係

依存関係が設定されていません。

リファレンス: coolaj86/acme.js-ARCHIVED#12
説明はありません。