From 607e352b173e8d539111c2ae4400f0f81116b67e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 22 Nov 2018 17:21:54 -0700 Subject: [PATCH] v0.8.0: JWK-to-PEM for PKCS#1 and SSH --- README.md | 9 ++-- ...048.jwt.json => privkey-rsa-2048.jwk.json} | 0 fixtures/pub-rsa-2048.jwk.json | 5 +++ lib/encoding.js | 20 ++++++++- lib/rasha.js | 2 +- lib/ssh.js | 44 ++++++++++++++++++- package.json | 2 +- 7 files changed, 74 insertions(+), 8 deletions(-) rename fixtures/{privkey-rsa-2048.jwt.json => privkey-rsa-2048.jwk.json} (100%) create mode 100644 fixtures/pub-rsa-2048.jwk.json diff --git a/README.md b/README.md index 64c17ad..ccb7af7 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,8 @@ It is considered to be complete, but if you find a bug please open an issue. --> ## PEM-to-JWK -* [x] PKCS#1 (traditional), PKCS#8, SPKI/PKIX +* [x] PKCS#1 (traditional) +* [x] PKCS#8, SPKI/PKIX * [x] 2048-bit, 4096-bit (and ostensibily all others) * [x] SSH (RFC4716), (RFC 4716/SSH2) @@ -45,16 +46,16 @@ Rasha.import({ pem: pem }).then(function (jwk) { } ``` -