The x5c array looks almost right, but it’s clearly not the right format for our application, which expects:
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQE...
BAQUAA4GNADCBiQKBg...
QDdlatRjRjogo3WojgGH....
-----END PUBLIC KEY-----
What’s the simplest way to get this public cert? Is it related to the Signing Certificate available in the advanced section of the auth0 tenant application?
It looks like the cert you get from the /pem endpoint is a public certificate that contains other information in addition to the public key. If you decode it, you can see other information.
The result from your openSSL command extracts the public key from the original cert.
My original response said you could get the PEM formatted public key from the /pem endpoint, which is not exactly correct. It looks like you get a PEM formatted cert that contains the public key. I’ll edit it.
thanks Dan! It would be excellent to have an easily fetchable endpoint that provides the cert. This way https://:domain.auth0.com/.well-known/jwks.json or similar would allow us to always have the up to date keys even in the event of key rotation. Great for automated devops.
To knowing aah yeah MIIDDTCCA I recognise that. Clear as mud, that’s obviously the contents of a CRT encoded cert and I’ll just whip out openssl to translate that into the public key I actually need?
And is it, in fact, that pub-key I need? I’m still not clear on that?
What framework/language are you using? There are libraries that handle all of this for you, you shouldn’t have to manually set anything unless you are wanting to or have a very specific use-case. Most of our SDKs allow you to set a domain and will retrieve your public key automatically.