<?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>Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120961/azure-iot-hub-authentication-with-dps</link><description>I am trying to get my nRF9151DK connected to Azure IoT Hub. I have used the Azure IoT Hub sample, with some modifications to use LTE instead of WiFi which does not seem supported by my board. The board seems to connect well to the LTE network. Then I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Apr 2025 17:19:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120961/azure-iot-hub-authentication-with-dps" /><item><title>RE: Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/thread/533629?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2025 17:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87310e1d-da7c-4508-aa8a-fae8b36daebb</guid><dc:creator>Mariano Goluboff</dc:creator><description>&lt;p&gt;To close the loop here (after a remote debug session):&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The issue here is the use of Native TLS with the following config:&lt;/p&gt;
&lt;p&gt;CONFIG_MQTT_HELPER_NATIVE_TLS=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Removing that from prj.conf made it so that the MQTT connection is made. The reason is that to use the certificates stored in the nRF91&amp;#39;s modem, TLS needs to be handled by the modem (offloaded, not native).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/thread/533558?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2025 11:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85ef58b0-7dfa-42d8-acc8-20cc6d93122e</guid><dc:creator>Mariano Goluboff</dc:creator><description>&lt;p&gt;In&amp;nbsp;step 8 in the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/nrf/libraries/networking/azure_iot_hub.html#generate_and_provision_device_certificates"&gt;instructions&lt;/a&gt;, it says that the combined device and subordinate certificates should be provisioned:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;and&amp;nbsp;&lt;/span&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;&amp;lt;sec&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="pre"&gt;tag&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;is the previously chosen unused security tag.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;This is the sec tag that was chosen in step 2:&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Select a security tag that is not yet in use. This security tag must match the value set in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/kconfig/index.html#CONFIG_MQTT_HELPER_SEC_TAG" data-bundleid="ncs-2.9.1" data-navpath="kconfig/index.html"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_MQTT_HELPER_SEC_TAG&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Kconfig option.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And step 3 creates the key pair in that security tag. It sounds like you might have a new tag (15) which has the device certificate, but not the generated key or configured as the helper sec tag.&lt;/p&gt;
&lt;p&gt;I think it might be helpful if you remove all the certificates in sec tags 10 through 15 and start the process again. Make sure to follow each step exactly as written.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/thread/533479?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 21:48:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c46172b1-c115-463b-8659-3dd4595aeb47</guid><dc:creator>Colibri</dc:creator><description>&lt;p&gt;I added it under a new tag (15), changed the primary tag as 15 in prj.conf, but the error remains the same&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/thread/533473?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 20:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88b2fde5-8567-4c59-a8e7-2cf066a41575</guid><dc:creator>Mariano Goluboff</dc:creator><description>&lt;p&gt;I don&amp;#39;t think the subordinate certificate needs to be loaded in a separate sec tag. It needs to be combined with the device certificate into a single file:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cat certs/client-cert.pem ca/sub-ca-cert.pem &amp;gt; certs/client-cert-chain.pem&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;And then the combined file uploaded as the client certificate&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/thread/533469?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 19:41:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e6ecf5c-0f3b-4732-b693-7640158a3a7b</guid><dc:creator>Colibri</dc:creator><description>&lt;p&gt;Sorry I forgot to mention it but I had noticed this issue too and already corrected it, but the error remains the same (with or without DPS, with or without&amp;nbsp;&lt;span&gt;CONFIG_MQTT_HELPER_PROVISION_CERTIFICATES).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here are the current certificates:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;# 10: root certificate
# 11: subordinate certificate (root)
# 13: Root CA certificate: DigiCert Global Root G2
# 14: Root CA certificate: Baltimore CyberTrust Root Certificate
# 11/13/14: client certificates for device XXXXX&lt;/pre&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;Command &amp;quot;nrfcredstore COM6 list&amp;quot; returns:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Secure tag - Key type - SHA
10 ROOT_CA_CERT C6871D...
11 ROOT_CA_CERT 60A9DB...
11 CLIENT_CERT D96C03...
13 ROOT_CA_CERT 0E0A61...
13 CLIENT_CERT D96C03...
14 ROOT_CA_CERT 44866C...
14 CLIENT_CERT D96C03...
16842753 ROOT_CA_CERT 2C4395...
16842753 CLIENT_CERT 276934...
16842753 CLIENT_KEY 091305...
4294967292 NORDIC_PUB_KEY 672E2F...
4294967293 NORDIC_ID_ROOT_CA 2C4395...
4294967294 DEV_ID_PUB_KEY 4375EE...&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/thread/533457?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 18:16:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17f79843-335e-4a10-a2c4-c0b87d25536d</guid><dc:creator>Mariano Goluboff</dc:creator><description>&lt;p&gt;According to step 7 of the instructions, the device certificate and the subordinate CA certificate chain should be combined into a single file and provisioned into the security tag in CONFIG_MQTT_HELPER_SEC_TAG. But it looks like the client and subordinate are stored in two different security tags.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you run through the instructions step by step, and then see what the output of nrfcredstore &amp;lt;serial port&amp;gt; list is? You should only need to use two of them.&lt;/p&gt;
&lt;p&gt;Mariano&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/thread/533215?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2025 13:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e35ad092-42ed-4050-8525-ee4b2b9c718f</guid><dc:creator>Colibri</dc:creator><description>&lt;p&gt;I am still waiting for your feedback on this... I have tried adding&amp;nbsp;&lt;span&gt;CONFIG_MQTT_HELPER_PROVISION_CERTIFICATES&lt;/span&gt;&lt;span&gt;=y in the prj.conf, with associated tag in Kconfig, but the error remains the same as it was both with or without DPS (error mqtt -107)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/thread/532862?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 22:26:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5540f690-0d49-4bdd-a185-acc544ed9832</guid><dc:creator>Colibri</dc:creator><description>&lt;p&gt;The version seems to be&amp;nbsp;mfw_nrf91x1_2.0.2 (response to AT+CGMR). I don&amp;#39;t mind not using DPS if simpler, but in both cases I am stuck right now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/thread/532861?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 21:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f4f2a65-da41-4b2c-bb2a-086fec000567</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Which Modem FW are you on?&lt;/p&gt;
&lt;p&gt;I will check if we have some information on using DPS.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure IoT Hub authentication with DPS</title><link>https://devzone.nordicsemi.com/thread/532860?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 16:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca146375-a662-4ba6-a279-ac1423eadcc4</guid><dc:creator>Colibri</dc:creator><description>&lt;p&gt;I have tried to put my certificates on the same tag (add client certificate on tags 11, 13 &amp;amp; 14 then change CONFIG_MQTT_HELPER_SEC_TAG and CONFIG_MQTT_HELPER_SECONDARY_SEC_TAG accordingly), the error remains with using DPS. If I set&amp;nbsp;&lt;span&gt;CONFIG_AZURE_IOT_HUB_DPS&lt;/span&gt;&lt;span&gt;=n, now the error is&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:13.457,305] &amp;lt;inf&amp;gt; azure_iot_hub_sample: Azure IoT Hub library initialized
[00:00:13.457,366] &amp;lt;dbg&amp;gt; azure_iot_hub: iot_hub_state_set: State transition: STATE_DISCONNECTED --&amp;gt; STATE_CONNECTING
[00:00:13.457,397] &amp;lt;inf&amp;gt; azure_iot_hub_sample: AZURE_IOT_HUB_EVT_CONNECTING
[00:00:13.457,397] &amp;lt;err&amp;gt; azure_iot_hub: Failed to get user name, az error: 0x80010002
[00:00:13.457,458] &amp;lt;dbg&amp;gt; azure_iot_hub: iot_hub_state_set: State transition: STATE_CONNECTING --&amp;gt; STATE_DISCONNECTED
[00:00:13.457,458] &amp;lt;err&amp;gt; azure_iot_hub_sample: azure_iot_hub_connect failed: -14&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>