<?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>Support 2 simultaneous secure listening sockets. How to configure mbedTLS from nordic.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112258/support-2-simultaneous-secure-listening-sockets-how-to-configure-mbedtls-from-nordic</link><description>Hello All, 
 I am currently working with sdk-nrf 2.3.0 and nrf9160dk board. My requirement is to create 2 simultaneous secure listening sockets. Currently I am able to create 2 raw sockets and establish the communication. 
 I am using given sample code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jul 2024 12:27:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112258/support-2-simultaneous-secure-listening-sockets-how-to-configure-mbedtls-from-nordic" /><item><title>RE: Support 2 simultaneous secure listening sockets. How to configure mbedTLS from nordic.</title><link>https://devzone.nordicsemi.com/thread/492695?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 12:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b448a4a-271d-4c6d-98eb-7a1bf225ff1e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, Håkon is currently out of office, and I have assigned the ticket to me. Will get back to you within tomorrow.&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><item><title>RE: Support 2 simultaneous secure listening sockets. How to configure mbedTLS from nordic.</title><link>https://devzone.nordicsemi.com/thread/491971?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 07:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a84917f8-d5ae-45c1-91a9-a9eee28b528d</guid><dc:creator>AR Jadhav</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;/p&gt;
&lt;p&gt;I was able to create a secure connection over the sockets with the above given example and configs.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would like to ask few more questions on this.&lt;/p&gt;
&lt;p&gt;1. Can you please let me know if this example uses offloaded sockets?&lt;/p&gt;
&lt;p&gt;2. And how many number of listening sockets I can create with offloaded sockets?&lt;/p&gt;
&lt;p&gt;3. How do I create native sockets without offloading and support TLS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support 2 simultaneous secure listening sockets. How to configure mbedTLS from nordic.</title><link>https://devzone.nordicsemi.com/thread/490671?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 13:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75ee838f-da05-45e2-a47a-24338b5b77c7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In terms of socket creation, you can have a look at the init process here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.3.0/samples/nrf9160/https_client/src/main.c#L180-L191"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.3.0/samples/nrf9160/https_client/src/main.c#L180-L191&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This opens up a secure socket and sets the peer verification (ie. domain name verification)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support 2 simultaneous secure listening sockets. How to configure mbedTLS from nordic.</title><link>https://devzone.nordicsemi.com/thread/490645?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 12:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4f35998-6fa5-47cc-8362-7b00ce145d1e</guid><dc:creator>AR Jadhav</dc:creator><description>&lt;p&gt;Okay sure, I will check out for the certificates.&lt;br /&gt;Just one suggestion I need, can you please let me know how we can confirm that TLS is enabled, or TLS socket is created at client end.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support 2 simultaneous secure listening sockets. How to configure mbedTLS from nordic.</title><link>https://devzone.nordicsemi.com/thread/490486?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 07:20:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c2338fa-2ce4-4b01-ad0b-175224ecc14e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We do not have guide for that, but if you check stack overflow for instance and search for &amp;quot;issue certificate on local network&amp;quot; - you will find examples of such.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support 2 simultaneous secure listening sockets. How to configure mbedTLS from nordic.</title><link>https://devzone.nordicsemi.com/thread/490372?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 14:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28be0912-d3e4-4ec9-8fb4-c4594622e1eb</guid><dc:creator>AR Jadhav</dc:creator><description>&lt;p&gt;Thanks for the suggestion Hakon.&lt;br /&gt;I am trying out this sample, can you please suggest me which certificate we can use at server end. I am using a sample https-server python file with openssl libraray.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support 2 simultaneous secure listening sockets. How to configure mbedTLS from nordic.</title><link>https://devzone.nordicsemi.com/thread/489673?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 09:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ddbb2de-c37c-4644-9985-a10c271ee22c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have a look at the https_client sample, more specifically the overlay-tfm_mbedtls.conf:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.3.0/samples/nrf9160/https_client/overlay-tfm_mbedtls.conf"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.3.0/samples/nrf9160/https_client/overlay-tfm_mbedtls.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And please note that since the release of ncs v2.3.0, the Digicert G2 certificate has been updated:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/net/https_client/cert/DigiCertGlobalG2.pem"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/net/https_client/cert/DigiCertGlobalG2.pem&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To support more connections, you will need to adjust your mbedtls heap to a higher value, as well as adjusting the amount of sockets (CONFIG_NET_SOCKETS_POLL_MAX&amp;nbsp;/ CONFIG_POSIX_MAX_FDS&amp;nbsp; / CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS needs to be higher)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support 2 simultaneous secure listening sockets. How to configure mbedTLS from nordic.</title><link>https://devzone.nordicsemi.com/thread/489649?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 09:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef5679b5-3d3c-4045-890e-6e9460ad8dbc</guid><dc:creator>AR Jadhav</dc:creator><description>&lt;p&gt;Command used for building the application is:&lt;/p&gt;
&lt;p&gt;west build -p always -b nrf9160dk_nrf9160_ns ./ -- -DCONF_FILE=&amp;quot;prj.conf tls-overlay.conf&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>