<?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>nRF7002dk TLS MQTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110683/nrf7002dk-tls-mqtt</link><description>Hello, I am trying to connect to an MQTT server using PEM certs and mqtt helper, however I get an error: -22 from mqtt_helper: mqtt_connect I have traced the issue to zsock_connect. From my understanding, this is due to the certificate not being in .der</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 May 2024 02:45:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110683/nrf7002dk-tls-mqtt" /><item><title>RE: nRF7002dk TLS MQTT</title><link>https://devzone.nordicsemi.com/thread/481357?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 02:45:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e29529fd-17f7-4ebb-af23-dd28e584b2d7</guid><dc:creator>mahabib</dc:creator><description>&lt;p&gt;Hey, Sigurd thank you for your response. I have it resolved now, a couple of steps:&lt;/p&gt;
&lt;p&gt;1) I converted my certs to DER and added them manually,&amp;nbsp; CONFIG_MBEDTLS_PEM_CERTIFICATE_FORMAT does not seem to work, at-least with WPA enabled.&lt;/p&gt;
&lt;p&gt;2) I rolled back to 2.5.1 from 2.6.1 it almost seems like 2.6.1 requires the _ns built with CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y&amp;nbsp; for TLS certs to be retrieved properly via SEC tags.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002dk TLS MQTT</title><link>https://devzone.nordicsemi.com/thread/481200?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 06:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a0d6417-1654-4798-bc1f-4e7cbaf85466</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="mahabib"]I&amp;nbsp; am getting the same error setting my TLS certs this way, as well. [/quote]
&lt;p&gt;Let us take this one step at a time, so we can figure out where things goes wrong.&lt;/p&gt;
&lt;p&gt;Did the HTTPS Client sample work out of the box? &lt;br /&gt;Which changes did you make to the sample when it stopped working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002dk TLS MQTT</title><link>https://devzone.nordicsemi.com/thread/481168?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 17:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70dd6da7-75b1-41f1-bb5c-f3677f6e7b3d</guid><dc:creator>mahabib</dc:creator><description>&lt;p&gt;Unfortunately I&amp;nbsp; am getting the same error setting my TLS certs this way, as well. &lt;/p&gt;
&lt;p&gt;I am using the AWS IoT Connect helper function/library with CONFIG_MQTT_HELPER_PROVISION_CERTIFICATES=n (setting them my self)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002dk TLS MQTT</title><link>https://devzone.nordicsemi.com/thread/480989?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 06:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bd6d519-9cb3-4711-9924-3a277e231923</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/net/https_client/README.html"&gt;HTTPS Client sample&lt;/a&gt; for how to do TLS with the nRF7002.&lt;br /&gt;Observe also how it is converting its .pem to .inc in &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/508df016dc36e869bdcd2523f397e9a2ad41fe9c/samples/net/https_client/CMakeLists.txt#L15-L19"&gt;CMakeLists.txt&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>