<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MQTT security with JWT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107385/mqtt-security-with-jwt</link><description>Hey, 
 
 With the current mqtt_client library, you can secure your data with an x509 certificate. Is there a way to use a JWT token for authentication?( I have seen that the JWT is already implemented for the nRF CLoud API calls.) There are also quite</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jan 2024 12:24:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107385/mqtt-security-with-jwt" /><item><title>RE: MQTT security with JWT</title><link>https://devzone.nordicsemi.com/thread/464164?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2024 12:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:554db314-4a8b-4417-b663-5c2050ae8726</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The JWT is just used as the username or password, so there is nothing stopping you from using JWTs with MQTT in NCS.&lt;/p&gt;
&lt;p&gt;Just note that the mqtt_helper library doesn&amp;#39;t support setting the password field (per NCS 2.5.0), so if you need to use that field, you must either modify the mqtt_helper library, or use the mqtt_client library directly.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>