<?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 with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87551/mqtt-with-tls-on-aws-ec2</link><description>Hi, 
 We have our own MQTT broker setup with TLS running on a AWS EC2 cloud service. I am building my code based on the MQTT_SIMPLE example. I have only a CA certificate in the certificates.h file. There is no client private key and no client public certificate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 May 2022 16:04:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87551/mqtt-with-tls-on-aws-ec2" /><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/369359?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 16:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54ece8b0-224a-4fdf-b318-b2475640d103</guid><dc:creator>leo_nam</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The broker has been configured, and over the weekend flau was able to connect successfully over MQTT with TLS to the Amazon Linux 2 server running MQTT broker 1.6.10.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was unable to connect using my mqtt_simple project with the development board. However, by restarting with a clean version of the mqtt_simple project by removing and then readding &amp;quot;nrf Connect SDK v1.8.0&amp;quot; and then making then necessary changes to enable tls and certificate provisioning, I was able to connect to the broker using the mqtt_simple project and the development board.&lt;/p&gt;
&lt;p&gt;Thank you for your help,&lt;/p&gt;
&lt;p&gt;Palden&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/369080?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 14:19:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83e72d7e-8988-4fe9-b78d-e9a90aad2ec2</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;The traces shows that the TLS handshake is successful, but the server closes the connection after the client sends (presumably) the MQTT Connect message.&lt;/p&gt;
&lt;p&gt;However, as the Connect message is sent after the TLS handshake, it is encrypted, so I can&amp;#39;t check it for anything weird.&lt;/p&gt;
&lt;p&gt;How have you configured your broker?&lt;/p&gt;
&lt;p&gt;In most cases I coud on the internet with the same error ended up being configuration errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/368864?ContentTypeID=1</link><pubDate>Fri, 20 May 2022 15:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6037eb3-de00-4f73-854f-ab6bfd64adbd</guid><dc:creator>leo_nam</dc:creator><description>&lt;p&gt;I have a modem trace from the server side (Amazon Linux 2), I didn&amp;#39;t save any of the ones I made client side (Nordic).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/server_5F00_pcap.pcap"&gt;devzone.nordicsemi.com/.../server_5F00_pcap.pcap&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I was wondering if I&amp;#39;d get something different if I did a trace from the server side but I didn&amp;#39;t notice any difference. Let me know if you still need one from the client side and I will get it to you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: I upgraded my broker to 2.0.11 but to do that I changed to a ubuntu server. However, same output from the server: &amp;quot;Client &amp;lt;unknown&amp;gt; disconnected due to protocol error.&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the pcap from the nordic client.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/client_5F00_trace.pcapng"&gt;devzone.nordicsemi.com/.../client_5F00_trace.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/368855?ContentTypeID=1</link><pubDate>Fri, 20 May 2022 14:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8bd6282-8bd2-439b-978d-c0b1a9badede</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="leo_nam"]We&amp;#39;ve gotten past the error 95 by upgrading our Mosquitto broker from 1.4.x to 1.6.10[/quote]
&lt;p&gt;That&amp;#39;s great to hear!&lt;/p&gt;
[quote user="leo_nam"]But now the error I&amp;#39;m getting is[/quote]
&lt;p&gt;Do you have a modem trace showing this error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/368466?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 18:09:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc01e270-0a55-4142-bd78-fe57d40d2d9e</guid><dc:creator>leo_nam</dc:creator><description>&lt;p&gt;Hello Didrik,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve gotten past the error 95 by upgrading our Mosquitto broker from 1.4.x to 1.6.10 which couldnt be done until we moved the broker to a newer version of AWS (Amazon Linux 2). The new broker has the required cipher suites for a tls connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But now the error I&amp;#39;m getting is&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4628.output.txt"&gt;devzone.nordicsemi.com/.../4628.output.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;on the client side.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And on the broker side I see:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;New connection from &amp;lt;ip address&amp;gt; on port 8883.&lt;/p&gt;
&lt;p&gt;Client &amp;lt;unknown&amp;gt; disconnected due to protocol error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m able to connect to the broker using the mosquitto_sub command.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/368423?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 14:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acb2b5dd-b867-4d4a-aa33-8731caac0c86</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;That should be enough to enable SNI, though I can&amp;#39;t see that it is enabled in the .pcap you shared.&lt;/p&gt;
&lt;p&gt;Could you share the full URL of your server (either here or in a private message), so I can see what TLS features the server requires/supports?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/368071?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 13:43:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cc35a95-4165-40ff-bda8-23b5b387594a</guid><dc:creator>flau</dc:creator><description>&lt;p&gt;Here is the tls_cfg in the main.c.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#if defined(CONFIG_MQTT_LIB_TLS)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;struct mqtt_sec_config *tls_cfg = &amp;amp;(client-&amp;gt;transport).tls.config;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;static sec_tag_t sec_tag_list[] = { CONFIG_MQTT_TLS_SEC_TAG };&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;client-&amp;gt;transport.type = MQTT_TRANSPORT_SECURE;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;tls_cfg-&amp;gt;peer_verify = CONFIG_MQTT_TLS_PEER_VERIFY;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;tls_cfg-&amp;gt;cipher_count = 0;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;tls_cfg-&amp;gt;cipher_list = NULL;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;tls_cfg-&amp;gt;sec_tag_count = ARRAY_SIZE(sec_tag_list);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;tls_cfg-&amp;gt;sec_tag_list = sec_tag_list;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;tls_cfg-&amp;gt;hostname = CONFIG_MQTT_BROKER_HOSTNAME;&lt;/p&gt;
&lt;p&gt;#if defined(CONFIG_NRF_MODEM_LIB)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;tls_cfg-&amp;gt;session_cache = IS_ENABLED(CONFIG_MQTT_TLS_SESSION_CACHING) ?&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;TLS_SESSION_CACHE_ENABLED :&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;TLS_SESSION_CACHE_DISABLED;&lt;br /&gt; #else&lt;br /&gt; /* TLS session caching is not supported by the Zephyr network stack */&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;tls_cfg-&amp;gt;session_cache = TLS_SESSION_CACHE_DISABLED;&lt;/p&gt;
&lt;p&gt;#endif&lt;/p&gt;
&lt;p&gt;#else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;client-&amp;gt;transport.type = MQTT_TRANSPORT_NON_SECURE;&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And in prj.conf, I have&lt;/p&gt;
&lt;p&gt;CONFIG_MQTT_BROKER_HOSTNAME=&amp;quot;ec2-xxx-xxx-xxx-xxx.ca-central-1.compute.amazonaws.com&amp;quot;&lt;br /&gt;CONFIG_MQTT_BROKER_PORT=8883&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Floyd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/368064?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 13:09:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be75fc14-083b-4ec6-80bb-cee0d6188e4c</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Do you set the hostname in the tls_config struct?&lt;/p&gt;
&lt;p&gt;Your server/AWS probably requires SNI support to route the packets correctly. You enable SNI by adding the hostname in the tls_config struct.&lt;/p&gt;
[quote user="flau"]If we set tls_cfg-&amp;gt;cipher_count = 0 and&amp;nbsp;tls_cfg-&amp;gt;cipher_list = NULL, does it mean the modem will not use any of the 15 cipher suites?[/quote]
&lt;p&gt;If the cipher_count is 0, those fields are ignored, and the stack will use all supported cipher suites.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/367939?ContentTypeID=1</link><pubDate>Sun, 15 May 2022 22:39:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fb968b4-0063-437b-a9b4-387c1a2bf55c</guid><dc:creator>flau</dc:creator><description>&lt;p&gt;We are running modem firmware v1.3.1.&amp;nbsp; I suppose that means we have 15 different cipher suites to choose from.&amp;nbsp; Am I correct?&lt;/p&gt;
&lt;p&gt;If we change the cipher suite of our broker to match with one that is available with the nRF9160, what else do we need to do other than restart the broker?&amp;nbsp; Do we need to generate a new sets of certificates, etc.?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If we set tls_cfg-&amp;gt;cipher_count = 0 and&amp;nbsp;tls_cfg-&amp;gt;cipher_list = NULL, does it mean the modem will not use any of the 15 cipher suites?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/367709?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 18:03:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f104f4d-84d1-4276-a769-baef2df0fc8c</guid><dc:creator>leo_nam</dc:creator><description>&lt;p&gt;I was unable to connect to the broker with the nRF9160.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/367702?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 16:00:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a67a4b79-591b-4bc2-84c4-7e4b0e02324e</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="leo_nam"]I tried restarting the broker with a cipher that&amp;#39;s available in both the mosquitto_sub and nrf modem cipher suite by adding &amp;#39;ciphers ECDHE-ECDSA-AES128-SHA256&amp;#39; to the mosquitto.conf but then i got the no shared cipher message when using mosquitto_sub. I&amp;#39;m not really sure where to go from here[/quote]
&lt;p&gt;Were you able to connect to the broker with the nRF9160 after changing the cipher suite of the broker?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/367482?ContentTypeID=1</link><pubDate>Wed, 11 May 2022 18:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e521ecf-9e5e-46f3-a168-bd42e65f6cf9</guid><dc:creator>leo_nam</dc:creator><description>&lt;p&gt;Hello, I&amp;#39;m working with flau on this problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf9160_5F00_error95_5F00_trace.pcapng"&gt;devzone.nordicsemi.com/.../nrf9160_5F00_error95_5F00_trace.pcapng&lt;/a&gt;&amp;nbsp;This is the trace of the modem when it receives the &amp;#39;mqtt_connect -95&amp;#39; error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And from the server side the broker outputs:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;OpenSSL Error: error:1408A0C1:SSL routines: ssl3_get_client_hello:no shared cipher&lt;/p&gt;
&lt;p&gt;I ran another trace while connecting successfully to the broker using mosquitto_sub command on powershell and when looking at the trace I get a &amp;#39;Server Hello&amp;#39; with Cipher Suite: TLS_RSA_WITH_AES_256_GCM_SHA384 (0x009d) which isn&amp;#39;t supported based on&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/nRF9160/Download#infotabs"&gt;https://www.nordicsemi.com/Products/nRF9160/Download#infotabs&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried restarting the broker with a cipher that&amp;#39;s available in both the mosquitto_sub and nrf modem cipher suite by adding &amp;#39;ciphers ECDHE-ECDSA-AES128-SHA256&amp;#39; to the mosquitto.conf but then i got the no shared cipher message when using mosquitto_sub. I&amp;#39;m not really sure where to go from here.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/366765?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 14:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f887a379-b18a-4b91-aee2-74cfca0e874f</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="flau"]Does Trace Collector v2 work on custom board, or nRF9160DK only?&amp;nbsp;[/quote]
&lt;p&gt;It should work for any boards that has a serial port.&lt;/p&gt;
[quote user="flau"]We put more log messages in the code (mainly in mqtt.c and mqtt_transport_socket_tls.c) and found that there is an error when calling the zsock_connect funcation.&amp;nbsp; After that an error when calling the mqtt_transport_connect function.&amp;nbsp; And finally the mqtt_connect -95 error.[/quote]
&lt;p&gt;Yes, that&amp;#39;s where it comes from. But to know why, we need to inspect the traffic between the modem and the server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/366314?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 16:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cc20b2e-53a6-45a5-8295-1ce158932c60</guid><dc:creator>flau</dc:creator><description>&lt;p&gt;We put more log messages in the code (mainly in mqtt.c and mqtt_transport_socket_tls.c) and found that there is an error when calling the zsock_connect funcation.&amp;nbsp; After that an error when calling the mqtt_transport_connect function.&amp;nbsp; And finally the mqtt_connect -95 error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/366310?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 15:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa53817f-3398-4c75-a99f-ccbc384a9d3c</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="flau"]Does Trace Collector v2 work on custom board, or nRF9160DK only?&amp;nbsp; I have the tool installed but it only detects my nRF9160DK.[/quote]
&lt;p&gt;It should be able to detect any serial devices, though I don&amp;#39;t have a lot of non-Nordic boards to test with.&lt;/p&gt;
&lt;p&gt;I have asked the developers to comment.&lt;/p&gt;
&lt;p&gt;However, the Trace Collector V2 is also able to decode already captured traces. So you can use the &amp;quot;old&amp;quot; Trace Collector to capture the trace, then decode it with the Trace Collector v2 (when you haven&amp;#39;t selected a device, there is a button for converting raw traces to pcap).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/366229?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 12:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ffadb1e-8f0f-4420-b3a2-b6245256f9a8</guid><dc:creator>flau</dc:creator><description>&lt;p&gt;Thanks Didrik.&amp;nbsp; Does Trace Collector v2 work on custom board, or nRF9160DK only?&amp;nbsp; I have the tool installed but it only detects my nRF9160DK.&lt;/p&gt;
&lt;p&gt;Anyway, I turned on the debug log on my board hoping to see more debug messages.&amp;nbsp; Here is the terminal output.&lt;/p&gt;
&lt;p&gt;[00:00:00.266,174] &amp;lt;inf&amp;gt; MQTT_SIMPLE: MQTT started&lt;br /&gt;[00:00:00.271,209] &amp;lt;inf&amp;gt; &lt;span&gt;MQTT_SIMPLE&lt;/span&gt;: Provisioning certificates&lt;br /&gt;[00:00:01.728,515] &amp;lt;inf&amp;gt; &lt;span&gt;MQTT_SIMPLE&lt;/span&gt;: Disabling PSM and eDRX&lt;br /&gt;[00:00:01.739,288] &amp;lt;inf&amp;gt; &lt;span&gt;MQTT_SIMPLE&lt;/span&gt;: LTE Link Connecting&lt;br /&gt;[00:00:15.933,807] &amp;lt;inf&amp;gt; &lt;span&gt;MQTT_SIMPLE&lt;/span&gt;: LTE Link Connected&lt;br /&gt;[00:00:17.322,906] &amp;lt;inf&amp;gt; &lt;span&gt;MQTT_SIMPLE&lt;/span&gt;: IPv4 Address found xxx.xxx.215.238&lt;br /&gt;[00:00:17.330,444] &amp;lt;inf&amp;gt; &lt;span&gt;MQTT_SIMPLE&lt;/span&gt;: TLS enabled&lt;br /&gt;[00:00:17.335,815] &amp;lt;dbg&amp;gt; net_mqtt_sock_tls.mqtt_client_tls_connect: (0x20014da0): Created socket 1&lt;br /&gt;[00:00:17.953,979] &amp;lt;err&amp;gt; &lt;span&gt;MQTT_SIMPLE&lt;/span&gt;: mqtt_connect -95&lt;br /&gt;[00:00:17.959,625] &amp;lt;inf&amp;gt; &lt;span&gt;MQTT_SIMPLE&lt;/span&gt;: Reconnecting in 30 seconds&lt;br /&gt;[00:00:47.974,792] &amp;lt;dbg&amp;gt; net_mqtt_sock_tls.mqtt_client_tls_connect: (0x20014da0): Created socket 1&lt;br /&gt;[00:00:48.845,336] &amp;lt;err&amp;gt; &lt;span&gt;MQTT_SIMPLE&lt;/span&gt;: mqtt_connect -95&lt;br /&gt;[00:00:48.850,982] &amp;lt;inf&amp;gt; &lt;span&gt;MQTT_SIMPLE&lt;/span&gt;: Reconnecting in 30 seconds&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Floyd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT with TLS on AWS EC2</title><link>https://devzone.nordicsemi.com/thread/366176?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 11:00:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3de6160b-5d2c-4275-9e9a-727b68cc9f76</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Am I missing anything?&amp;nbsp; What have I done wrong?[/quote]
&lt;p&gt;It is hard to say without seeing the IP traffic.&lt;/p&gt;
&lt;p&gt;You can get the IP traffic if you capture a &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/intro.html"&gt;modem trace&lt;/a&gt; with the Trace Collector v2, and use either the &amp;quot;pcap&amp;quot; or &amp;quot;live&amp;quot; options.&lt;/p&gt;
&lt;p&gt;My current guesses though, is that you either have written the wrong certificate to the device, or you are not providing the hostname of the server for SNI.&lt;/p&gt;
&lt;p&gt;Again, a modem trace would be very helpful here.&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>