auth0 / node-jwa

JSON Web Algorithms
http://tools.ietf.org/id/draft-ietf-jose-json-web-algorithms-08.html
MIT License
98 stars 42 forks source link

Handle RSA passphrase #6

Closed alexandrebodin closed 9 years ago

alexandrebodin commented 9 years ago

Hello,

I would like to use a {key : cert, passphrase: 'pass'} has key to pass on to the crypto lib for signing and using protected pem files.

Looking at the NodeJs Crypto documentation I found that this is faisable.

The only problem is that you check if the provided key is a buffer or a string. I believe this is not necessary as the lib handles it.

alexandrebodin commented 9 years ago

The PR #7 fixes it

omsmith commented 9 years ago

Fixed by #7.

Published in 1.1.0