# How to find the cert or public key in okta JWK endpoint?

**URL:** <https://devforum.okta.com/t/how-to-find-the-cert-or-public-key-in-okta-jwk-endpoint/8995>\
**Category:** Questions\
**Created:** [April 22, 2020, 4:08am UTC](https://devforum.okta.com/t/how-to-find-the-cert-or-public-key-in-okta-jwk-endpoint/8995 "2020-04-22T04:08:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wei](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@Wei](https://devforum.okta.com/u/Wei)\
**Post date:** [April 22, 2020, 4:08am UTC](https://devforum.okta.com/t/how-to-find-the-cert-or-public-key-in-okta-jwk-endpoint/8995/1 "2020-04-22T04:08:22Z")

</div>

Hi Expert,

I have a special case here. Given the jwks\_uri : [https://dev-850216.okta.com/oauth2/default/v1/keys](https://dev-850216.okta.com/oauth2/default/v1/keys)  
I am not able to find x5c.  
Is there a way for me to retrieve the public cert in Okta ?  
In this section :  
[https://developer.okta.com/docs/guides/validate-access-tokens/go/overview/#what-to-check-when-validating-an-access-token](https://developer.okta.com/docs/guides/validate-access-tokens/go/overview/#what-to-check-when-validating-an-access-token) which mentioned about

You verify the Access or ID token’s signature by matching the key that was used to sign in with one of the keys that you retrieved from your Okta Authorization Server’s JWK endpoint. Specifically, each public key is identified by a `kid` attribute, which corresponds with the `kid` claim in the Access or ID token header.

Where can I find the public key or cert ?

---

<div class="post-metadata">

**Author:** ![chu123](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/chu123/32/1816_2.png) [@chu123](https://devforum.okta.com/u/chu123)\
**Post date:** [April 22, 2020, 7:53pm UTC](https://devforum.okta.com/t/how-to-find-the-cert-or-public-key-in-okta-jwk-endpoint/8995/2 "2020-04-22T19:53:37Z")

</div>

I think you want this?

```
{{url}}/api/v1/apps/{{appId}}/credentials/keys/{{keyId}}
```

---

<div class="post-metadata">

**Author:** ![Wei](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@Wei](https://devforum.okta.com/u/Wei)\
**Post date:** [April 22, 2020, 8:29pm UTC](https://devforum.okta.com/t/how-to-find-the-cert-or-public-key-in-okta-jwk-endpoint/8995/3 "2020-04-22T20:29:32Z")

</div>

thanks for your response. I do not understand your comments. I am a newbie in okta.  
what do you mean :  
{{url}}/api/v1/apps/{{appId}}/credentials/keys/{{keyId}} ?  
I think the url should be : [[https://dev-850216.okta.com](https://dev-850216.okta.com)]… I do not know what ia appId

This is out of my jwks:  
{  
“kid”: “XI5pBOeLB\_wLXwfl7KaEWjidtLqxUUtB6YF3kVPdVT0”  
“use”: “sig”  
“e”: “AQAB”  
“n”: “i6pF-t\_uSN6usYYM5n\_SkAodvty2GhGrwTr4DZtGjBlqNh11vXXMTQ3gL2jlo1JCWkU-mNjE8SKoHKlt5okXHiFK\_AbBRfOT4mRxLDWFI6T0-rA5MyHj80mFw1cEzlOVF4IxiO44xcjQJduDNuZKHiM5uAJZi6T\_295yDp1jZGMZRWuWfMBh\_9uxiFHENpulWRTtTgoi9ZZ1KH9znczXb0BPAUH1UHn624NtU1h8GGwGZ3vBHOlXtayFQysvazWiD2RGGG-p7cik3no78Ip\_r19ilfWfb3XPizM3XikStzfVMFovIAZsWFZqObWxaXDVcdOSfh7XJwlNcNDaxjhvLQ”  
}

---

<div class="post-metadata">

**Author:** ![chu123](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/chu123/32/1816_2.png) [@chu123](https://devforum.okta.com/u/chu123)\
**Post date:** [April 22, 2020, 8:53pm UTC](https://devforum.okta.com/t/how-to-find-the-cert-or-public-key-in-okta-jwk-endpoint/8995/4 "2020-04-22T20:53:21Z")

</div>

See the API call here under “List Applications Using Key”  
[https://developer.okta.com/docs/reference/api/apps/#list-applications-using-a-key](https://developer.okta.com/docs/reference/api/apps/#list-applications-using-a-key)

---

<div class="post-metadata">

**Author:** ![Wei](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@Wei](https://devforum.okta.com/u/Wei)\
**Post date:** [April 22, 2020, 9:27pm UTC](https://devforum.okta.com/t/how-to-find-the-cert-or-public-key-in-okta-jwk-endpoint/8995/5 "2020-04-22T21:27:10Z")

</div>

Thanks for your comment.  
ok. Forgive my ignorance here. It seems it is very complicated to achieve a simple task I want to do here. I am using outbox of Okta’s Oauth2 Server a single point to do simple integration. The reason I need this public key or cert so that I can verify in elsewhere. Why the default Authorization Server does not publish x5c as part of the jwks\_uri in the metaapi. I have done simple integration with Microsoft’s Azure and Oracle’s IDCS as well. They all seems to have this x5c.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 24, 2024, 7:46pm UTC](https://devforum.okta.com/t/how-to-find-the-cert-or-public-key-in-okta-jwk-endpoint/8995/6 "2024-01-24T19:46:21Z")

</div>

Closed on January 24, 2024, 7:46pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
