# What if a token recipient (in a request chain) does not have access to the public key?

**URL:** <https://community.auth0.com/t/what-if-a-token-recipient-in-a-request-chain-does-not-have-access-to-the-public-key/92449>\
**Category:** JWT.io\
**Tags:** jwt\
**Created:** [October 14, 2022, 7:48pm UTC](https://community.auth0.com/t/what-if-a-token-recipient-in-a-request-chain-does-not-have-access-to-the-public-key/92449 "2022-10-14T19:48:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve973](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/steve973/32/40617_2.png) [@Steve973](https://community.auth0.com/u/Steve973)\
**Post date:** [October 14, 2022, 7:48pm UTC](https://community.auth0.com/t/what-if-a-token-recipient-in-a-request-chain-does-not-have-access-to-the-public-key/92449/1 "2022-10-14T19:48:42Z")

</div>

Hello, all. I have an application stack that has some Java services and some Python services. If a user initiates a request, and then a token is created (RSA-384) in a Java service, it may make its way to a Python service on another machine. Both machines have certificates from the same issuer, but the Python service on another machine does not have access to the public key of the Java server where the JWT was created. In this case, is there any way that I can verify the signature? Is it possible to verify by using the issuer?

Note that we do not have a server (like keycloak) that handles the issuing of tokens at this time. We will move toward a more standard authentication architecture, but we are a research project for an organization, and we are trying to get this up and running quickly.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 27, 2022, 5:59pm UTC](https://community.auth0.com/t/what-if-a-token-recipient-in-a-request-chain-does-not-have-access-to-the-public-key/92449/3 "2022-10-27T17:59:31Z")

</div>

Hi @Steve973

Welcome to the Auth0 Community!

Can you give some example of the following:

> [@Steve973](#):
>
> Both machines have certificates from the same issuer

and

> [@Steve973](#):
>
> Is it possible to verify by using the issuer?

What certificates and what do you mean verify using the issuer?

---

<div class="post-metadata">

**Author:** ![Steve973](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/steve973/32/40617_2.png) [@Steve973](https://community.auth0.com/u/Steve973)\
**Post date:** [October 28, 2022, 8:26pm UTC](https://community.auth0.com/t/what-if-a-token-recipient-in-a-request-chain-does-not-have-access-to-the-public-key/92449/4 "2022-10-28T20:26:43Z")

</div>

Hi, @dan.woda and thank you for replying.

On an enclave, we have a certificate authority that issues certificates. Let’s say that we have Server A and Server B that both have SSL certs from that same CA (issuer). I generate a token on Server A, and sign it with Server A’s SSL private key, and pass it with a request to Server B. If Server B does not have access to Server A’s public cert, can Server B still verify the JWT from Server A?

Note that I have gotten around this in another way, but I would still like to know if this is possible.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 28, 2022, 9:34pm UTC](https://community.auth0.com/t/what-if-a-token-recipient-in-a-request-chain-does-not-have-access-to-the-public-key/92449/5 "2022-10-28T21:34:41Z")

</div>

> [@Steve973](#):
>
> If Server B does not have access to Server A’s public cert, can Server B still verify the JWT from Server A?

No, a public key is needed to verify the signature.

If both of your servers are communicating with a central authority, why not make the public keys available from that centralized source?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 28, 2022, 8:56pm UTC](https://community.auth0.com/t/what-if-a-token-recipient-in-a-request-chain-does-not-have-access-to-the-public-key/92449/6 "2022-11-28T20:56:54Z")

</div>

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