Skip to content

add support for private keys with passphrase and cypher fields #234

Closed

Description

@davesag

Node 10 introduced support for crypto.generateKeyPair and the standard example includes a cypher and passphrase field. However, according to other comments, certificates with a passphrase are currently not supported.

This is therefore a feature request to support the passphrase option in node-jose.

Cheers

Dave

Activity

  1. panva commented on Jan 25, 2019

    @panva
    Contributor

    unfortunately this won't be in our powers to deliver, in node >= 11.6 you may pass your encrypted keys to crypto.createPrivateKey with the passphrase and get a keyobject that you export as non-encrypted pem to pass to to JWK.importKey.

  2. davesag commented on Jan 25, 2019

    @davesag
    Author

    Can I take it then that this project is no longer being actively supported?

  3. panva commented on Jan 25, 2019

    @panva
    Contributor

    Can I take it then that this project is no longer being actively supported?

    On the contrary, we do support the current API but in light of this feature being part of native node stable branch already I don't feel like we need to have this in a package.

    FWIW for environments other than node this feature doesn't make much sense anyway.

  4. davesag commented on Jan 25, 2019

    @davesag
    Author

    I think it’s rhen at least worth clarifying in the documentation that node-Jose is incompatible with pems that have passwords. Right now it just silently fails which is frustrating to debug.

  5. panva commented on Jan 25, 2019

    @panva
    Contributor

    I agree. Thanks for pointing that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions