@certd/acme-client 1.20.9 → 1.20.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Simple and unopinionated ACME client",
4
4
  "private": false,
5
5
  "author": "nmorsman",
6
- "version": "1.20.9",
6
+ "version": "1.20.10",
7
7
  "main": "src/index.js",
8
8
  "types": "types/index.d.ts",
9
9
  "license": "MIT",
@@ -59,5 +59,5 @@
59
59
  "bugs": {
60
60
  "url": "https://github.com/publishlab/node-acme-client/issues"
61
61
  },
62
- "gitHead": "adf569eb62540ce74e091b0d7a55706d959a5e0d"
62
+ "gitHead": "a31f1c7f5e71fa946de9bf0283e11d6ce049b3e9"
63
63
  }
package/src/auto.js CHANGED
@@ -59,9 +59,8 @@ module.exports = async function(client, userOpts) {
59
59
  */
60
60
 
61
61
  log('[auto] Parsing domains from Certificate Signing Request');
62
- const csrDomains = readCsrDomains(opts.csr);
63
- const domains = [csrDomains.commonName].concat(csrDomains.altNames);
64
- const uniqueDomains = Array.from(new Set(domains));
62
+ const { commonName, altNames } = readCsrDomains(opts.csr);
63
+ const uniqueDomains = Array.from(new Set([commonName].concat(altNames).filter((d) => d)));
65
64
 
66
65
  log(`[auto] Resolved ${uniqueDomains.length} unique domains from parsing the Certificate Signing Request`);
67
66
 
package/src/client.js CHANGED
@@ -261,7 +261,7 @@ class AcmeClient {
261
261
  const accountUrl = this.api.getAccountUrl();
262
262
 
263
263
  /* Create new HTTP and API clients using new key */
264
- const newHttpClient = new HttpClient(this.opts.directoryUrl, newAccountKey);
264
+ const newHttpClient = new HttpClient(this.opts.directoryUrl, newAccountKey, this.opts.externalAccountBinding);
265
265
  const newApiClient = new AcmeApi(newHttpClient, accountUrl);
266
266
 
267
267
  /* Get old JWK */