💯 RSA tools. Lightweight. Zero Dependencies. Great tests. Universal compatibility.
rsa
Go to file
AJ ONeal 66f245681e move some things to x509.js 2018-11-22 02:09:02 -07:00
bin a squeaky clean start 2018-11-22 00:39:43 -07:00
fixtures add test files 2018-11-21 01:19:57 -07:00
lib move some things to x509.js 2018-11-22 02:09:02 -07:00
README.md add test files 2018-11-21 01:19:57 -07:00
index.js a squeaky clean start 2018-11-22 00:39:43 -07:00
package.json v0.0.2: placeholder 2018-11-20 01:02:36 -07:00

README.md

Placeholder

I've just completed these:

I've got working prototypes for the RSA variants as well and I'm in the middle of cleaning them up to publish.

Testing

openssl genrsa -out privkey-rsa-2048.pkcs1.pem 2048
openssl rsa -in privkey-rsa-2048.pkcs1.pem -pubout -out pub-rsa-2048.spki.pem
openssl pkcs8 -topk8 -nocrypt -in privkey-rsa-2048.pkcs1.pem -out privkey-rsa-2048.pkcs8.pem
openssl rsa -in pub-rsa-2048.spki.pem -pubin -RSAPublicKey_out -out pub-rsa-2048.pkcs1.pem
ssh-keygen -f ./pub-rsa-2048.spki.pem -i -mPKCS8 > ./pub-rsa-2048.ssh.pub

** unified openssl commands **

https://gist.github.com/briansmith/2ee42439923d8e65a266994d0f70180b