<?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>Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48688/do-the-at-cmng-commands-function-properly-for-writing-credentials-in-mfw_nrf9160_0-7-0-29-alpha</link><description>I&amp;#39;ve used the nrf_inbuilt_key_write to store certificates/keys in the past, but I am still unable to do it using the &amp;quot;AT%CMNG&amp;quot; modem command. 
 I can list and delete items using &amp;quot;AT%CMNG=1&amp;quot; and &amp;quot; AT%CMNG=3,x,x&amp;quot;, but every attempt to write with &amp;quot;AT%CMNG</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jun 2019 17:04:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48688/do-the-at-cmng-commands-function-properly-for-writing-credentials-in-mfw_nrf9160_0-7-0-29-alpha" /><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/195213?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 17:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2f1a466-81f8-444c-a4c8-455a4d9b0c26</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;We eventually realized that the bulk of the issue, and likely the original root of my troubles, was that the buffers being used by the at_host library are simply too small in both directions, causing silent truncation and loss of data.&amp;nbsp; There is now a ticket for a Nordic engineer to fix this, and I expect an official fix in the not too far future.&lt;/p&gt;
&lt;p&gt;If you can&amp;#39;t wait, start digging through the at_host code, looking in particular at&amp;nbsp;CONFIG_AT_CMD_RESPONSE_MAX_LEN or CONFIG_AT_HOST_SOCKET_BUF_SIZE depending on what version you&amp;#39;re at.&amp;nbsp; I also recommend turning on&amp;nbsp;CONFIG_LOG if you can support it so that the failures aren&amp;#39;t so silent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/194136?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2019 13:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a64ca5-edca-447f-811b-1eec501fea6f</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Justin,&lt;br /&gt;I see that you have shared your trace in&amp;nbsp;a private ticket&amp;nbsp;and the traces will be followed up and analyses will be posted there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193756?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 22:42:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc30c3e9-3674-4f44-893d-ba907fb77c7b</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;For Pete&amp;#39;s sake!&amp;nbsp;&amp;nbsp;I&amp;#39;m 0 for 5 in getting this thing to&amp;nbsp;hang while bringing up MQTT with BSD trace enabled and peer_verify set back to 2!&amp;nbsp; (I was 5 for 5 earlier today with BSD trace disabled...)&lt;/p&gt;
&lt;p&gt;Are these modem traces easily cropped?&amp;nbsp; I&amp;#39;m considering just leaving the trace always running in the background while I go back to my other development work, but I don&amp;#39;t want to make you guys sift through hours of trace when only the final minutes matter.&lt;/p&gt;
&lt;p&gt;This feels a lot like an uninitialized variable in the modem firmware or maybe the certificates are supposed to be null-terminated and mine didn&amp;#39;t get stored that way and it&amp;#39;s semi-random what happens to be in memory after it...&lt;/p&gt;
&lt;p&gt;Bah humbug!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193755?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 22:09:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a937acc9-b6a1-41dd-9f59-e5d56afb7c66</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;Yep, this NRF9160 is definitely confused.&amp;nbsp; Even with peer_verify=0, my system has been having random lockups all day while doing BSD library calls.&amp;nbsp; I&amp;#39;ve been developing this application in some form or another for months and haven&amp;#39;t had this much bad behavior in one day since I upgraded the original modem firmware.&lt;/p&gt;
&lt;p&gt;Would a BSD trace be useful to the Nordic engineers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193748?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 17:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66e4ab43-f279-474c-9dcc-bf999c832aaa</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;Please if you could provide suggestions of how to force my&amp;nbsp;modem credentials to a sane/empty state I would appreciate it. I&amp;#39;ve already tried &amp;quot;CMNG=1&amp;quot; and nrf_inbuilt_key_delete(), but those are apparently not enough by themselves.&lt;/p&gt;
&lt;p&gt;I managed to get my certificates reloaded using the nrf_inbuilt methods after several attempts, but something is still messed up.&amp;nbsp; The call to mqtt_connect now hangs unless I set peer_verify=0.&amp;nbsp; My system had been running properly with peer_verify=2 for months before I started playing with certificates this week.&amp;nbsp; Watching on the server side with &amp;quot;openssl s_server&amp;quot; I can see that the modem is using the cert I am expecting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193731?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 15:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:320bdcb2-424b-4aa4-92f6-7f9c07346b65</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;Yeah, I was finally able to do a CMNG write command...&amp;nbsp; The basic CMNG write is working, but something is hanging in the modem firmware during most writes.&lt;/p&gt;
&lt;p&gt;I had loaded the test string &amp;quot;BEEPBEEP&amp;quot; as a CA using nrf_inbuilt_key_write, rebooted into at_client, and was able to read&amp;nbsp;&amp;quot;BEEPBEEP&amp;quot; back using CMNG=2.&amp;nbsp; I then set the CA to &amp;quot;HONKHONK&amp;quot; using CMNG=0 and read *that* back using CMNG=2.&amp;nbsp; (Yay! Proves that it&amp;#39;s not an XPMNG issue for that credential at least)&lt;/p&gt;
&lt;p&gt;Enthused by that success, I immediately tried to use CMNG=0 to write a real certificate into the same slot, and that command hung.&amp;nbsp;&amp;nbsp;After rebooting the 9160, CMNG=2 still reads back &amp;quot;HONKHONK&amp;quot;.&amp;nbsp; I was able to change it to something short again using CMNG=0 and read that back okay.&amp;nbsp; (This final test I also used a multi-line payload to prove that wasn&amp;#39;t the issue...)&lt;/p&gt;
&lt;p&gt;Is there a size limit on certificates/keys?&amp;nbsp; I don&amp;#39;t think mine are&amp;nbsp;excessive in any way.&amp;nbsp; A quick check at the command line puts all three credential files I&amp;#39;m trying to load in the area of 1600-1900 bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193730?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 15:01:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b1b5e2a-9c2c-4308-aeab-f41d05cff77f</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;Yeah, I strongly suspect my modem NVM is in bad shape.&amp;nbsp; Is there a way using nrf9160_mdm_dfu or some other tool that I can check or reset the credential storage?&lt;/p&gt;
&lt;p&gt;It is now in a state where if I try to store credentials even using nrf_inbuilt_key_write some writes succeed and others hang.&amp;nbsp; After one pass where it had written the CA cert successfully but then hung during the private key write, I reflashed to at_client and poked around a bit:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;The AT host sample started
AT
OK
AT+CFUN=4
OK
AT+CMEE=1
OK
AT%CMNG=1
%CMNG: 64738,0,&amp;quot;0000000000000000000000000000000000000000000000000000000000000000&amp;quot;
%CMNG: 64738,1,&amp;quot;0101010101010101010101010101010101010101010101010101010101010101&amp;quot;
%CMNG: 64738,2,&amp;quot;0202020202020202020202020202020202020202020202020202020202020202&amp;quot;
OK
AT%CMNG=2,64738,0
%CMNG: 64738,0,&amp;quot;0000000000000000000000000000000000000000000000000000000000000000&amp;quot;,&amp;quot;-----BEGIN CERTIFICATE-----
MIIFLjCCBBagAwIBAgIJANuSwPfghLXlMA0GCSqGSIb3DQEBCwUAMIG7MQswCQYD
VQQGEwJVUzEWMBQGA1UECAwNTWFzc2FjaHVzZXR0czEUMBIGA1UEBwwLTWFybGJv
cm91Z2gxJjAkBgNVBAoMHVNpZ25hbEZpcmUgV2lyZWxlc3MgVGVsZW1ldHJ5MRMw
EQYDVQQLDApNUVRUIENsb3VkMRwwGgYDVQQDDBNTaWduYWxGaXJlIENsb3VkIENB
MSMwIQYJKoZIhvcNAQkBFhRpbmZvQHNpZ25hbC1maXJlLmNvbTAeFw0xOTA0MDMx
NjE1MDhaFw0zOTAzMjkxNjE1MDhaMIG7MQswCQYDVQQGEwJVUzEWMBQGA1UECAwN
TWFzc2FjaHVzZXR0czEUMBIGA1UEBwwLTWFybGJvcm91Z2gxJjAkBgNVBAoMHVNp
Z25hbEZpcmUgV2lyZWxlc3MgVGVsZW1ldHJ5MRMwEQYDVQQLDApNUVRUIENsb3Vk
MRwwGgYDVQQDDBNTaWduYWxGaXJlIENsb3VkIENBMSMwIQYJKoZIhvcNAQkBFhRp
bmZvQHNpZ25hbC1maXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
ggEBAO9Kf1ufbdkCdIB9hJ5iZ1z9OyUB8Ddaal7uGFUh1j2y/Fk+gbO69YXUAX/8
CbZKiZ4VJmCcbCS9jRU7jNbF85oeJofkoiCpWB0supKtGk+GK6dMBK84TSJL5x29
qdGqu2x/em5UD9PfqSMQtdPpcCraPTekRAWJnUd3BNeYqZ3uixOWVIpytGWDLeZP
PU3UcIJIRSCbunVSzoafTrQI/FNh7azx9RTpJexEhLYRqKB54i8oaKdUQHfve9sD
M4b



AT
OK
AT%CMNG=3,64738,0
OK
AT%CMNG=1
%CMNG: 64738,1,&amp;quot;0101010101010101010101010101010101010101010101010101010101010101&amp;quot;
%CMNG: 64738,2,&amp;quot;0202020202020202020202020202020202020202020202020202020202020202&amp;quot;
OK
AT%CMNG=3,64738,1
OK
AT%CMNG=3,64738,2
OK
AT%CMNG=1
OK
AT%CMNG=0,64738,0,&amp;quot;TEST&amp;quot;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The CMNG=1 listed that the CA, key, and cert all existed, even though it had hung during the key write and the cert write had not been written. When trying to read the CA, it didn&amp;#39;t have the whole CA certificate.&amp;nbsp; I then deleted all three certificates and tried to write a super-short string to the CA as a test and that hung and never returned...&lt;/p&gt;
&lt;p&gt;(EDIT: The truncated output on CMNG=2 was due to a too-small buffer in the AT driver, which can be remedied by increasing&amp;nbsp;&lt;span&gt;AT_HOST_SOCKET_BUF_SIZE in prj.conf)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193681?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 13:03:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d050f093-fae7-4684-9ef5-d4ffb0ac9dbd</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;I have previously listed and deleted all keys using CMNG=1 and CMNG=3.&amp;nbsp; I just tried it again and included a CFUN=0 and reboot after deleting the keys but before trying to write new keys with CMNG=0.&amp;nbsp; It exhibited the same behavior and never completed the CMNG write command.&lt;/p&gt;
&lt;p&gt;Regarding the XPMNG command, I tried XPMNG=2 and it does report an existing public key.&amp;nbsp; I am quite certain I have never installed one.&amp;nbsp; I happened to have a new dev kit we recently got for GPS testing, so I loaded it up with at_client and XPMNG=2 reports the exact same public key.&amp;nbsp; I assume these must be from manufacturing on Nordic&amp;#39;s end.&amp;nbsp; There is no command I can find in the modem manual to delete the XPMNG credential, can you please tell me how to do this?&lt;/p&gt;
&lt;p&gt;In case anyone else ever&amp;nbsp;cares, this is what the preinstalled public key looked like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT%XPMNG=2
%XPMNG: &amp;quot;-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErrM7SxsE9WStx+6C2TQSsiaCnDww
B6rYZe/xHP7sDuHP8SmB0uauqhWBXXy0e8xoxqAc2bniubZa4HI2Zfz7tQ==
-----END PUBLIC KEY-----
&amp;quot;
OK&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193648?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 11:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:846b2068-4b4d-4526-96d4-c15a87abd5f9</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Justin,&lt;br /&gt;Could you try to list the keys (AT%CMNG=1) and delete the ones that you are not using.&lt;br /&gt; It may be that there is a memory issue.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The error 519 is not listed in the documentation, but it means that it already exists something at that place, so you can try to&amp;nbsp;delete the old one first.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193475?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 14:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:397f4557-85e7-4774-bfa4-ad82c9179097</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;I now wonder if I haven&amp;#39;t somehow put this modem&amp;#39;s NVM into a bad state.&amp;nbsp; Just so I could continue doing other work, I used&amp;nbsp;nrf_inbuilt_key_delete/nrf_inbuilt_key_write to remove all credentials and then reload a good set, and now every attempt to connect to an SSL socket fails with errno=-45. This is the same client/application code I have been using for months without issue.&lt;/p&gt;
&lt;p&gt;I further tried using just &amp;quot;openssl s_server&amp;quot; as the listener and disabling peer verify on both sides, and I still get -45 from mqtt_connect.&amp;nbsp; The openssl server just spits out this every time the device hits it:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ERROR
shutting down SSL
CONNECTION CLOSED&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;They never even begin key exchange.&amp;nbsp; &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193471?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 14:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca36d6df-9caa-4cda-aa14-c8cd31e817ab</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;I am unable to get XPMNG to work when pushing the public key to the modem.&amp;nbsp; The CME error code is not listed in on the XPMNG documentation page.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;***** Booting Zephyr OS v1.14.99-ncs1 *****
The AT host sample started
AT
OK
AT+CFUN=4
OK
AT+CMEE=1
OK
AT%XPMNG=0,&amp;quot;-----BEGIN PUBLIC KEY-----MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE0hFbFkKzORGXw5UCyFV6McEsQlH/SA+5OPTg5ff1DwQDj9LQJJ4dkcgdGI46bVho3YU7RQTVc9LojyUFNHNEew==-----END PUBLIC KEY-----&amp;quot;
+CME ERROR: 519&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193465?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 14:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f60fe8cb-efb5-4650-90d1-d08b256655db</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Please try to follow the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fauthenticate_at_command_use.html&amp;amp;cp=2_1_8"&gt;Authenticating AT command usage doc&lt;/a&gt;, that may be the reason why.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193459?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 13:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7652ca2-35e5-41f5-bace-a019f1db7300</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;I was working directly via a serial terminal at the moment, just as a proof of concept.&amp;nbsp; I was getting the same behavior with both our application and the at_client sample.&lt;/p&gt;
&lt;p&gt;Does CR/LF matter?&amp;nbsp; Are line breaks required in the key material or could the entire thing be concatenated to one line if desired?&lt;/p&gt;
&lt;p&gt;The doc page you referenced makes use of XSUDO.&amp;nbsp; Base on the note on&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xsudo.html?cp=2_1_3_17"&gt;this page&lt;/a&gt;&amp;nbsp;I had assumed that was not necessary yet, and possibly not fully implemented, so I had not been trying it.&amp;nbsp; Am I likely to have more success if I use XSUDO?&lt;/p&gt;
&lt;p&gt;I will try to match my certificate types and formatting more carefully to your reference and see if that changes anything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193452?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 13:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa1dff13-d4b0-43a1-b674-91a89f04bf47</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Justin,&lt;br /&gt;Are you sending AT-Commands in your application with sockets or are you sending directly via e.g. a serial terminal using the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fmob_termination_ctrl_status%2Fcmng_set.html&amp;amp;resultof=%22%43%4d%4e%47%22%20%22%63%6d%6e%67%22%20" rel="noopener noreferrer" target="_blank"&gt;%CMNG command&lt;/a&gt;&amp;nbsp;with at_client sample?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;span&gt;&amp;lt;content&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;/strong&gt;in the read response is exactly what is written, including&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;CR&amp;gt;&lt;/code&gt;,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;LF&amp;gt;&lt;/code&gt;, and other characters. The characters outside the double quotes are part of the AT response format.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;&amp;lt;content&amp;gt;&amp;nbsp;&lt;/strong&gt;String. Mandatory if&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;lt;opcode&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;write&lt;/span&gt;. An empty string is not allowed. A&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="A public key certificate defined in the X.509 cryptography standard and used to privately transmit email." href="https://infocenter.nordicsemi.com/topic/ref_at_commands/dita_common/glossary/glossary.html#pem"&gt;&lt;dfn&gt;Privacy Enhanced Mail (PEM)&lt;/dfn&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file enclosed in &lt;strong&gt;double quotes (X.509 PEM entities). Base64-encoded string in double quotes (PSK).&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Please look at the examples in the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fauthenticate_at_command_use.html&amp;amp;cp=2_1_8"&gt;doc page&lt;/a&gt;&amp;nbsp;for reference.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Do the AT%CMNG commands function properly for writing credentials in mfw_nrf9160_0.7.0-29.alpha</title><link>https://devzone.nordicsemi.com/thread/193262?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 20:31:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e9b7cb7-3410-41ac-9b4a-cb9343331e83</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;I have the feeling that the %CMNG write command is very unforgiving of certificate bodies that don&amp;#39;t match the expected formatting, and it is hanging forever waiting to see a certain pattern it expects...&amp;nbsp; But I can&amp;#39;t for the life of me figure out what the pattern should be.&amp;nbsp; The certificate files I&amp;#39;m using are accepted just fine by the nrf_inbuilt_key_write function...&lt;/p&gt;
&lt;p&gt;(EDIT: This was definitely not the issue as the CMNG write command stores anything you send w/o doing any validation if things are working properly.&amp;nbsp; Further down in the thread I stored &amp;quot;HONKHONK&amp;quot; as a CA certificate.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>