<?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>Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81795/sample-azure-iot-hub-thingy9-1</link><description>Hello, 
 I have the same problem as this topic: https://devzone.nordicsemi.com/f/nordic-q-a/77267/nrf9160-azure-iot-hub-on-thingy91-mqtt-connect-error 
 I&amp;#39;m using nrf Connect v3.7.1, LTE link monitor v1.1.10. I made the last firmware update 2021-10-20</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Nov 2021 07:52:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81795/sample-azure-iot-hub-thingy9-1" /><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/340244?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 07:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acb4598a-3fa4-4e4d-a874-be1041b7d08c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Acti,&lt;/p&gt;
&lt;p&gt;On your device, you have 3 certs, from the following places:&lt;/p&gt;
&lt;p&gt;Client cert: Generated by you&lt;br /&gt;Client Key: Generated by you&lt;br /&gt;CA cert: &lt;a href="https://cacerts.digicert.com/BaltimoreCyberTrustRoot.crt.pem"&gt;Baltimore CyberTrust Root certificate&lt;/a&gt;*&lt;/p&gt;
&lt;p&gt;For DPS group enrollment the server should have 1 cert:&lt;/p&gt;
&lt;p&gt;Root/Intermediate CA cert: Generated by you&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/libraries/networking/azure_iot_hub.html#lib-azure-iot-hub"&gt;Our documentation&lt;/a&gt; advises to use &lt;a href="https://docs.microsoft.com/en-us/azure/iot-hub/tutorial-x509-scripts"&gt;this tutorial&lt;/a&gt; to generate certs. You can use other methods, but I advise to use this method first, to see that everything works.&lt;br /&gt;(* Same about the Baltimore CyberTrust Root; You could possibly be able to use other certs in place of this. But we know that the Baltimore CyberTrust Root works, so at least use this for the first tests, just to see that everything works.)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are still not able to make it work with the above settings, I advise you to try and make the IoT Hub work without DPS first. &lt;br /&gt;DPS adds a layer of complexity, and will make the issue harder to debug.&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><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/340173?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 16:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc7d0472-def4-4f4d-bd2c-ef3bd9ff70c0</guid><dc:creator>ActiTAG</dc:creator><description>&lt;p&gt;Ok so, the CA server is the certifcate found here azure-iot-sdk-c/certs.c at master &amp;middot; Azure/azure-iot-sdk-c &amp;middot; GitHub give to the device as CA cert . I gave the CA generated that correspond to the CA device to Azure cloud. &lt;br /&gt;If what I write is correct then I don&amp;#39;t understand why I still have error&amp;nbsp; -111...&lt;/p&gt;
&lt;p&gt;Thank you in advance for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/340163?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 15:38:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eea7fbd2-5ce7-49de-a219-201b6673d275</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637595415484v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;* You can also upload client public keys to the Server.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does this make sense?&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><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/340154?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 15:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b551d39-6d1e-42a6-a975-6e1277411c1c</guid><dc:creator>ActiTAG</dc:creator><description>&lt;p&gt;So I need to used this one&amp;nbsp;&lt;a href="https://github.com/Azure/azure-iot-sdk-c/blob/master/certs/certs.c"&gt;azure-iot-sdk-c/certs.c at master &amp;middot; Azure/azure-iot-sdk-c &amp;middot; GitHub&lt;/a&gt;&amp;nbsp;rather than my generated CA upload on DPS ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/340134?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 14:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9f7e10a-ecbc-4790-9c94-bb0e54310887</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Acti,&lt;/p&gt;
&lt;p&gt;Your client need to trust the Azure IoT Hub to connect to it. &lt;br /&gt;To check this trust, the device needs the Baltimore CyberTrust Root certificate.&lt;br /&gt;So the CA certificate that you provision to the device is &lt;strong&gt;not&lt;/strong&gt; the CA you generated, but the Baltimore CyberTrust Root certificate.&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><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/340130?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 14:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1127ea8b-c1b6-4ff6-ac49-bf9f25857c8d</guid><dc:creator>ActiTAG</dc:creator><description>&lt;p&gt;Hi !&lt;/p&gt;
&lt;p&gt;No I don&amp;#39;t use it. With my python script using the SDK I don&amp;#39;t need to use it. Is it the case for the thingy ?&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/340100?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 13:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd3db616-85ab-4ee4-a2dd-1787f45d9354</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the Baltimore CyberTrust Root for anything?&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><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/339875?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 16:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a7027bf-566f-4c7f-a92b-388369202870</guid><dc:creator>ActiTAG</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t open my trace.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Hum I follow this tutorial to generate certificates :&amp;nbsp;&lt;a href="https://docs.microsoft.com/en-us/azure/iot-hub/tutorial-x509-openssl"&gt;Tutorial - Use OpenSSL to create X.509 test certificates for Azure IoT Hub | Microsoft Docs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not able to make it works without DPS too. Same error in mqtt connect error.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/339855?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 14:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64b0b99c-62da-4d47-b86b-f67cb1e8b903</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Acti,&lt;/p&gt;
&lt;p&gt;I am not able to open your trace. Are you able to open the trace file you added in our Trace Collector (From nRF Connect for Desktop)?&lt;/p&gt;
&lt;p&gt;You should have three certificates for the nRF9160: private+key generated from the &lt;a href="https://docs.microsoft.com/en-us/azure/iot-hub/tutorial-x509-scripts"&gt;Tutorial: Using Microsoft-supplied scripts to create test certificates&lt;/a&gt;, and a CA, which is the Baltimore CyberTrust Root, right?&lt;/p&gt;
&lt;p&gt;Then on the Azure Cloud DPS side, you create a enrollment group which has the&amp;nbsp; root CA cert generated from the scripts.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To take a step beack, are you able to make Azure IoT Hub work without DPS?&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><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/339805?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 11:21:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2ecde10-681f-4997-8d89-940d2a39077b</guid><dc:creator>ActiTAG</dc:creator><description>&lt;p&gt;When I use debugger I see that the MQTT connection failed :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637320402455v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;the client id = &amp;lt;device name&amp;gt; and username = &amp;lt;&lt;span&gt;ID Scope&lt;/span&gt;&amp;gt;/registrations/&lt;span&gt;&amp;lt;device name&amp;gt;/api-version=2019-03-31&amp;nbsp;&lt;br /&gt;Did I forget to set something or maybe add something to Azure?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/339676?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2021 14:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3257e99-dc4f-462a-a54b-0ddf48cca486</guid><dc:creator>ActiTAG</dc:creator><description>&lt;p&gt;I want to use it with DPS, I made an enrollment group with my ca. is there other certificate give to the DPS ? The IoT Hub doesn&amp;#39;t expect ca no ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/339634?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2021 12:37:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aa6cfcd-bd84-448a-9a98-acdac5c05932</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Just to clarify: do you want to use Iot Hub alone, or IoT Hub with DPS?&lt;/p&gt;
&lt;p&gt;How are you handling the certificates on the cloud side?&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><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/339506?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 17:08:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d262228-261b-45f6-a6aa-8e6a2cae128c</guid><dc:creator>ActiTAG</dc:creator><description>&lt;p&gt;Hi ! Yes I follow all the step and check it once again but the result is the same. I have a python script on my computer using the Azure SDK that made provisioning and data sending to my IoT Hub. I have the same CA, I create the certificate for the Thingy and upload it with the same sec_tag in the prj.conf. I don&amp;#39;t know where to look, I double check all point...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample Azure IoT Hub (Thingy9.1)</title><link>https://devzone.nordicsemi.com/thread/339418?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 12:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80b34700-3246-4b70-9c19-cc8182722096</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Acti,&lt;/p&gt;
&lt;p&gt;Error -111 means that the Azure cloud is refusing your connection.&lt;/p&gt;
&lt;p&gt;Have you followed the steps found at our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/nrf/libraries/networking/azure_iot_hub.html"&gt;Azure IoT Hub documentation&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>