<?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>MQTT error -45 again</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61819/mqtt-error--45-again</link><description>Hi, 
 I used DK board for quite a while with a single certificate, which has been generated and written by nrf_modem functions. 
 Recently I upgraded the modem to firmware 1.2 and also regenerated certificates. Since this point I constantly getting error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jun 2020 09:12:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61819/mqtt-error--45-again" /><item><title>RE: MQTT error -45 again</title><link>https://devzone.nordicsemi.com/thread/252934?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 09:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46d6a7e4-fe88-4b51-ae21-40fdbf3d6296</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad you got it working.&amp;nbsp;What two sec_tags are you using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is no limit to how many times a sec_tag can be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT error -45 again</title><link>https://devzone.nordicsemi.com/thread/252907?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 07:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cf92c56-d53c-4da8-8af4-fe5ac082bb62</guid><dc:creator>_dev_</dc:creator><description>&lt;p&gt;Finally made it working by changing sec_tag to a different number.&lt;/p&gt;
&lt;p&gt;Really confused, now I&amp;#39;ve got two sec_tags with the same certificate, one is working and the other one is not.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a limit on how many times sec_tag can be used/overwritten?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT error -45 again</title><link>https://devzone.nordicsemi.com/thread/252893?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 06:43:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:409af399-63d6-434e-bc7b-1300f826ce23</guid><dc:creator>_dev_</dc:creator><description>&lt;p&gt;One more test done:&lt;/p&gt;
&lt;p&gt;I added TLS support to mqtt_simple project and also installed certificates using this app. Still getting -45.&lt;/p&gt;
&lt;p&gt;Tried both AWS and&amp;nbsp;test.mosquitto.org.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will try another simcard even though the current iBasis one has enough balance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT error -45 again</title><link>https://devzone.nordicsemi.com/thread/252874?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 00:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b030a3b-278f-40ec-8a8a-0d219fccc4cb</guid><dc:creator>_dev_</dc:creator><description>&lt;p&gt;More tests done:&lt;/p&gt;
&lt;p&gt;1. Switched to&amp;nbsp;&lt;span&gt;test.mosquitto.org, generated certificates there, got same error -45. So it&amp;#39;s not server side related.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Used AT Sample project to write certificate to make sure that nothing in my project interferes with AT engine. Same error -45&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT error -45 again</title><link>https://devzone.nordicsemi.com/thread/252477?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 17:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3a35513-95b9-4d12-9442-af417149ec6a</guid><dc:creator>_dev_</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2020_2D00_05_2D00_29T17_2D00_07_2D00_52.901Z.zip"&gt;devzone.nordicsemi.com/.../trace_2D00_2020_2D00_05_2D00_29T17_2D00_07_2D00_52.901Z.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here the log.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve started collector after Zephyr is initialised and stopped when got error -45.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me know if you need something else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT error -45 again</title><link>https://devzone.nordicsemi.com/thread/252467?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 15:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1536dc78-58f5-4601-9614-6a05731a04e6</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi, are you able to take a &lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect"&gt;modem trace&lt;/a&gt;? This might give us some more information regarding what&amp;#39;s going on.&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: MQTT error -45 again</title><link>https://devzone.nordicsemi.com/thread/252403?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 12:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e15bb1-120b-4aaf-bba2-0471f3e6c663</guid><dc:creator>_dev_</dc:creator><description>&lt;p&gt;More research done.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve added the following to my prj file&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_NET_LOG=y
CONFIG_MQTT_LOG_LEVEL_DBG=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and the only additional line came up before error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;[0m&amp;lt;dbg&amp;gt; net_mqtt_sock_tls.mqtt_client_tls_connect: (0x200200b8): Created socket 2[0m
ERROR: mqtt_connect failed with error -45&lt;/pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the source code it goes up to socket_offload.h:72, which then returns the error&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;return socket_ops-&amp;gt;connect(sock, addr, addrlen);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT error -45 again</title><link>https://devzone.nordicsemi.com/thread/252324?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 08:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cf5ec87-ce97-4f4e-89ef-440d300aec08</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for the late reply. I&amp;#39;m looking into this right now and will update as soon as I have some information for you.&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: MQTT error -45 again</title><link>https://devzone.nordicsemi.com/thread/252091?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 07:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e08842b-a96b-4aed-868d-1e920d7d6dd5</guid><dc:creator>_dev_</dc:creator><description>&lt;p&gt;An important thing to mention.&lt;/p&gt;
&lt;p&gt;I can successfully connect with generated certificates and AWS CA certificate usingthird party MQTT client.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>