<?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>HTTPS Get request with nrf9160. TSL problems.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85920/https-get-request-with-nrf9160-tsl-problems</link><description>Hello, 
 For a while I have been trying to alter the HTTPS client example to access another example. No matter what I do, when I try to connect to any other host like google.com or my own website, I always get a connection refused error (111). 
 I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Mar 2022 14:01:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85920/https-get-request-with-nrf9160-tsl-problems" /><item><title>RE: HTTPS Get request with nrf9160. TSL problems.</title><link>https://devzone.nordicsemi.com/thread/359167?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 14:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf64ee4a-4ba2-49b2-b043-674443ce55c3</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Unfortunately, this trace is not valid.&lt;/p&gt;
&lt;p&gt;All the bytes in the trace are 0.&lt;/p&gt;
&lt;p&gt;You can get the modem fw version wither via AT commands (e.g. AT%SHORTSWVER) or from the modem_info library (which also uses AT commands internally).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTPS Get request with nrf9160. TSL problems.</title><link>https://devzone.nordicsemi.com/thread/359148?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 13:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bbbf86c-ce16-48d6-9a39-515c805bf6ce</guid><dc:creator>Sindre Nordtveit</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried updating the firmware, is there any way I can confirm this myself?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the new RAW file.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2022_2D00_03_2D00_21T12_2D00_50_2D00_55.042Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2022_2D00_03_2D00_21T12_2D00_50_2D00_55.042Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTPS Get request with nrf9160. TSL problems.</title><link>https://devzone.nordicsemi.com/thread/359109?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 12:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b5a6987-7305-4a15-98ed-8d90ca37b93a</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="s_nord"]Edit: I get something in this RAW file, maybe it contains something of relevance.[/quote]
&lt;p&gt;Looking at the trace file, it looks like you are using modem FW v1.2.0, which is not supported by the trace collector v2.&lt;/p&gt;
&lt;p&gt;I would highly recommend you update the modem FW to either 1.2.7 (if you have a rev 1 SiP, marked B0) or 1.3.1 (if you have a rev 2 SiP, marked B1).&lt;/p&gt;
&lt;p&gt;Note that trace collector v2 also doesn&amp;#39;t have a trace DB for mfw v1.2.7 yet, but it is included in the modem FW .zip file, so you should be able to decode those by selecting the trace DB manually.&lt;/p&gt;
&lt;p&gt;The old modem FW also gives me a theory about why you are not able to connect: The Server Name Indication TLS extension was not supported until mfw v1.2.1. If your server requires SNI support to connect (e.g. if multiple servers are hosted on the same IP address), the old modem FW and lack of SNI support will be the reason for your failed connection attempts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTPS Get request with nrf9160. TSL problems.</title><link>https://devzone.nordicsemi.com/thread/359051?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 09:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfa296db-b9ab-4f0a-bcf9-7722bf648342</guid><dc:creator>Sindre Nordtveit</dc:creator><description>&lt;p&gt;Thanks for the advice Didrik.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Yes, the certificate is written to the modem, and it seems to accept it. The application still fails when calling the connect function and returns the 111 error.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I tried enabling the Trace Collector, but Im not getting any packets out. I&amp;#39;ve followed the steps in the guide very closely, yet something has gone wrong. The&amp;nbsp;CONFIG_NRF_MODEM_LIB_TRACE_ENABLED is set to &amp;quot;y&amp;quot; in my config file, and its also present in the build files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried tracing with the working example file, but no packets are collected. Any advice on what the cause could be, or again, how to debug it? I&amp;#39;m getting a response from the server and the application is connecting and working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if this is relevant, but if I do not select a trace database manually, the auto-detect does not stop. It seems to be loading forever. It suggest restarting the device, which I tried without any luck. Could this be a part of the issue?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Sindre&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: I get something in this RAW file, maybe it contains something of relevance.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2022_2D00_03_2D00_21T09_2D00_50_2D00_21.847Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2022_2D00_03_2D00_21T09_2D00_50_2D00_21.847Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HTTPS Get request with nrf9160. TSL problems.</title><link>https://devzone.nordicsemi.com/thread/358661?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 13:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07b5f4bc-403d-4f81-bdac-f338b299828e</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Could someone please give me some direction in how to debug this?[/quote]
&lt;p&gt;In addition to logs (e.g. does the application write the certificates to the modem?), one of the most useful tool is to look at the traffic between the device and the server.&lt;/p&gt;
&lt;p&gt;You can do that by enabling modem tracing, and use the Trace Collector V2 Preview application in nRF Connect for Desktop to either store the trace in a Wireshark file, or display it live in Wireshark.&lt;/p&gt;
&lt;p&gt;For more information on how to take a modem trace, see:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/intro.html"&gt;https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/intro.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The documentation is for Trace Collector v1, which doesn&amp;#39;t let you see any of the data in the trace, but the v2 should be quite self explanatory. The most important details are how to get the trace off the device.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>