<?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>nRF91 certificate provisioning over RTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111811/nrf91-certificate-provisioning-over-rtt</link><description>Hi, 
 we would like to provision TLS tags / certificates for cloud authentication over Segger RTT on a custom device. We are using the Golioth cloud with the Golioth Firmware SDK, which supports using the nRF91 Key Management Unit for authentication.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jun 2024 09:37:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111811/nrf91-certificate-provisioning-over-rtt" /><item><title>RE: nRF91 certificate provisioning over RTT</title><link>https://devzone.nordicsemi.com/thread/488071?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 09:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df609252-be52-418e-9263-1ee5aa682d34</guid><dc:creator>SenseJo</dc:creator><description>&lt;p&gt;Hi, thank you &amp;ndash; I got it working. Most likely, the way I send the commands over RTT caused issues.&lt;/p&gt;
&lt;p&gt;Now, I got it working with a custom Python script, which uses `jlink_dongle.py` from &lt;a id="" href="https://github.com/Mcublog/rtt-console/blob/master/src/rtt_console/jlink_dongle.py"&gt;https://github.com/Mcublog/rtt-console/blob/master/src/rtt_console/jlink_dongle.py&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;My script initially configures the at command mode from the modem_shell sample to expect CR line breaks (by issuing `at at_cmd_mode term_cr`).&lt;br /&gt;Then, it sends the `AT%CMNG` with LF characters within the certificate, and terminates the AT command with a CR character, like that&lt;br /&gt;&lt;br /&gt;```&lt;br /&gt;jlink.write_rtt_sring(f&amp;#39;AT%CMNG=0,{SEC_TAG},0,&amp;quot;{root_cert}&amp;quot;\r&amp;#39;)&lt;br /&gt;```&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF91 certificate provisioning over RTT</title><link>https://devzone.nordicsemi.com/thread/487457?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 09:13:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff3d6f56-90c6-47e4-8596-9480295581fe</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not able to reproduce the issue. I tested with JLinkRTTViewer and enabled &amp;quot;Send on Enter&amp;quot;&lt;br /&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/pastedimage1717578742420v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It is also possible to configure the line break / end of line&lt;br /&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/pastedimage1717578802735v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Does this help in your case?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>