<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00008JQ0ncSADOkta Classic EngineIntegrationsAnswered2020-09-20T23:36:13.000Z2020-04-21T17:54:52.000Z2020-09-20T23:36:13.000Z

AmarnathC.36888 (Customer) asked a question.

Generate Authorization server key with x5c

Hi Team,

I would like to see how we can generate a new JWKS key for Authorization server which contains x5c public certificate details as my resource server needs the x509 public cert to validate the access token, since there is no x5c in Auth server keys, I am not able to share it with my resource server team.

Can anyone help me how to create a new auth server or update existing auth server with a key that should have x5c in it ?

Thanks,

Amar


  • Hi Amarnath,

     

    You can generate the public certificate from the modulus and exponent values that are available on the /keys endpoint of the authorization server used. The JWT verifier library used should do this automatically, however, if not, you can use the example available here to create your own method.

     

    Dragos Gaftoneanu

    Developer Support Engineer

    Okta Global Customer Care

    Expand Post
  • AmarnathC.36888 (Customer)

    @dragos.gaftoneanu1.5193128389903699E12 (Okta, Inc.)​ You are referring to "generating an RSA Public key", which is not same as the X509 certificate. I am looking for a method to generate the X509 certificate from the Okta key, and I noticed it is only possible if the x5c param is populated on the JWKS keys json.

    -----BEGIN PUBLIC KEY----- (format of RSA Public key)

    -----BEGIN PUBLIC CERTIFICATE----- (format of RSA Public certifcate in X509 format)

    Expand Post
  • krishnaj.64582 (Customer)

    were you able to figure out solution for this? I do have same need to create an authorization server with x5c in keys.

    • AmarnathC.36888 (Customer)

      No, I couldn't find any feature in Okta to download the x5c from the auth server as per their documentation, i had to do a customization which works with RSA Public key.

      • krishnaj.64582 (Customer)

        Amar, Thank you very much! Did you customize your resource server or you did some customization in okta? unfortunately my resource server doesn't allow any customization.

         

         

This question is closed.
Loading
Generate Authorization server key with x5c