<?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 certificate generation on nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127897/azure-iot-hub-certificate-generation-on-nrf52840</link><description>Hi together! 
 In my current project I would like to send some sensor data to an Azure IoT Hub, by using a nRF52840. 
 In the first step and for evaluation I used a nRF9151-DK together with the Azure IoT Hub sample and the setup from the Azure IoT Hub</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 May 2026 14:06:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127897/azure-iot-hub-certificate-generation-on-nrf52840" /><item><title>RE: Azure Iot Hub certificate generation on nRF52840</title><link>https://devzone.nordicsemi.com/thread/565908?ContentTypeID=1</link><pubDate>Tue, 05 May 2026 14:06:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1216aca-120e-4957-9507-686156d7d3ee</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user="buh"]In both cases I would like to use the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/azure_iot_hub.html" rel="noopener noreferrer" target="_blank"&gt;Azure IoT Hub library&lt;/a&gt;, how can this be achieved?[/quote]
&lt;p&gt;As we have no similar solutions made by us we recommend looking at other tls_credential backends and replicate that into your shell integration. E.g.&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/networking/api/tls_credentials_shell.html"&gt;tls_credentials_shell&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/networking/api/sockets.html#tls_credentials_subsystem"&gt;tls_credentials_subsystem&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Have a look at the MQTT sample in Zephyr: zephyr/samples/net/mqtt_publisher/src/main.c&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure Iot Hub certificate generation on nRF52840</title><link>https://devzone.nordicsemi.com/thread/565639?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2026 16:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc7ef7c2-3b24-4c02-8dc0-ae02a47b65ad</guid><dc:creator>buh</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/127897/azure-iot-hub-certificate-generation-on-nrf52840/565594"]For the nRF54 series this is handled by the SDK.[/quote]
&lt;p&gt;May I ask for more details on how this could be done using the &lt;span&gt;&lt;code&gt;tls_credentials&lt;/code&gt;&lt;/span&gt;&amp;nbsp;library and e.g. the shell?&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/127897/azure-iot-hub-certificate-generation-on-nrf52840/565594"]For nRF52840,&amp;nbsp;you will need to use some other means to store the credentials.[/quote]
&lt;p&gt;When using the nRF52840, I could use an additional external flash to store the certificates and also e.g. a shell to transfer the credentials.&lt;/p&gt;
&lt;p&gt;In both cases I would like to use the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/azure_iot_hub.html" rel="noopener noreferrer" target="_blank"&gt;Azure IoT Hub library&lt;/a&gt;, how can this be achieved?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Bernhard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure Iot Hub certificate generation on nRF52840</title><link>https://devzone.nordicsemi.com/thread/565594?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2026 07:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfc3c5ab-c4d6-477b-8ea8-49344822651e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Bernhard,&amp;nbsp;&lt;/p&gt;
[quote user="buh"]like a nRF70 series device, because the Azure certificates need to be stored on the host controller in any case.[/quote]
&lt;p&gt;Yes, this is correct. Our steps under&amp;nbsp;e.g.&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/azure_iot_hub.html#generate_and_provision_device_certificates"&gt;Generate and provision device certificates&lt;/a&gt;&amp;nbsp;includes steps for the nRF70 but should also work for e.g. W5500 when building for your target device.&amp;nbsp;&lt;/p&gt;
[quote user="buh"]Lets assume I would use a nRF54 series SoC, would there be another way for certificate generation[/quote]
&lt;p&gt;There isn&amp;#39;t much of difference in how the certificates are generated, but the difference is where they are stored. The newer devices have a P&lt;span&gt;SA secure storage backend for the &lt;code&gt;tls_credentials.&amp;nbsp;The tls_credentials&lt;/code&gt;&lt;/span&gt; library supports runtime provisioning using for instance shell or their own transport of choice, so the firmware can be the same for all.&lt;/p&gt;
&lt;p&gt;For the nRF54 series this is handled by the SDK.&amp;nbsp;&lt;span&gt;For nRF52840,&amp;nbsp;you will need to use some other means to store the credentials. &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/data_storage.html"&gt;Settings subsystem is probably usable&lt;/a&gt;, but this is not something we have added support for. That would store the credentials in plain text, but at least allow for runtime provisioning.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure Iot Hub certificate generation on nRF52840</title><link>https://devzone.nordicsemi.com/thread/565557?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2026 14:40:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e045797f-2670-48e6-a745-c97ac26d0f32</guid><dc:creator>buh</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Thanks for the quick answer!&lt;/p&gt;
&lt;p&gt;I understand you are not supporting the W5500 ethernet controller, but I think it should make no difference using the W5500 or any other external ethernet or&amp;nbsp;Wi-Fi controller, like a nRF70 series device, because the Azure certificates need to be stored on the host controller in any case.&lt;/p&gt;
&lt;p&gt;Lets assume I would use a nRF54 series SoC, would there be another way for certificate generation and provisioning beside the&amp;nbsp;&amp;quot;nRF70: Script generated private key&amp;quot; option, which would allow the exact same firmware to be used for many devices?&amp;nbsp;If yes, I would appreciate it if you could provide further details on how this can be done.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Bernhard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Azure Iot Hub certificate generation on nRF52840</title><link>https://devzone.nordicsemi.com/thread/565454?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2026 12:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e5da1b4-f124-48e9-ace5-23315e8cc7e4</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We do not have support for the W5500 ethernet device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;is there a reason for why you are using the nRF52840 and not a newer device with a more security in regards to storing the certificate? I.e. our nRF54 series includes Trustzone which can be used to store certificates more securely. The nRF70 sample uses the nRF7002DK which has the nRF5340 as main device. See &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/azure_iot_hub/README.html#requirements"&gt;requirements under Azure IoT Hub sample&lt;/a&gt;. This sample also uses the&amp;nbsp;&lt;code&gt;&lt;span&gt;cert_tool.py&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;script&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;From what I can tell, the nrfcredstore tool is not designed to work with other devices than nRF91. From &lt;a href="https://github.com/nordicsemi/nrfcredstore/tree/main/src/nrfcredstore"&gt;Github repo&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfcredstore is a command line tool that simplifies managing credentials stored in Nordic Semiconductor modems, like the&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.nordicsemi.com/Products/nRF9151" rel="nofollow"&gt;nRF9151&lt;/a&gt;&lt;span&gt;. The typical use case of nrfcredstore is to automate the provisioning of cloud certificates that are stored securely in the modem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>