From e52f043cfe205d0920ed8e2a2fcf172f9a533df9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 1 Aug 2016 20:25:46 -0400 Subject: [PATCH] rename privateKey -> keypair --- lib/acme-client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/acme-client.js b/lib/acme-client.js index b5755d5..cb9a320 100644 --- a/lib/acme-client.js +++ b/lib/acme-client.js @@ -13,8 +13,8 @@ module.exports.create = function (deps) { var request=require('request'); var generateSignature=deps.RSA.signJws; - function Acme(privateKey) { - this.privateKey=privateKey; + function Acme(keypair) { + this.keypair; this.nonces=[]; } @@ -54,7 +54,7 @@ module.exports.create = function (deps) { log('Using nonce: '+this.nonces[0]); payload=JSON.stringify(body, null, 2); jws=generateSignature( - this.privateKey, new Buffer(payload), this.nonces.shift() + this.keypair, new Buffer(payload), this.nonces.shift() ); signed=JSON.stringify(jws, null, 2);