diff --git a/index.js b/index.js index ebde595..7c3c2b4 100644 --- a/index.js +++ b/index.js @@ -452,6 +452,7 @@ Greenlock.create = function (gl) { domain: domain, domains: certs && certs.altnames || [ domain ] , certs: certs, certificate: {}, account: {} }; + opts.wildname = '*.' + (domain||'').split('.').slice(1).join('.'); function cb2(results) { log(gl.debug, 'gl.approveDomains called with certs for', results.certs && results.certs.altnames || 'NONE', 'and options:'); diff --git a/package-lock.json b/package-lock.json index b28347f..c2f8da3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "greenlock", - "version": "2.7.11", + "version": "2.7.12", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 34df231..0b5ca0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "greenlock", - "version": "2.7.11", + "version": "2.7.12", "description": "Let's Encrypt for node.js on npm", "main": "index.js", "files": [