Convert RSA public key in /keys endpoint to PEM

Hello :
I need to convert the RSA Public Key I get from the OKTA /keys endpoint into PEM.
I’m using node14. Any idea(library and module) that could help me with that?


Never tried this but you can take a look at jwk-to-pem - npm (

1 Like

I have just looked into your given link. The instructions are pretty clear. Thanks!