doesn't use jwkKeyPath

This commit is contained in:
Cyrille 2019-05-09 22:18:09 +01:00
parent 8e38a11e46
commit 8a1048c7a2
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ module.exports.check = (opts, options) => {
, chain: values[2] , chain: values[2]
}; };
}).catch((err) => { }).catch((err) => {
console.error("There was an error checking the ceritifcates:", err.message); console.error("There was an error checking the certificates:", err.message);
return null; return null;
}); });
}; };

View File

@ -9,7 +9,7 @@ module.exports.checkKeypair = (opts, options) => {
let id = opts.certificate.kid || opts.certificate.id || opts.subject; let id = opts.certificate.kid || opts.certificate.id || opts.subject;
let pemKeyPath = pathHelper.certificatesPath(options, id, fileNames.privkey.pem); let pemKeyPath = pathHelper.certificatesPath(options, id, fileNames.privkey.pem);
let jwkKeyPath = pathHelper.certificatesPath(options, id, fileNames.privkey.jwk); // let jwkKeyPath = pathHelper.certificatesPath(options, id, fileNames.privkey.jwk);
return s3.getObject({ Key: pemKeyPath, Bucket: options.bucketName }).promise().then((data) => { return s3.getObject({ Key: pemKeyPath, Bucket: options.bucketName }).promise().then((data) => {
console.log("Successfully retrieved certificate PEM keypair."); console.log("Successfully retrieved certificate PEM keypair.");