Is it possible for Oathkeeper to include <x5c> in ...
# talk-oathkeeper
l
Is it possible for Oathkeeper to include x5c in the JWK? We have existing logic in our backend that uses this field for JWT validation and it's currently missing in the JWK that Oathkeeper generates.
Figured it out after reading more into the spec . Need to find a CLI way of doing this, but for those interested: • Go to https://mkjwk.org/ and generate a public/private key set with "Show X.509" cert enabled. • Take the self-signed cert value (without "BEGIN/END CERTIFICATE) and create a new field in the key set:
Copy code
"x5c": ["SELF-SIGNED-CERT-VALUE"]
And that's it! Oathkeeper will now provide the
x5c
field in the JWK payload and services will be able to successfully validate tokens using this field. Hope this is helpful.