node-jose icon indicating copy to clipboard operation
node-jose copied to clipboard

Import/Export keystore encrypted

Open hildjj opened this issue 9 years ago • 1 comments

When exporting a keystore with true in order to get the private keys, it would be nice to be able to specify a passphrase in order to get a PKCS#12, or something more interesting, like a JWE that uses pbkdf2 to expand a passphrase into a symmetric key. Import would need to be extended to deal with whatever format is chosen.

hildjj avatar Nov 30 '15 20:11 hildjj

The current expectation is that the API user calls the "export" methods then uses the result as input to whatever serialization strategy they want to use. The same (in reverse) goes for the "import" methods.

That said, providing some form of helpers to glue things together seems reasonable.

linuxwolf avatar Nov 30 '15 21:11 linuxwolf