<?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>NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108603/nrf9160-azure-iot-hub-dps-certification-connection-rejected</link><description>Hi Nordic 
 Sample: asset_tracker_v2 (with only changes to overlay-azure.conf) SDK: 2.5.2 Modem FW: nrf9160_1.3.5 
 I have followed this tutorial https://learn.microsoft.com/en-us/azure/iot-dps/tutorial-custom-hsm-enrollment-group-x509?tabs=windows&amp;amp;pivots</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Mar 2025 10:17:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108603/nrf9160-azure-iot-hub-dps-certification-connection-rejected" /><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/526515?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 10:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9921a3f-ef5a-4984-825e-7f6d1db7296a</guid><dc:creator>Mikael Jansson</dc:creator><description>&lt;p&gt;I wrote this script to create modem keys, send them to Azure and prepare DPS for automatic registration.&lt;/p&gt;
&lt;p&gt;It uses MQTT SEC TAG 42 and SECONDARY 43. &amp;nbsp;Requires signing CA and CAs previously generated.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;#!/bin/bash

DEFAULT_MODEM_PORT=&amp;quot;/dev/tty.usbserial-B002XPXB&amp;quot;
MODEM_PORT=
RESGROUP=&amp;quot;&amp;lt;My-IoT-ResourceGroup&amp;gt;&amp;quot;
HUBNAME=&amp;quot;&amp;lt;My-IoTHub&amp;gt;&amp;quot;
CERTNAME=&amp;quot;my_root_ca&amp;quot;
IOTHUB_URL=&amp;quot;&amp;lt;my-iot-hub&amp;gt;.azure-devices.net&amp;quot;
ENROLLMENT_NAME=&amp;quot;&amp;lt;my-enrollment&amp;gt;&amp;quot;
DPS=&amp;quot;&amp;lt;my-dps&amp;gt;&amp;quot;
SEC_TAG=42 # for GlobalSign G2 root CA
SECONDARY_SEC_TAG=43 # for legacy Baltimore root CA
TENANT=&amp;quot;&amp;lt;my-tenant&amp;gt;&amp;quot;

check() {
    st=$1
    if [[ $st != 0 ]]; then
        echo &amp;quot;error occured: $st&amp;quot;

        echo &amp;quot;are you logged in? otherwise, run::&amp;quot;
        echo
        echo &amp;quot;    az login --scope https://management.core.windows.net//.default&amp;quot;
        exit $st
    fi
}

configure() {
    echo &amp;quot;********* (step 0) removing old client data: client-csr.der, client-csr.pem, client-cert.pem&amp;quot;
    rm -f certs/client-csr.der certs/client-csr.pem certs/client-cert.pem &amp;gt; /dev/null
    echo &amp;quot;********* (step 1) listing current data&amp;quot;
    nrfcredstore $MODEM_PORT list

    echo &amp;quot;********* (step 2) deleting old data: will create errors first time run on a device, disregard these.&amp;quot;
    nrfcredstore $MODEM_PORT delete $SEC_TAG CLIENT_CERT &amp;gt; /dev/null
    nrfcredstore $MODEM_PORT delete $SEC_TAG CLIENT_KEY &amp;gt; /dev/null

    echo &amp;quot;********* (step 3) generating private key in device and output CSR in sec tag $SEC_TAG =&amp;gt; certs/client-csr.der&amp;quot;
    nrfcredstore $MODEM_PORT generate $SEC_TAG certs/client-csr.der
    check $?

    #Convert the CSR from DER format to PEM format using the following command:
    echo &amp;quot;********* (step 4) convert CSR from DER to PEM =&amp;gt; certs/client-csr.pem&amp;quot;
    openssl req -inform DER -in certs/client-csr.der -outform PEM -out certs/client-csr.pem
    check $?

    echo &amp;quot;********* (step 5) \&amp;quot;give\&amp;quot; the CSR client-csr.pem to sub-CA (sub-ca-key.pem, sub-ca-cert.pem) to generate client cert =&amp;gt; certs/client-cert.pem&amp;quot;
    ./cert_tool.py sign 
    check $?

    DEVICE_CN=$(openssl x509 -in certs/client-cert.pem -noout -subject | sed -e &amp;#39;s/.*CN=\(.*\)/\1/g&amp;#39;)
    [[ $DEVICE_CN != &amp;quot;&amp;quot; ]]
    check $?
    echo &amp;quot;********* (step 5.5) DEVICE_CN: $DEVICE_CN&amp;quot;
    az iot dps enrollment delete --enrollment-id $DEVICE_CN --resource-group $RESGROUP  --dps-name $DPS &amp;gt; /dev/null

    echo &amp;quot;********* (step 6) write signed client cert in sec tag $SEC_TAG =&amp;gt; certs/client-cert.pem&amp;quot;
    nrfcredstore $MODEM_PORT write $SEC_TAG CLIENT_CERT certs/client-cert.pem
    check $?

    echo &amp;quot;********* (step 7) listing current credentials in sec tag $SEC_TAG&amp;quot;
    nrfcredstore $MODEM_PORT list | grep -w $SEC_TAG

    echo &amp;quot;********* (step 8) registering device-id my-device-revN-$DEVICE_CN using certs/client-cert.pem&amp;quot;

    az iot dps enrollment create --enrollment-id $DEVICE_CN --device-id &amp;quot;my-device-revN-$DEVICE_CN&amp;quot; \
    --provisioning-status enabled --resource-group $RESGROUP \
    --iot-hubs $IOTHUB_URL --attestation-type x509 \
    --certificate-path certs/client-cert.pem --dps-name $DPS \
    --allocation-policy static  &amp;gt; /dev/null
    check $?

    echo &amp;quot;********* (step 9) adding credentials for DigiCert and Baltimore&amp;quot;
    nrfcredstore $MODEM_PORT write $SEC_TAG ROOT_CA_CERT DigiCertGlobalRootG2.crt.pem
    check $?
    nrfcredstore $MODEM_PORT write $SECONDARY_SEC_TAG ROOT_CA_CERT BaltimoreCyberTrustRoot.crt.pem
    check $?

    echo &amp;quot;********* (step 10) listing current credentials in primary and secondary sec tags&amp;quot;
    nrfcredstore $MODEM_PORT list | grep -Ew &amp;#39;42|43&amp;#39;
    check $?
}

help() {
    echo &amp;quot;usage: $0 [--skip-install] [&amp;lt;modem port&amp;gt;]&amp;quot;
    echo
    echo &amp;quot;--skip-install:   don&amp;#39;t install firmware&amp;quot;
    echo &amp;quot;&amp;lt;modem port&amp;gt;:     the port where the modem is connected, default $DEFAULT_MODEM_PORT&amp;quot;
    echo
    echo &amp;quot;requirements:&amp;quot;
    echo &amp;quot;- BaltimoreCyberTrustRoot.crt.pem&amp;quot;
    echo &amp;quot;- DigiCertGlobalRootG2.crt.pem&amp;quot;
    echo &amp;quot;ca/&amp;quot;
    echo &amp;quot;- root-ca-cert.pem&amp;quot;
    echo &amp;quot;- root-ca-key.pem&amp;quot;
    echo &amp;quot;- sub-ca-cert.pem&amp;quot;
    echo &amp;quot;- sub-ca-key.pem&amp;quot;
    echo
    echo &amp;quot;intermediates:&amp;quot;
    echo &amp;quot;certs/&amp;quot;
    echo &amp;quot;- client-cert.pem&amp;quot;
    echo &amp;quot;- client-csr.der&amp;quot;
    echo &amp;quot;- client-csr.pem&amp;quot;
    echo
    echo &amp;quot;Possible devices&amp;quot;:
    ls -1 /dev/tty.*serial*
    exit 0
}

install_firmware() {
    GDB=/opt/nordic/ncs/toolchains/20d68df7e5//opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb
    $GDB -q \
         -ex &amp;quot;target extended-remote /opt/bmp&amp;quot; \
         -ex &amp;quot;monitor swd_scan&amp;quot; -ex &amp;quot;att 1&amp;quot; \
         -ex &amp;quot;set confirm off&amp;quot; \
         -ex &amp;quot;load at_client/merged.hex&amp;quot; -ex &amp;quot;file at_client/zephyr.elf&amp;quot; \
         -ex &amp;quot;start&amp;quot; -ex &amp;quot;quit&amp;quot;

}

iothub_login() {
    az group list -o table &amp;gt; /dev/null
    if [[ &amp;quot;$?&amp;quot; != &amp;quot;0&amp;quot; ]]; then
        az login --tenant $TENANT --scope https://management.core.windows.net//.default
    fi
}

main() {
    if [[ &amp;quot;$1&amp;quot; == &amp;quot;--help&amp;quot; ]]; then
        help
    fi

    local INSTALL_FIRMWARE=1
    if [[ &amp;quot;$1&amp;quot; == &amp;quot;--skip-install&amp;quot; ]]; then
        INSTALL_FIRMWARE=0
        shift
    fi

    MODEM_PORT=$1
    if [[ ! -e $MODEM_PORT ]]; then
        echo &amp;quot;no modem port specified, using default $DEFAULT_MODEM_PORT&amp;quot;
        MODEM_PORT=$DEFAULT_MODEM_PORT
    fi

    source ~/.zephyrtools/venv-python3.13/bin/activate

    if [[ $INSTALL_FIRMWARE == 1 ]]; then
        install_firmware
        echo &amp;quot;Power reset the device and enter to continue&amp;quot;
        read
        sleep 1
    fi

    iothub_login

    configure 

    echo &amp;quot;&amp;quot;
    echo &amp;quot;Azure IoTHub Device Name: $DEVICE_CN&amp;quot;
}

main $*&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/522953?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 01:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e7794c-ea89-4c91-a5ed-8ac35cc5998d</guid><dc:creator>jczacharia</dc:creator><description>&lt;p&gt;Unfortunately not, I haven&amp;rsquo;t worked on the project in a few months so things might have changed on Azure since then.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/522941?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 18:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40916e35-d4a7-4cbd-b426-f5a8a7caa2c1</guid><dc:creator>Neso</dc:creator><description>&lt;p&gt;Hi. Did you find a solution to this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/481399?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 17:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32bd8a10-0d1c-43bc-988f-08e0da106ae2</guid><dc:creator>jczacharia</dc:creator><description>&lt;p&gt;Yes, I have done that. I can&amp;#39;t seem to shake the -111 error (Is the device certificate valid?). I have a feeling it might be related to Azure DigiCert migration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/480964?ContentTypeID=1</link><pubDate>Sun, 28 Apr 2024 08:00:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15a05c8d-49c9-424f-9312-73fb05b4582a</guid><dc:creator>Byter</dc:creator><description>&lt;p&gt;Hello, I&amp;#39;m receiving the exact same issue. Followed the tutorial 1:1, copied the ETAG from the JSON response at each invocation and all. Not sure what the issue is at this point&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/480158?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 10:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ee56586-d546-4673-be82-0eba5176b952</guid><dc:creator>Mikael Jansson</dc:creator><description>&lt;p&gt;Did you make sure to copy the ETAG from the JSON response for each invocation of &amp;quot;az iot hub&amp;quot;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;az iot hub certificate create --hub-name &amp;quot;$HUBNAME&amp;quot; --name &amp;quot;$CERTNAME&amp;quot; --path ca/root-ca-cert.pem&lt;/p&gt;
&lt;p&gt;&amp;gt; read the ETAG, use in following command:&lt;/p&gt;
&lt;p&gt;az iot hub certificate generate-verification-code --hub-name $HUBNAME --name MYROOTCA&amp;nbsp;--etag &amp;quot;$ETAG&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;gt; read the ETAG from the above command, use it in the following:&lt;/p&gt;
&lt;p&gt;az iot hub certificate verify --hub-name $HUBNAME --name $CERTNAME --etag $ETAG2 --path certs/client-cert.pem&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;and so on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/472249?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2024 14:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84966b86-7868-48df-880d-c9dcd32ead53</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Jeremy,&lt;/p&gt;
&lt;p&gt;Sorry to hear your struggling. I helped a customer with a similar issue three months ago and provide the details about my tests.&lt;/p&gt;
&lt;p&gt;Could you refer to this ticket to see if it helps?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106640/api-registration-of-certification-for-azure-iot-hub-dps"&gt;(+) API registration of certification for Azure IoT Hub / DPS - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/472134?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2024 19:26:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:053e0006-d3a0-4d01-ad33-27983d43ed20</guid><dc:creator>jczacharia</dc:creator><description>&lt;p&gt;Just as an update: I have successfully connected to AWS. Still have no idea why Azure doesn&amp;#39;t recognize my certificates.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/471804?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 13:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68587f95-ae0c-4628-b320-e0c44a38dbf6</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="jczacharia"]Is there a direct line of contact with the Nordic engineering team to address this challenge efficiently?[/quote]
&lt;p&gt;Although it is often normal to have first-line support, we in technical support here at Nordic are application engineers in R&amp;amp;D at the same level as the rest of our engineering team, and have similar competence.&lt;br /&gt;That being said, you are onto something: Most of our nRF9160 experts are at a conference this week. I do not have the most experience in this topic, although I have indeed used Azure with both DPS and normal provisioning myself a couple of years ago.&lt;/p&gt;
&lt;p&gt;Next week I will ask for help from the people back from the conference and we will see what we can figure out here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/471669?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 03:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8f5e512-66d8-4377-a0c7-9250823c1a3b</guid><dc:creator>jczacharia</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried it with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SDK v2.5.2 - MFW 1.3.5&lt;/li&gt;
&lt;li&gt;SDK v2.5.2 - MFW 1.3.6&lt;/li&gt;
&lt;li&gt;&lt;span&gt;SDK v2.5.1 - MFW 1.3.5&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;SDK v2.5.1 - MFW 1.3.6&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;SDK v2.5.99-dev1 - MFW 1.3.6&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;SDK v2.5.99-dev1 - MFW 1.3.5&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I even tried this on a couple of brand-new nRF9160-DKs and same issue.&lt;/p&gt;
&lt;p&gt;Though, connecting is nRF Cloud has been successful for all devices.&lt;/p&gt;
&lt;p&gt;I was planning on creating a video going step by step but I feel as though it might be redundant since it&amp;#39;s just going through the documentation.&lt;/p&gt;
&lt;p&gt;Is there a direct line of contact with the Nordic engineering team to address this challenge efficiently?&lt;/p&gt;
&lt;p&gt;I am working with a company that is entering the market with a custom IoT hardware product, which is built on the Nordic platform. Over the past few years, we have developed a deep appreciation for the robustness and versatility of this platform but seeing that Azure and Nordic are changing rapidly and are currently facing this firmware/certification issue that is hampering our progress. Despite diligently following the latest documentation, even including the new tutorial and &lt;code&gt;cert_tool.py&lt;/code&gt; script released on February 29, 2024, we have been unable to resolve this issue, which we suspect may be external.&lt;/p&gt;
&lt;p&gt;I would be more than willing to contribute to the software and documentation to get a sound solution to this seeing that others are having similar problems.&lt;/p&gt;
&lt;p&gt;Any help will be met with reciprocation.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/471559?ContentTypeID=1</link><pubDate>Thu, 29 Feb 2024 14:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbc72e51-3d17-48f4-ae20-9be149a394fd</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From &lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf9160/COMP/nrf9160/nrf9160_modem_fw.html?cp=2_1_3_5"&gt;https://infocenter.nordicsemi.com/topic/comp_matrix_nrf9160/COMP/nrf9160/nrf9160_modem_fw.html?cp=2_1_3_5&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709215336095v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I see you use modem firmware 1.3.5 with NCS 2.5.2.&lt;/p&gt;
&lt;p&gt;Maybe this could be related?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/471107?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 17:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7eff00e-6010-4bf8-8443-8e24569f42ca</guid><dc:creator>jczacharia</dc:creator><description>&lt;p&gt;I have followed the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/azure_iot_hub.html#prereq-connect-to-azure-iot-hub"&gt;Azure IoT Hub tutoria&lt;/a&gt;l and that is also where I got the Baltimore and DigiCert CA certificates from.&lt;/p&gt;
&lt;p&gt;I tried using both the Baltimore and DigiCert individually and together in the &lt;em&gt;CA certificate&lt;/em&gt; textarea in the &lt;em&gt;Certificate Manager&lt;/em&gt; in the &lt;em&gt;Cellular Monitor&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;If I do not include the Balitmore certificate in the CA certificate, then I get the error:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:04.746,582] &amp;lt;err&amp;gt; mqtt_helper: mqtt_connect, error: -111
[00:00:04.746,612] &amp;lt;err&amp;gt; azure_iot_hub_dps: mqtt_helper_connect failed, error: -111
[00:00:04.746,612] &amp;lt;err&amp;gt; azure_iot_hub: azure_iot_hub_dps_start failed, error: -111
[00:00:04.746,643] &amp;lt;err&amp;gt; azure_iot_hub_integration: azure_iot_hub_connect, error: -111&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Which looks like no connection is established whereas if I include the Baltimore certificate, I then get:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:08.990,051] &amp;lt;err&amp;gt; azure_iot_hub: Connection was rejected with return code 5
[00:00:08.990,081] &amp;lt;wrn&amp;gt; azure_iot_hub: Is the device certificate valid?
[00:00:08.990,081] &amp;lt;dbg&amp;gt; azure_iot_hub_integration: azure_iot_hub_event_handler: AZURE_IOT_HUB_EVT_CONNECTION_FAILED
[00:00:08.991,119] &amp;lt;wrn&amp;gt; azure_iot_hub: DISCONNECT, result: -111
[00:00:08.991,149] &amp;lt;dbg&amp;gt; azure_iot_hub_integration: azure_iot_hub_event_handler: AZURE_IOT_HUB_EVT_DISCONNECTED
[00:00:08.991,180] &amp;lt;dbg&amp;gt; cloud_module: cloud_wrap_event_handler: CLOUD_WRAP_EVT_DISCONNECTED
[00:00:08.991,241] &amp;lt;inf&amp;gt; app_event_manager: CLOUD_EVT_DISCONNECTED
[00:00:08.991,882] &amp;lt;err&amp;gt; mqtt_helper: Cloud MQTT input error: -111&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;That appears to establish some sort of connection but then gets rejected because the device certificate is not valid.&lt;/p&gt;
&lt;p&gt;So following the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/azure_iot_hub.html#prereq-connect-to-azure-iot-hub"&gt;Azure IoT Hub tutorial&lt;/a&gt;&amp;nbsp;(for a single device; no DPS) that instructs me to use&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/azure/iot-hub/tutorial-x509-test-certs?tabs=windows"&gt;Create and upload certificates for testing&lt;/a&gt;, I then&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;take the &lt;span&gt;&lt;em&gt;Test Subordinate CA&lt;/em&gt; from &lt;em&gt;rootca/certs&amp;nbsp;&lt;/em&gt;and add that certificate as verified in the IoT hub certificates&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;create a device certificate called &lt;em&gt;device-01&amp;nbsp;&lt;/em&gt;and put that device&amp;#39;s certificate from &lt;em&gt;subca/certs&amp;nbsp;&lt;/em&gt;into the&amp;nbsp;&lt;em&gt;Client certificate&lt;/em&gt;&amp;nbsp;textarea in the&amp;nbsp;&lt;em&gt;Certificate Manager&lt;/em&gt;&amp;nbsp;in the&amp;nbsp;&lt;em&gt;Cellular Monitor&amp;nbsp;&lt;/em&gt;(also tried including the &lt;em&gt;Test Subordinate CA &lt;/em&gt;along with it)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;add a new enabled device (non-IoT Edge) in the IoT hub called &lt;em&gt;device-01&amp;nbsp;&lt;/em&gt;with &lt;em&gt;X.509 CA Signed&amp;nbsp;&lt;/em&gt;authentication type&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;take &lt;em&gt;device-01&lt;/em&gt;&amp;#39;s private key &lt;em&gt;subca/private/device-01.key&amp;nbsp;&lt;/em&gt;and put that in the&amp;nbsp;&lt;em&gt;Private key&lt;/em&gt;&amp;nbsp;textarea in the&amp;nbsp;&lt;em&gt;Certificate Manager&lt;/em&gt;&amp;nbsp;in the&amp;nbsp;&lt;em&gt;Cellular Monitor&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;I certainly feel like I have followed these tutorials very precisely but cannot get a proper connection.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have&amp;nbsp;been able to establish proper communication with the nRF Cloud so I know that the SIM card is working. However, I am not sure if having the device on nRF Cloud is affecting Azure communication.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/471093?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 15:34:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cba1583e-e0c3-43bf-a32b-170ce27bc7c3</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Can I suggest that you try with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/net/azure_iot_hub/README.html"&gt;Azure IoT Hub sample&lt;/a&gt;? This does only one thing, so fewer things can go wrong.&lt;/p&gt;
&lt;p&gt;Secondly, a common error is to use the wrong of DigiCert and Baltimore certificates, as seen from our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/azure_iot_hub.html#lib-azure-iot-hub"&gt;docs&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709047998407v1.png" alt=" " /&gt;&lt;br /&gt;Also, where exactly did you get your Azure certificates from?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/470857?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 19:22:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39d0d459-58fa-43b9-93fe-c41f405190c8</guid><dc:creator>jczacharia</dc:creator><description>&lt;p&gt;Yes, I have.&lt;br /&gt;&lt;br /&gt;I followed this tutorial:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/libraries/networking/azure_iot_hub.html"&gt;developer.nordicsemi.com/.../azure_iot_hub.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I have tried 3 different ways of creating credentials:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/azure/iot-hub/tutorial-x509-test-certs?tabs=windows"&gt;https://learn.microsoft.com/en-us/azure/iot-hub/tutorial-x509-test-certs?tabs=windows&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/azure/iot-dps/tutorial-custom-hsm-enrollment-group-x509?tabs=windows&amp;amp;pivots=programming-language-ansi-c"&gt;https://learn.microsoft.com/en-us/azure/iot-dps/tutorial-custom-hsm-enrollment-group-x509?tabs=windows&amp;amp;pivots=programming-language-ansi-c&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a id="" href="https://github.com/Azure/azure-iot-sdk-c/blob/main/tools/CACertificates/CACertificateOverview.md"&gt;https://github.com/Azure/azure-iot-sdk-c/blob/main/tools/CACertificates/CACertificateOverview.md&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But have not been able to get any to work. I still always see the &amp;quot;Is the device certificate valid?&amp;quot; error.&lt;/p&gt;
&lt;p&gt;My overlay-azure.conf for one device:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_AZURE_IOT_HUB=y
CONFIG_AZURE_IOT_HUB_DPS=n
CONFIG_AZURE_IOT_HUB_AUTO_DEVICE_TWIN_REQUEST=y

# Increase the number of maximum message properties that can be parsed by the Azure IoT Hub library.
# Needed to be able to parse P-GPS responses.
CONFIG_AZURE_IOT_HUB_MSG_PROPERTY_RECV_MAX_COUNT=4

CONFIG_AZURE_IOT_HUB_HOSTNAME=&amp;quot;******.azure-devices.net&amp;quot; # Replace with my IoT Hub hostname
CONFIG_AZURE_IOT_HUB_DEVICE_ID=&amp;quot;device-01&amp;quot;

# MQTT helper library
CONFIG_MQTT_HELPER_RX_TX_BUFFER_SIZE=2048
CONFIG_MQTT_HELPER_STACK_SIZE=4096
CONFIG_MQTT_HELPER_SEC_TAG=11

# MQTT Transport library
# Maximum specified MQTT keepalive timeout for Azure IoT Hub is 1177 seconds.
CONFIG_MQTT_KEEPALIVE=1177&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have tried each&amp;nbsp;combination&amp;nbsp;of creating credentials from each above source with both DPS and single device using both the asset_tracker_v2 codebase and as well as the&amp;nbsp;&lt;a id="" href="https://github.com/NordicSemiconductor/asset-tracker-cloud-firmware-azure"&gt;https://github.com/NordicSemiconductor/asset-tracker-cloud-firmware-azure&lt;/a&gt;&amp;nbsp;codebase.&lt;/p&gt;
&lt;p&gt;But no matter which combination I pick, I cannot get the certificates provisioned correctly to establish a valid communication.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Azure IoT hub DPS Certification Connection Rejected</title><link>https://devzone.nordicsemi.com/thread/470724?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 12:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0a76ba6-52d0-4c4c-81e1-f46c78e139e1</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried to connect your device to Azure IoT Hub 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></channel></rss>