fix path to cert

This commit is contained in:
Girish Ramakrishnan
2015-12-12 20:26:47 -08:00
parent c2a4ef5f93
commit be4d2afff3

View File

@@ -311,7 +311,7 @@ function downloadCertificate(accountKeyPem, domain, outdir, callback) {
var certificatePem = execSync('openssl x509 -inform DER -outform PEM', { input: certificateDer }); // this is really just base64 encoding with header
if (!certificatePem) return callback(new AcmeError(AcmeError.INTERNAL_ERROR, safe.error));
var chainPem = safe.fs.readFileSync(__dirname + '/cert/lets-encrypt-x1-cross-signed.pem.txt');
var chainPem = safe.fs.readFileSync(__dirname + '/lets-encrypt-x1-cross-signed.pem.txt');
if (!chainPem) return callback(new AcmeError(AcmeError.INTERNAL_ERROR, safe.error));
var certificateFile = path.join(outdir, domain + '.cert');