Make certificate renewal a task

This commit is contained in:
Girish Ramakrishnan
2018-12-10 20:20:53 -08:00
parent a76731a991
commit d2f4b68c9f
9 changed files with 35 additions and 33 deletions
-15
View File
@@ -9,8 +9,6 @@ module.exports = exports = {
clear: clear,
isLocked: isLocked,
renewCerts: renewCerts,
fqdn: fqdn,
getDnsRecords: getDnsRecords,
@@ -496,16 +494,3 @@ function makeWildcard(hostname) {
parts[0] = '*';
return parts.join('.');
}
function renewCerts(domain, auditSource, callback) {
assert.strictEqual(typeof domain, 'string');
assert.strictEqual(typeof auditSource, 'object');
assert.strictEqual(typeof callback, 'function');
// trigger renewal in the background
reverseProxy.renewCerts({ domain: domain }, auditSource, function (error) {
debug('renewCerts', error);
});
callback();
}