Brightspace / node-jwk-to-pem

Convert a json web key to a PEM for use by OpenSSL or crytpo
Apache License 2.0
151 stars 29 forks source link

jwk to PEM is taking time to convert when private option is true #107

Open gauravjain024 opened 3 years ago

gauravjain024 commented 3 years ago

JWk to PEM is taking time to convert

It takes approx ~2.5 sec to convert JWK to PEM when private option is enabled.

const pem = jwkToPem(jwkSet, { private: true });

This process is making the overall request slower than expected.