Skip to content

crypto: add KeyObject.from and keyObject.export JWK format support

I'm opening this Draft PR to see/probe if there's interest in taking it further (cleaning up and getting it ready to land, which i'm all willing to do). It builds on top of #36188

This adds the 'jwk' format option value for keyObject.export. It also adds a KeyObject.fromJwk static method (its functionality should probably be added to KeyObject.from but I don't think that one was meant to ship in the first place so maybe this could completely replace it, see the question in code.)

WDYT? Is it worth spending further time on in hopes of being accepted?

refs #24471 (closed) refs #26854 (closed)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading