<?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>TLS handshake error -3b00 on nRF7002</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100784/tls-handshake-error--3b00-on-nrf7002</link><description>nrfConnect SDK 2.3.0 
 IDE: VS code 
 Console Error: 
 Connecting to HTTP Server: [00:00:23.982,177] &amp;lt;err&amp;gt; net_sock_tls: TLS handshake error: -3b00 
 
 project setup: 
 I started with the sta example to connect the nrf7002 to wifi Then I pulled in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jun 2023 08:01:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100784/tls-handshake-error--3b00-on-nrf7002" /><item><title>RE: TLS handshake error -3b00 on nRF7002</title><link>https://devzone.nordicsemi.com/thread/433616?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 08:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd095b98-7b0e-4721-a368-ba2e9bc75ec8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again Kyle&lt;/p&gt;
&lt;p&gt;Torbjørn has been working on this issue in the other case I mentioned, and was able to find a fix, although not thoroughly explained that seems to get TLS working by changing the crypto backend used. Please give it a go and see if that helps on your end as well:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100826/nrf7002dk-and-tls-sockets--7100-error/433368"&gt;RE: nRF7002DK and TLS Sockets -7100 error&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Simon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS handshake error -3b00 on nRF7002</title><link>https://devzone.nordicsemi.com/thread/432491?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 10:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff8af027-d3b1-4afa-aa1e-914ddc944224</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Kyle&lt;/p&gt;
&lt;p&gt;Error -0x7100 means that there was bad input parameters to a function. So if this is before or after the invalid PUBKEY error depends on what function returns the&amp;nbsp;&lt;strong&gt;bad input parameter&lt;/strong&gt; error. WIthout knowing the details, since they both are trigged in the handshake process I would think the input parameters are checked before the handshake is started and the fact that the PUBKEY is invalid is discovered.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS handshake error -3b00 on nRF7002</title><link>https://devzone.nordicsemi.com/thread/432103?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 15:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac80a23c-1beb-400f-95b0-eb88d0c27ec7</guid><dc:creator>Kyle1</dc:creator><description>&lt;p&gt;Looks like there will not be a solution on that one until after the summer.&lt;/p&gt;
&lt;p&gt;Do you know if the&amp;nbsp;&amp;nbsp;-0x7100 an error is one that&amp;nbsp;occurs further along in the&amp;nbsp;handshake process than -0x3b00? or&amp;nbsp;which one would get triggered first? Is there&amp;nbsp;a place I could look to find that out?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS handshake error -3b00 on nRF7002</title><link>https://devzone.nordicsemi.com/thread/432019?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 12:50:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0580e0a-1250-4798-85f0-fe96f03663bf</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Unfortunately I didn&amp;#39;t find much more information for you. We don&amp;#39;t have a sample for connecting to a HTTPS server I&amp;#39;m afraid. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100826/nrf7002dk-and-tls-sockets--7100-error"&gt;This case has another DevZone user&lt;/a&gt; struggling with the connecting the nRF7002 to a HTTPS server as well, maybe you get some ideas from there. What we have seen is that setting up domains like &amp;quot;example.com&amp;quot; is simpler than using the&amp;nbsp;&lt;em&gt;big&amp;nbsp;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;domains like &amp;quot;google.com&amp;quot;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS handshake error -3b00 on nRF7002</title><link>https://devzone.nordicsemi.com/thread/431793?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 13:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d778001-5ac9-4508-8b4f-e8baa846ce4a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Kyle&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently researching and asking around internally if we have any sample projects for connecting to an HTTPS server, but it doesn&amp;#39;t seem like it as of yet. I&amp;#39;ll dig some more and get back to you. From what I can see the issue seems to be with configuring the &lt;strong&gt;mbedtls&amp;nbsp;&lt;/strong&gt;and its buffers correctly to work with the added security.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to get back with more details tomorrow. Thank you for your patience!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS handshake error -3b00 on nRF7002</title><link>https://devzone.nordicsemi.com/thread/431240?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 12:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22431426-799a-490d-8f77-ba4dcbf6e344</guid><dc:creator>Kyle1</dc:creator><description>&lt;p&gt;Thanks for the link, I already have that code merged in with the STA example for basic HTTP requests and have that&amp;nbsp;working successfully, however for what I am doing I need to added security&amp;nbsp;using HTTPS, which is where the problem seams to be. The server I am connecting to only allows HTTPS requests.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Would there be something chip side that is not allowing it to connect to any HTTPS server?&lt;/p&gt;
&lt;p&gt;I use tls_credential_add to add the Certificate in the der format for the server I am connecting to and also set socket options (as shown)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Create Socket
	sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TLS_1_2); // IPPROTO_TCP //IPPROTO_TLS_1_2
	if (sock &amp;lt; 0) {
		printk(&amp;quot;Error creating socket\n&amp;quot;);
		return(-1);
	}
	// TLS settings
	sec_tag_t sec_tag_opt[] = {
		CA_CERTIFICATE_TAG,
	};
	setsockopt(sock, SOL_TLS, TLS_SEC_TAG_LIST,
			 sec_tag_opt, sizeof(sec_tag_opt));

	setsockopt(sock, SOL_TLS, TLS_HOSTNAME,
			 SERVER_HOSTNAME, sizeof(SERVER_HOSTNAME));&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS handshake error -3b00 on nRF7002</title><link>https://devzone.nordicsemi.com/thread/431149?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 06:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fa37d88-c045-48e4-b3e0-d3f654eaed59</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Sorry, here&amp;#39;s the GitHub link I referred to:&amp;nbsp;&lt;a href="https://github.com/craigpeacock/Zephyr_WiFi/blob/main/README.md"&gt;https://github.com/craigpeacock/Zephyr_WiFi/blob/main/README.md&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here on DevZone we never speculate or discuss future releases or products, as we strive to focus on the currently available solutions. If you want information on future releases, please contact the regional sales manager (RSM) of your area, as they&amp;#39;ll be able to share info on what&amp;#39;s planned for when, etc. Let me know if you need help reaching out to your local RSM.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS handshake error -3b00 on nRF7002</title><link>https://devzone.nordicsemi.com/thread/431027?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 13:06:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f575484-b8b4-43f6-b564-a9d1b8a52f56</guid><dc:creator>Kyle1</dc:creator><description>&lt;p&gt;Thanks for the response, It looks like the links did not come through though. Is there an ETA for when a official sample project might become available?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TLS handshake error -3b00 on nRF7002</title><link>https://devzone.nordicsemi.com/thread/431019?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 12:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5ffc6b8-de0e-4e78-8e0a-62436da294c9</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The error message &amp;quot;-0x3b00&amp;quot; (&lt;strong&gt;MBEDTLS_ERR_PK_INVALID_PUBKEY&lt;/strong&gt;) points to the pubkey tag or value being invalid. Only RSA and EC are supported here. We don&amp;#39;t have an official sample project doing this for the nRF7002 as of yet, but one of the DevZone users posted this link to his GitHub repo that is a simple Zephyr Wi-Fi code that at least can do http_get and has been tested (by this DevZone user to work for the nRF7002&amp;nbsp;on NCS 2.2.0 and 2.3.0.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>