From 361b0bf994e3401e836714144e98bb99ec079dc5 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 16 Dec 2018 00:34:53 -0700 Subject: [PATCH] doc updates --- README.md | 15 ++++++++------- bin/rsa-csr.js | 2 +- package.json | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3e857db..35ea580 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ [RSA-CSR.js](https://git.coolaj86.com/coolaj86/rsa-csr.js) ========== -Sponsored by [Root](https://therootcompany.com), -built for [ACME.js](https://git.coolaj86.com/coolaj86/acme.js) +A [Root](https://therootcompany.com) Project. + +Built for [ACME.js](https://git.coolaj86.com/coolaj86/acme.js) and [Greenlock.js](https://git.coolaj86.com/coolaj86/greenlock-express.js) A focused, **zero-dependency** library that can do exactly one thing really, really well: @@ -10,10 +11,6 @@ A focused, **zero-dependency** library that can do exactly one thing really, rea | < 300 lines of code | 1.7k gzipped | 4.7k minified | 8.5k with comments | -Need JWK-to-PEM? Try [Rasha.js](https://git.coolaj86.com/coolaj86/rasha.js) - -Need to generate an EC CSR? Try [ECSDA-CSR.js](https://git.coolaj86.com/coolaj86/ecdsa-csr.js) - Features ======== @@ -32,6 +29,10 @@ Features * [x] Vanilla Node.js * no school like the old school * easy to read and understand +* [ ] JWK-to-PEM + * See [Rasha.js](https://git.coolaj86.com/coolaj86/rasha.js) +* [ ] EC CSR + * See [ECSDA-CSR.js](https://git.coolaj86.com/coolaj86/ecdsa-csr.js) Usage ----- @@ -56,7 +57,7 @@ var key = { }; var domains = [ 'example.com', 'www.example.com' ]; -return rsacsr({ key: key, domains: domains }).then(function (csr) { +return rsacsr({ jwk: key, domains: domains }).then(function (csr) { console.log('CSR PEM:'); console.log(csr); }); diff --git a/bin/rsa-csr.js b/bin/rsa-csr.js index a923330..c3a5e71 100755 --- a/bin/rsa-csr.js +++ b/bin/rsa-csr.js @@ -15,7 +15,7 @@ try { // ignore } -rsacsr({ key: key, domains: domains }).then(function (csr) { +rsacsr({ jwk: key, domains: domains }).then(function (csr) { // Using error so that we can redirect stdout to file //console.error("CN=" + domains[0]); //console.error("subjectAltName=" + domains.join(',')); diff --git a/package.json b/package.json index 9dfca12..f378042 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rsa-csr", - "version": "1.0.5", + "version": "1.0.6", "description": "💯 A focused, zero-dependency library to generate a Certificate Signing Request (CSR) and sign it!", "homepage": "https://git.coolaj86.com/coolaj86/rsa-csr.js", "main": "index.js",