<?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>nRF7002 Azure IoT Hub,  CA authentication Fail or TLS Connect Fail Error (-22, -116)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106078/nrf7002-azure-iot-hub-ca-authentication-fail-or-tls-connect-fail-error--22--116</link><description>nRF7002 Azure IoT Hub, CA authentication Fail or TLS Connect Fail Error (-22, -116) 
 
 What is mean? 
 
 The Azure IoT Hub library requires provisioning of the following certificates and a private key for a successful TLS connection: 
 
 
 Baltimore</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Nov 2023 04:03:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106078/nrf7002-azure-iot-hub-ca-authentication-fail-or-tls-connect-fail-error--22--116" /><item><title>RE: nRF7002 Azure IoT Hub,  CA authentication Fail or TLS Connect Fail Error (-22, -116)</title><link>https://devzone.nordicsemi.com/thread/458206?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 04:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:113f5db3-8407-4291-9d2f-80599a18f8e2</guid><dc:creator>E_Kan</dc:creator><description>&lt;p&gt;Yes, but baltimore cybertrust root CA did&amp;#39;t work that i said.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002 Azure IoT Hub,  CA authentication Fail or TLS Connect Fail Error (-22, -116)</title><link>https://devzone.nordicsemi.com/thread/458074?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 12:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99e8ba91-0072-441d-980c-68cedc6ad24b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Looking at 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;Azure IoT Hub docs&lt;/a&gt;, I now see the &amp;quot;IMPROTANT&amp;quot; note:&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/pastedimage1701259226149v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Does this explain what you need to know?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002 Azure IoT Hub,  CA authentication Fail or TLS Connect Fail Error (-22, -116)</title><link>https://devzone.nordicsemi.com/thread/457982?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 01:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd55b1b3-586e-4a7a-80c8-ddd7a400869a</guid><dc:creator>E_Kan</dc:creator><description>&lt;p&gt;Plus&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please read this blog from MS. It seems like something has expired.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Blog Link :&amp;nbsp;&lt;a href="https://techcommunity.microsoft.com/t5/internet-of-things-blog/azure-iot-tls-critical-changes-are-almost-here-and-why-you/ba-p/2393169"&gt;MicroSoft Blog :: Azure IoT TLS: Critical changes are almost here! &lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002 Azure IoT Hub,  CA authentication Fail or TLS Connect Fail Error (-22, -116)</title><link>https://devzone.nordicsemi.com/thread/457980?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 01:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97ee1522-7506-436c-bde6-aaef084234b2</guid><dc:creator>E_Kan</dc:creator><description>&lt;p&gt;@&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; I solved the problem&lt;/strong&gt;, but I couldn&amp;#39;t solve it with the Baltimore CA certificate you provided.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:07.931,915] &amp;lt;inf&amp;gt; mqtt_helper: innopia : certificates_provision() IN
[00:00:07.931,915] &amp;lt;inf&amp;gt; mqtt_helper: innopia : ca : 1262 private : 1705 / device : 1221 
[00:00:07.931,945] &amp;lt;inf&amp;gt; mqtt_helper: innopia : ca_cert.pem file check ...
[00:00:07.931,945] &amp;lt;inf&amp;gt; mqtt_helper: innopia : ca_certificate.pem PASS || return = 0
[00:00:07.931,976] &amp;lt;inf&amp;gt; mqtt_helper: innopia : private_key.pem file check ...
[00:00:07.931,976] &amp;lt;inf&amp;gt; mqtt_helper: innopia : private_key.pem PASS || return = 0
[00:00:07.932,006] &amp;lt;inf&amp;gt; mqtt_helper: innopia : device_certificate.pem file check ...
[00:00:07.932,006] &amp;lt;inf&amp;gt; mqtt_helper: innopia : device_certificate.pem PASS || return = 0
[00:00:07.932,006] &amp;lt;inf&amp;gt; mqtt_helper: innopia : tls_credential_add 1 successfully added.
[00:00:07.932,037] &amp;lt;inf&amp;gt; mqtt_helper: innopia : certificates_provision() OUT
[00:00:07.932,037] &amp;lt;inf&amp;gt; mqtt_helper: innopia : =============================



[00:00:07.991,760] &amp;lt;err&amp;gt; mqtt_helper: mqtt_connect, error: -2
[00:00:07.991,760] &amp;lt;inf&amp;gt; mqtt_helper: innopia : mqtt_connect, error: -2
[00:00:07.991,790] &amp;lt;err&amp;gt; azure_iot_hub: mqtt_helper_connect failed, error: -2
[00:00:07.991,790] &amp;lt;inf&amp;gt; azure_iot_hub: mqtt_helper_connect() error
[00:00:07.991,821] &amp;lt;dbg&amp;gt; azure_iot_hub: iot_hub_state_set: State transition: STATE_CONNECTING --&amp;gt; STATE_DISCONNECTED
[00:00:07.991,851] &amp;lt;err&amp;gt; azure_iot_hub_sample: azure_iot_hub_connect failed: -2
[00:00:07.991,851] &amp;lt;inf&amp;gt; azure_iot_hub_sample: azure_iot_hub_connect failed: -2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;If you enter the &lt;strong&gt;Baltimore CyberTrust Root Certificate in ca-cert.pem&lt;/strong&gt; and build it, the &lt;strong&gt;above error (-2) occurs.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;...

CONFIG_MQTT_HELPER_SEC_TAG=10
CONFIG_MQTT_HELPER_SECONDARY_SEC_TAG=11

...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;However, we confirmed that it worked normally if we added &lt;strong&gt;DigiCert Global Root G2 to ca-cert-2.pem and proceeded.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-ved="2ahUKEwjNvb3fh-iCAxUJVt4KHW54DqgQ3ewLegQICRAQ"&gt;&lt;span class="Y2IQFc" style="font-family:tahoma, arial, helvetica, sans-serif;" lang="en"&gt;According to what you said, the Baltimore certificate&lt;strong&gt; is not still expired&lt;/strong&gt;, so I&amp;#39;m curious why this is happening.&lt;br /&gt;&lt;br /&gt;If you try to build and flash &lt;strong&gt;without MQTT_HELPER_SECONDARY_SEC_TAG=11&lt;/strong&gt; in the config value, &lt;br /&gt;an &lt;strong&gt;error (-113 Software caused connection abort) occurs&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;I think it is mandatory to include the G2 certificate, is that correct? Please confirm.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;I am curious as to why this is happening.&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;I think it would be better to guide with G2 CA.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Thank you for your quick reply, and we look forward to your continued interest and replies!&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f600.svg" title="Grinning"&gt;&amp;#x1f600;&lt;/span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002 Azure IoT Hub,  CA authentication Fail or TLS Connect Fail Error (-22, -116)</title><link>https://devzone.nordicsemi.com/thread/457916?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 14:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d6213a8-bbfe-4019-8872-5ebd8bc12b2b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="E_Kan"]Can I enter the Baltimore CA key in the ca-cert.pem file here?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote user="E_Kan"]I need a detailed guide on how to add the Baltimore Key to the certificate section in the Azure IoT Hub portal and upload the client key.pem before verifying it.[/quote]
&lt;p&gt;If I am not mistaken, you would not need to upload the Balitmore Key to the Azure IoT Hub. The Baltimore CA key is to verify the TLS for Azures MQTT, so that the device knows it is talking to a valid server.&lt;/p&gt;
&lt;p&gt;I recommend the &lt;a href="https://learn.microsoft.com/en-us/azure/iot-hub/authenticate-authorize-x509"&gt;Understand how X.509 CA certificates are used in IoT&lt;/a&gt; guide.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002 Azure IoT Hub,  CA authentication Fail or TLS Connect Fail Error (-22, -116)</title><link>https://devzone.nordicsemi.com/thread/457718?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 01:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81fdc6ee-93ab-4b8a-a11b-e99917285b7a</guid><dc:creator>E_Kan</dc:creator><description>&lt;p&gt;I will add an additional reply. The link to the guide you mentioned is below. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/2705.svg" title="White check mark"&gt;&amp;#x2705;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/azure_iot_hub.html#azure-iot-hub"&gt;Nordic AzureIotHub Guide 1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/net/azure_iot_hub/README.html"&gt;Nordic AzureIotHub Guide 2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The guide focuses on guides related to nrf91.&lt;br /&gt;I&amp;#39;m curious because nrf7002 seems to be different.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002 Azure IoT Hub,  CA authentication Fail or TLS Connect Fail Error (-22, -116)</title><link>https://devzone.nordicsemi.com/thread/457717?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 01:13:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2458e61c-8b11-4ae3-a262-700164956f8c</guid><dc:creator>E_Kan</dc:creator><description>&lt;p&gt;Thank you for quick response. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f600.svg" title="Grinning"&gt;&amp;#x1f600;&lt;/span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you look at the Azure IoT Hub guide source code, there are ca-cert.pem, client.pem, and private.pem in the certs folder.&lt;/p&gt;
&lt;p&gt;Can I enter the Baltimore CA key in the ca-cert.pem file here?&lt;/p&gt;
&lt;p&gt;I need a detailed guide on how to add the Baltimore Key to the certificate section in the Azure IoT Hub portal and upload the client key.pem before verifying it.&lt;/p&gt;
&lt;p&gt;According to the Nordic guide, refer to Microsoft&amp;#39;s CA creation guide.&lt;/p&gt;
&lt;p&gt;However, there is no guide related to Baltimore CA in that guide, so I am confused as to whether I need to create a rootca or just a subca.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF7002 Azure IoT Hub,  CA authentication Fail or TLS Connect Fail Error (-22, -116)</title><link>https://devzone.nordicsemi.com/thread/457539?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 12:07:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1579a40d-7347-473f-89b3-8115b7744414</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Does this guide tell you to copy/paste the Baltimore CyberTrust Root Certificate file into the ca-cert.pem file in the certs folder of the &amp;quot;Azure IoT Hub&amp;quot; sample?[/quote]
&lt;p&gt;Which guide? Do you have a link to it?&lt;/p&gt;
[quote user=""]&lt;p&gt;Does this guide tell you to copy/paste the Baltimore CyberTrust Root Certificate file into the ca-cert.pem file in the certs folder of the &amp;quot;Azure IoT Hub&amp;quot; sample?&lt;/p&gt;
&lt;p&gt;So, what file should I upload to the Certificates section in Azure IoT Hub?&lt;/p&gt;[/quote]
&lt;p&gt;See &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/cellular-iot-guides/b/software-and-protocols/posts/nrf-cloud-access-provisioning"&gt;nRF Cloud Access Provisioning&lt;/a&gt; . This is for nRF Cloud, but the certificate distribution should be the same for Azure as well.&lt;br /&gt;Do you find what you look for here?&lt;/p&gt;
[quote user=""]Also, since the Baltimore CyberTrust Root Certificate certificate has expired, there is a guide to change it to a G2 certificate.[/quote]
&lt;p&gt;When i download the Baltimore CuberTrust Root Certificate, it seems like it does not expire until 2025:&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/pastedimage1701086784461v1.png" alt=" " /&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>