TFW you find exactly the tool you need for something and it works just like you want. Yay! Today that tool was jwker, which allows quickly turning PEM certs into JSON Web Keys (JWKs).
https://github.com/jphastings/jwker/
And the author is on hachyderm! thanks @byjp
@anderseknert My absolute pleasure!
It’s been a little while since I wrote it, so shout if it needs any dusting off
@byjp No dust detected so far! I'm working on a small JWT library in Rego, and this helps me test that any given key is accepted as either PEM or JWK. There's like a hundred online tools to do this, but a CLI tool in preferably Go was exactly what I needed.
@anderseknert I’m very glad to hear it! I love building little tools like this; I’m glad it’s useful to you!
Nice! This is one I've ended up needing to do a few times too