add wildname support
This commit is contained in:
parent
51cfb2001e
commit
7233d38090
|
@ -231,9 +231,16 @@ G.create = function(gconf) {
|
||||||
};
|
};
|
||||||
|
|
||||||
greenlock._single = function(args) {
|
greenlock._single = function(args) {
|
||||||
if (!args.servername) {
|
if ('string' !== typeof args.servername) {
|
||||||
return Promise.reject(new Error('no servername given'));
|
return Promise.reject(new Error('no servername given'));
|
||||||
}
|
}
|
||||||
|
// www.example.com => *.example.com
|
||||||
|
args.wildname =
|
||||||
|
'*.' +
|
||||||
|
args.servername
|
||||||
|
.split('.')
|
||||||
|
.slice(1)
|
||||||
|
.join('.');
|
||||||
if (
|
if (
|
||||||
args.servernames ||
|
args.servernames ||
|
||||||
args.subject ||
|
args.subject ||
|
||||||
|
|
Loading…
Reference in New Issue