For the purpose of generating the signed JWT for apple sign in. Apple has provided the private key in pem format. The only examples on the internet are the same ruby example (for example one here https://developer.okta.com/blog/2019/06/04/what-the-heck-is-sign-in-with-apple). The only nimbus-jose example that comes close is https://connect2id.com/products/nimbus-jose-jwt/examples/jws-with-ec-signature which assumes i want to generate the keypair.
I dont see any obvious way to do this. What am i missing?