pass domain arg to getCertificate API

This commit is contained in:
Girish Ramakrishnan
2018-09-10 20:41:38 -07:00
parent 2c76716bc7
commit 2f38a4018c
7 changed files with 34 additions and 27 deletions

View File

@@ -22,7 +22,7 @@ exports = module.exports = {
removeAppConfigs: removeAppConfigs,
// exported for testing
_getApi: getApi
_getCertApi: getCertApi
};
var acme2 = require('./cert/acme2.js'),
@@ -255,7 +255,7 @@ function ensureCertificate(appDomain, auditSource, callback) {
debug('ensureCertificate: getting certificate for %s with options %j', vhost, apiOptions);
api.getCertificate(vhost, apiOptions, function (error, certFilePath, keyFilePath) {
api.getCertificate(vhost, appDomain.domain, apiOptions, function (error, certFilePath, keyFilePath) {
var errorMessage = error ? error.message : '';
if (error) {