Skip to content

Cannot export keys with p256 plugin #108

@kshinn

Description

@kshinn

Context

I'm trying to use the EcdsaKeyPair as a utility to generate a stable keypair. For testing purposes I'm:

  1. Creating a keypair with exportable = true
  2. Exporting that keypair
  3. Loading the private key so I have a stable key to reuse across tests / experiments

This works fine using the EdKeypair, but fails with "key is not extractable" when using the p256 plugin.

I believe the problem is that, when creating a new key, the static method does not allow you to specify exportable and hardcodes the extraction parameter to "false" when creating the key.

I have a PR that addresses this issue that I will reference here.

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