<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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 modem credential requirements</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88652/nrf9160-modem-credential-requirements</link><description>Hi, 
 
 I&amp;#39;m using a nrf9160 DK and am wondering how to use the credential storage system. I deleted all credentials for security tag 1, and loaded the root CA pem (not the full chain - I had trouble loading that - too large maybe? is full chain needed</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Fri, 10 Jun 2022 16:07:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88652/nrf9160-modem-credential-requirements" /><item><title>RE: NRF9160 modem credential requirements</title><link>https://test-devzone.nordicsemi.com/thread/371947?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 16:07:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ef4da13-da36-4afd-906a-148fa654e56e</guid><dc:creator>user77483</dc:creator><description>&lt;p&gt;It looks like the 1.3.x mfw versions do not support the hardware revision number that&amp;#39;s on this board.&amp;nbsp; I updated to 1.2.7 and it looks like the issue has been fixed.&amp;nbsp; Do you know where I can find information about ensuring a particular modem firmware version during production?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 modem credential requirements</title><link>https://test-devzone.nordicsemi.com/thread/371780?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 07:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23be414d-8e57-4cfe-a409-06ab74d6bda9</guid><dc:creator>user2115</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="erinh"]%SHORTSWVER: nrf9160_1.1.0[/quote]
&lt;p&gt;Are you planning to go into production with this modem fw version?&lt;/p&gt;
&lt;p&gt;Is there a specific reason why you&amp;#39;re using the v1.1.x branch, and not the newer 1.3.x branch?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend that you upgrade the modem fw version, atleast to the newest within the minor release.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 modem credential requirements</title><link>https://test-devzone.nordicsemi.com/thread/371715?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 15:16:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c00abaa2-8908-4047-a6d7-399cbeff8709</guid><dc:creator>user77483</dc:creator><description>&lt;p&gt;Here&amp;#39;s the output from LTE link monitor as I typed these commands in:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;
2022-06-09T15:03:57.681Z DEBUG Application data folder: /home/erin/.config/nrfconnect/pc-nrfconnect-linkmonitor 
2022-06-09T15:03:57.739Z INFO Using nrf-device-lib-js version: 0.4.11 
2022-06-09T15:03:57.739Z INFO Using nrf-device-lib version: 0.11.8 
2022-06-09T15:03:57.739Z INFO Using nrfjprog DLL version: 10.15.4 
2022-06-09T15:03:57.739Z INFO Using JLink version: JLink_V7.65c 
2022-06-09T15:03:57.749Z DEBUG App pc-nrfconnect-linkmonitor v2.0.1 official 
2022-06-09T15:03:57.749Z DEBUG App path: /home/erin/.nrfconnect-apps/node_modules/pc-nrfconnect-linkmonitor 
2022-06-09T15:03:57.749Z DEBUG nRFConnect 3.11.1, required by the app is (^3.8.0) 
2022-06-09T15:03:57.749Z DEBUG nRFConnect path: /tmp/.mount_nrfconbLT2uZ/resources/app.asar 
2022-06-09T15:03:57.749Z DEBUG HomeDir: /home/erin 
2022-06-09T15:03:57.749Z DEBUG TmpDir: /tmp 
2022-06-09T15:03:57.750Z INFO Installed JLink version does not match the provided version (V7.58b) 
2022-06-09T15:04:02.611Z INFO Modem port is opened 
2022-06-09T15:04:02.620Z DEBUG modem &amp;gt;&amp;gt; AT+CFUN? 
2022-06-09T15:04:02.632Z DEBUG modem &amp;lt;&amp;lt; +CFUN: 0 
2022-06-09T15:04:02.633Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:04:16.519Z DEBUG modem &amp;gt;&amp;gt; AT 
2022-06-09T15:04:16.531Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:04:41.858Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=1 
2022-06-09T15:04:41.879Z DEBUG modem &amp;lt;&amp;lt; %CMNG: 1,0,&amp;quot;0000000000000000000000000000000000000000000000000000000000000000&amp;quot; 
2022-06-09T15:04:41.888Z DEBUG modem &amp;lt;&amp;lt; %CMNG: 42,0,&amp;quot;0000000000000000000000000000000000000000000000000000000000000000&amp;quot; 
2022-06-09T15:04:41.894Z DEBUG modem &amp;lt;&amp;lt; %CMNG: 16842753,0,&amp;quot;0000000000000000000000000000000000000000000000000000000000000000&amp;quot; 
2022-06-09T15:04:41.901Z DEBUG modem &amp;lt;&amp;lt; %CMNG: 16842753,1,&amp;quot;0101010101010101010101010101010101010101010101010101010101010101&amp;quot; 
2022-06-09T15:04:41.909Z DEBUG modem &amp;lt;&amp;lt; %CMNG: 16842753,2,&amp;quot;0202020202020202020202020202020202020202020202020202020202020202&amp;quot; 
2022-06-09T15:04:41.912Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:06:18.400Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=3,1,0 
2022-06-09T15:06:18.467Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:06:23.040Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=3,42,0 
2022-06-09T15:06:23.054Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:06:43.590Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=3,16842753,0 
2022-06-09T15:06:43.640Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:06:46.320Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=3,16842753,1 
2022-06-09T15:06:47.320Z ERROR Error: &amp;#39;AT%CMNG=3,16842753,1 &amp;#39; timed out 
2022-06-09T15:06:47.518Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=3,16842753,2 
2022-06-09T15:06:47.654Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:06:55.697Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=1 
2022-06-09T15:06:55.707Z DEBUG modem &amp;lt;&amp;lt; ERROR 
2022-06-09T15:06:55.710Z ERROR Error: AT%CMNG=1 failed 
2022-06-09T15:07:00.629Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=1 
2022-06-09T15:07:00.646Z DEBUG modem &amp;lt;&amp;lt; %CMNG: 16842753,2,&amp;quot;0202020202020202020202020202020202020202020202020202020202020202&amp;quot; 
2022-06-09T15:07:00.650Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:07:24.193Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=3,16842753,2 
2022-06-09T15:07:24.208Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:07:32.273Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=1 
2022-06-09T15:07:32.283Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:07:40.929Z DEBUG modem &amp;gt;&amp;gt; AT%CMNG=1 
2022-06-09T15:07:40.940Z DEBUG modem &amp;lt;&amp;lt; OK 
2022-06-09T15:11:35.824Z DEBUG modem &amp;gt;&amp;gt; AT%SHORTSWVER 
2022-06-09T15:11:35.838Z DEBUG modem &amp;lt;&amp;lt; %SHORTSWVER: nrf9160_1.1.0 
2022-06-09T15:11:35.841Z DEBUG modem &amp;lt;&amp;lt; OK&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I loaded the https_example onto the DK after this and I&amp;#39;m still getting error 111 when TLS_PEER_VERIFY is set to required&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 modem credential requirements</title><link>https://test-devzone.nordicsemi.com/thread/371582?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 08:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1457a593-138b-4b60-b76c-a9608d7be387</guid><dc:creator>user2115</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1: which mfw are you using?&lt;/p&gt;
&lt;p&gt;Q2: Could you load the at_client onto the failing board, and issue this AT command?&lt;/p&gt;
&lt;p&gt;AT%CMNG=1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And then delete any unused certs?&lt;/p&gt;
&lt;p&gt;Docs for reference:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/security/cmng_set.html?cp=2_1_11_7_0"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/security/cmng_set.html?cp=2_1_11_7_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 modem credential requirements</title><link>https://test-devzone.nordicsemi.com/thread/371500?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 19:05:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74ad7a44-f8cd-4ccd-ad23-760a20b3dfc8</guid><dc:creator>user77483</dc:creator><description>&lt;p&gt;There&amp;#39;s definitely something strange going on.&amp;nbsp; It&amp;#39;s working on a different DK and I suspect there&amp;#39;s some type of nvm corruption going on with the original.&amp;nbsp; Before posting here I attempted to load a certificate chain &amp;gt;4KB into the modem and started seeing some strange responses when working with the sec tag I attempted that on (I think it was tag 42).&amp;nbsp; Is there a way to clear modem nvm to some type of &amp;quot;factory default&amp;quot; state?&amp;nbsp; I think I may have corrupted my original DK in such a way that it can&amp;#39;t do TLS properly anymore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 modem credential requirements</title><link>https://test-devzone.nordicsemi.com/thread/371459?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 14:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be2dc599-c991-4a09-8d41-b728df9c5394</guid><dc:creator>user77483</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;I cloned a new copy of NCS, pasted the certificate you copied here in to be sure, edited host, changed sec_tag to 1, and this is the output:&lt;/p&gt;
&lt;pre&gt;*** Booting Zephyr OS build v3.0.99-ncs1&amp;nbsp; ***&lt;br /&gt;HTTPS client sample started&lt;br /&gt;Certificate match&lt;br /&gt;Waiting for network.. OK&lt;br /&gt;Connecting to testnet-algorand.api.purestake.io&lt;br /&gt;connect() failed, err: 111&lt;/pre&gt;
&lt;p&gt;I&amp;#39;m pretty sure I saw it working earlier before I changed something.&amp;nbsp; I think it stopped working after I deleted the other credential types on sec tag 1.&amp;nbsp; Could you try deleting&lt;/p&gt;
&lt;p&gt;MODEM_KEY_MGMT_CRED_TYPE_PUBLIC_CERT,&lt;br /&gt;MODEM_KEY_MGMT_CRED_TYPE_PRIVATE_CERT,&lt;br /&gt;MODEM_KEY_MGMT_CRED_TYPE_PSK,&lt;br /&gt;MODEM_KEY_MGMT_CRED_TYPE_IDENTITY&lt;/p&gt;
&lt;p&gt;on the sec tag you&amp;#39;re using and see if it will connect?&amp;nbsp; AFAIK these shouldn&amp;#39;t be necessary for server verification only but it&amp;#39;s the only logical difference in our setups I can think of.&lt;/p&gt;
&lt;p&gt;Thank you for your help,&lt;/p&gt;
&lt;p&gt;Erin H&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 modem credential requirements</title><link>https://test-devzone.nordicsemi.com/thread/371271?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 06:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12c7f8ed-4f73-4af1-b1e8-312af9ed6f41</guid><dc:creator>user2115</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No need for a full chain, you just need the root CA.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I changed the certificate in the https_client to be the AWS Root 1:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.amazontrust.com/repository/AmazonRootCA1.pem"&gt;https://www.amazontrust.com/repository/AmazonRootCA1.pem&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a C header version of the above cert:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;quot;-----BEGIN CERTIFICATE-----\n&amp;quot; \
&amp;quot;MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF\n&amp;quot; \
&amp;quot;ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6\n&amp;quot; \
&amp;quot;b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL\n&amp;quot; \
&amp;quot;MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv\n&amp;quot; \
&amp;quot;b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj\n&amp;quot; \
&amp;quot;ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM\n&amp;quot; \
&amp;quot;9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw\n&amp;quot; \
&amp;quot;IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6\n&amp;quot; \
&amp;quot;VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L\n&amp;quot; \
&amp;quot;93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm\n&amp;quot; \
&amp;quot;jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC\n&amp;quot; \
&amp;quot;AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA\n&amp;quot; \
&amp;quot;A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI\n&amp;quot; \
&amp;quot;U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs\n&amp;quot; \
&amp;quot;N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv\n&amp;quot; \
&amp;quot;o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU\n&amp;quot; \
&amp;quot;5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy\n&amp;quot; \
&amp;quot;rqXRfboQnoZsG4q5WTP468SQvvG5\n&amp;quot; \
&amp;quot;-----END CERTIFICATE-----\n&amp;quot;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And changed the hostname to connect to yours. This is the output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.99-ncs1-1  ***
HTTPS client sample started
Certificate match
Waiting for network.. OK
Connecting to testnet-algorand.api.purestake.io
Sent 83 bytes
Received 261 bytes

&amp;gt;        HTTP/1.1 403 Forbidden

Finished, closing socket.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;No problem connecting at my end. Could you try to use https_client to connect on your side as well, to see if it runs as expected?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 modem credential requirements</title><link>https://test-devzone.nordicsemi.com/thread/371248?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 21:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc063e33-a153-4743-aad7-5491a4b408c0</guid><dc:creator>user77483</dc:creator><description>&lt;p&gt;Thanks for your reply.&amp;nbsp; I am connecting to testnet-algorand.api.purestake.io and have tried the CA certificate (amazon root CA 1) and the first cert in the chain (*.api.purestake.io).&lt;/p&gt;
&lt;p&gt;I remember seeing it connect successfully using the root CA only before I deleted all other credentials on security tag 1 (only credential type 0 replaced, others unmodified from how it was shipped) unless I was quite confused.&lt;/p&gt;
&lt;p&gt;Do I need to load the full chain into the modem?&amp;nbsp; TLS normally only requires the root certificate to my knowledge.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 modem credential requirements</title><link>https://test-devzone.nordicsemi.com/thread/371139?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 12:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2bc4e6d-749b-49fd-8473-c88ee5ac0e0f</guid><dc:creator>user2115</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]loaded the root CA pem (not the full chain - I had trouble loading that - too large maybe?&amp;nbsp; is full chain needed?[/quote]
&lt;p&gt;There&amp;#39;s a restriction of 4k. It sounds like that is the issue with the certificate chain.&lt;/p&gt;
[quote user=""]Trying to connect to the site with security tag 1 results in -111 (-ECONNREFUSED) but only when TLS_PEER_VERIFY is set to REQUIRED (NONE or OPTIONAL makes successful connection).[/quote]
&lt;p&gt;This indicates that the domain you&amp;#39;re connecting to is not verified by the CA that you have inputted to the nRF.&lt;/p&gt;
&lt;p&gt;Which CA root are you using, and which domain are you connecting to?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>