<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[JWT public keys are empty]]></title><description><![CDATA[<p dir="auto">Hey there… I’ve been searching for a solution to problem I am having with the /jwt/public-key endpoint. It seems there are no keys being returned.  The response is</p>
<pre><code>{"publicKeys":{}}
</code></pre>
<p dir="auto">When I supply an application ID with the request, I get an exception</p>
<pre><code>The @JSONResponse field [response] in the action [class io.fusionauth.app.action.api.jwt.PublicKeyAction] is null. It cannot be null!
</code></pre>
<p dir="auto">Any insight on this? Am I missing a configuration setting somewhere? I would have expected maybe a default key would have been returned.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2204/jwt-public-keys-are-empty</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 06:04:38 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2204.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Oct 2022 15:49:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to JWT public keys are empty on Mon, 17 Oct 2022 14:34:34 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the update!</p>
]]></description><link>https://fusionauth.io/community/forum/post/5565</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/5565</guid><dc:creator><![CDATA[stacey]]></dc:creator><pubDate>Mon, 17 Oct 2022 14:34:34 GMT</pubDate></item><item><title><![CDATA[Reply to JWT public keys are empty on Thu, 20 Oct 2022 14:35:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/1189">@stacey</a></p>
<p dir="auto">To confirm, you are trying to hit <a href="https://fusionauth.io/docs/v1/tech/apis/jwt#retrieve-public-keys" rel="nofollow ugc">this endpoint</a> to retrieve a public key, correct?</p>
<p dir="auto">In order to get this endpoint to publish/return your public key, you will need to either import or generate a key pair. I would review whether you are importing an existing key pair or generating a new one here: <a href="https://fusionauth.io/docs/v1/tech/core-concepts/key-master#importing-vs-generating" rel="nofollow ugc">https://fusionauth.io/docs/v1/tech/core-concepts/key-master#importing-vs-generating</a></p>
<p dir="auto">Have you done this step yet? If not, once the pair is imported/generated correctly, this endpoint should return your public key.</p>
<p dir="auto">If it's still returning an error, please let us know.</p>
<p dir="auto">As for the @JSONResponse error, we should be handling that and you should be getting this response when hitting the same endpoint with the applicationId.</p>
<pre><code>{}
</code></pre>
<p dir="auto">I opened a bug here if you would like to track it. <a href="https://github.com/FusionAuth/fusionauth-issues/issues/1918" rel="nofollow ugc">https://github.com/FusionAuth/fusionauth-issues/issues/1918</a></p>
<p dir="auto">source: <a href="https://fusionauth.io/community/forum/topic/404/i-imported-a-public-key-and-am-not-seeing-the-kid-in-the-jwks-endpoint">https://fusionauth.io/community/forum/topic/404/i-imported-a-public-key-and-am-not-seeing-the-kid-in-the-jwks-endpoint</a></p>
<p dir="auto">Thanks and happy coding,</p>
<p dir="auto">Johnathon</p>
]]></description><link>https://fusionauth.io/community/forum/post/5563</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/5563</guid><dc:creator><![CDATA[johnathon]]></dc:creator><pubDate>Thu, 20 Oct 2022 14:35:10 GMT</pubDate></item></channel></rss>