<?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 custom device - nrfcloud cert connect failure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71845/nrf9160-custom-device---nrfcloud-cert-connect-failure</link><description>Hi, 
 I have a custom PCB with the nrf9610. I have confirmed that https over LTE works fine. I want to enable agps, so I need to get nrfcloud connected. 
 I made a new device certificate and instead of nrf-### I used tap-### 
 I got the json with the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Feb 2021 09:50:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71845/nrf9160-custom-device---nrfcloud-cert-connect-failure" /><item><title>RE: nrf9160 custom device - nrfcloud cert connect failure</title><link>https://devzone.nordicsemi.com/thread/296465?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 09:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48bb950c-77fe-46ac-8624-16c1619b2013</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;That&amp;#39;s good to hear. I will close this case then.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 custom device - nrfcloud cert connect failure</title><link>https://devzone.nordicsemi.com/thread/296411?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 02:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d29c7a4-1eec-401c-a379-a0da51131c76</guid><dc:creator>pctj101</dc:creator><description>&lt;p&gt;Heidi, no further action necessary.&amp;nbsp; My Serial console (screen) was dropping bytes on the copy+paste leading to a format error.&amp;nbsp; // wrote my own serial programmer.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the feedback.&amp;nbsp; It helped!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 custom device - nrfcloud cert connect failure</title><link>https://devzone.nordicsemi.com/thread/296352?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2021 15:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59505726-888d-4fba-a255-129a5e78a54f</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the information. The AT commands look correct, as far as I can tell. Is the modem returning &amp;quot;OK&amp;quot; after you send each command?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you export the log file from the application so I can take a look?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 custom device - nrfcloud cert connect failure</title><link>https://devzone.nordicsemi.com/thread/296116?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 21:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dd1404d-6d89-4679-b24c-45cad17d5f85</guid><dc:creator>pctj101</dc:creator><description>&lt;p&gt;Also in my prj.conf I was sure to change my prefix for the nrf client prefix:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;CONFIG_NRF_CLOUD_CLIENT_ID_PREFIX=&amp;quot;tap-&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;I also tried to hard code it:&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;CONFIG_COMPILER_OPT=&amp;quot;-DNRF_CLOUD_CLIENT_ID=\&amp;quot;tap-352656102742411\&amp;quot;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;I also tried various combinations of:&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;#+# NRF CLoud - src/certificates.h&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;#+CONFIG_PROVISION_CERTIFICATES=n&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;#+# NRF CLoud - AT*&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;#+#CONFIG_MODEM_KEY_MGMT=y&lt;/span&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;CONFIG_NRF_CLOUD_PROVISION_CERTIFICATES=y&lt;/span&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;/p&gt;
&lt;p class="p2"&gt;But seeing that it&amp;#39;s a format error, I guess we&amp;#39;re not at this point yet... anyways, thought I&amp;#39;d share it in advance :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 custom device - nrfcloud cert connect failure</title><link>https://devzone.nordicsemi.com/thread/296115?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 21:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82aa5131-b3f4-48fa-8642-d41453bfe5ae</guid><dc:creator>pctj101</dc:creator><description>&lt;p&gt;Hello again!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Appreciate that you told me it&amp;#39;s a format error.&amp;nbsp; I&amp;#39;m sure that can be fixed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what I get after installing the certs:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;AT%CMNG=1&lt;/span&gt;&lt;/p&gt;
&lt;p class="p2"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;%CMNG: 0,6,&amp;quot;0606060606060606060606060606060606060606060606060606060606060606&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;%CMNG: 16842753,0,&amp;quot;0000000000000000000000000000000000000000000000000000000000000000&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;%CMNG: 16842753,1,&amp;quot;0101010101010101010101010101010101010101010101010101010101010101&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;%CMNG: 16842753,2,&amp;quot;0202020202020202020202020202020202020202020202020202020202020202&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;And let me try to attach my AT commands (which are converted from the original downloaded JSON.. forgive me if I attached the wrong JSON file.&amp;nbsp; I downloaded so many that perhaps some got mixed.&amp;nbsp; But I&amp;#39;m sure you&amp;#39;ll&amp;nbsp; be able to tell me if my AT commands are obviously wrong)&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/tap_2D00_352656102742411.cert.jsonf.json.txt"&gt;devzone.nordicsemi.com/.../tap_2D00_352656102742411.cert.jsonf.json.txt&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/tap_2D00_352656102742411.cert.jsonf.json.orig.txt"&gt;devzone.nordicsemi.com/.../tap_2D00_352656102742411.cert.jsonf.json.orig.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;Thank you again Heidi!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 custom device - nrfcloud cert connect failure</title><link>https://devzone.nordicsemi.com/thread/296065?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 14:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ca2fb82-5baa-43a1-bab3-6384aeb4dcc2</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-8 is a format error so most likely the certificates were not provisioned correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please show me the output from the device when provisioning the certificates (preferably in a text file).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp;&lt;/p&gt;
[quote user=""]Can you recommend a mosquitto_pub or _sub command with a -t &amp;#39;topic_path&amp;#39; that I could use to test my certificates?[/quote]
&lt;p&gt;If you mean as an AT command, the Serial LTE Modem application has some proprietary &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/MQTT_AT_commands.html"&gt;MQTT AT commands&lt;/a&gt;&amp;nbsp;that you can use to connect via MQTT&amp;nbsp;(#&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/MQTT_AT_commands.html#mqtt-subscribe-xmqttsub"&gt;XMQTTSUB &lt;/a&gt;and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/MQTT_AT_commands.html#mqtt-publish-xmqttpub"&gt;#XMQTTPUB&lt;/a&gt;). But I don&amp;#39;t know how that would test your certificates, as they are used with nRF Connect for Cloud, not Mosquitto.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) You can set &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG.html#cmdoption-arg-CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG"&gt;CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG&lt;/a&gt;&amp;quot; to get a more detailed output.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>