From f3220854524a900773b075c1035be820c8dc1683 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 16 Dec 2015 17:21:03 -0800 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0aeb614..5baebda 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ You probably want one of these pre-built clients instead: * [`letsencrypt`](https://github.com/Daplie/node-letsencrypt) (compatible with the official client) * `letiny` (lightweight client cli) - * `letsencrypt-express` (automatic https for express) + * [`letsencrypt-express`](https://github.com/Daplie/letsencrypt-express) (automatic https for express) ## Install & Usage: From 4a11207dcd0465756ecb858b7552fb275686758b Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 17 Dec 2015 00:44:12 -0800 Subject: [PATCH 2/3] v1.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37934bd..bc79ada 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "letiny-core", - "version": "1.0.1", + "version": "1.0.2", "description": "A framework for building letsencrypt clients, forked from letiny", "main": "node.js", "browser": "browser.js", From 89c688c95587c4bd3f5dbf05e5ff0fef39df097d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 19 Dec 2015 11:26:52 -0800 Subject: [PATCH 3/3] create sha256 hash --- lib/letsencrypt-forge-extra.js | 4 +++- lib/letsencrypt-ursa.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/letsencrypt-forge-extra.js b/lib/letsencrypt-forge-extra.js index 058f988..8058255 100644 --- a/lib/letsencrypt-forge-extra.js +++ b/lib/letsencrypt-forge-extra.js @@ -55,7 +55,9 @@ function generateRsaKeypair(bitlen, exp, cb) { , privateKeyPem: pki.privateKeyToPem(keypair.privateKey) // ascii PEM: ----BEGIN... }; - // I would have chosen sha1 or sha2... but whatever + // for account id + pems.publicKeySha256 = crypto.createHash('sha256').update(pems.publicKeyPem).digest('hex'); + // for compat with python client account id pems.publicKeyMd5 = crypto.createHash('md5').update(pems.publicKeyPem).digest('hex'); // json { n: ..., e: ..., iq: ..., etc } pems.privateKeyJwk = toAcmePrivateKey(keypair.privateKey); diff --git a/lib/letsencrypt-ursa.js b/lib/letsencrypt-ursa.js index b0cecd8..ae8cd63 100644 --- a/lib/letsencrypt-ursa.js +++ b/lib/letsencrypt-ursa.js @@ -36,7 +36,9 @@ function generateRsaKeypair(bitlen, exp, cb) { , privateKeyPem: keypair.toPrivatePem().toString('ascii') // ascii PEM: ----BEGIN... }; - // I would have chosen sha1 or sha2... but whatever + // for account id + pems.publicKeySha256 = crypto.createHash('sha256').update(pems.publicKeyPem).digest('hex'); + // for compat with python client account id pems.publicKeyMd5 = crypto.createHash('md5').update(pems.publicKeyPem).digest('hex'); // json { n: ..., e: ..., iq: ..., etc } pems.privateKeyJwk = toAcmePrivateKey(pems.privateKeyPem);