Skip to content

Export key error #30

@tplooker

Description

@tplooker

With the latest release of this library v1.1.7 I get the following error

Cannot get schema for 'PrivateKeyInfo' target

When running the following

const crypto = new Crypto();

const cryptoKeyPair = (await crypto.subtle.generateKey(
    {
      name: "ECDSA",
      namedCurve: "P-256",
    },
    true,
    [KeyUsage.SIGN]
  ));

  const exportedKey = (await subtleCrypto.exportKey("jwk", cryptoKeyPair.privateKey));

Issue is not present with v1.1.6

For additional context i'm running NodeJS 12.22.1

Metadata

Metadata

Assignees

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