<?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>How to use SNI with DTLS 1.2 on CoAP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93370/how-to-use-sni-with-dtls-1-2-on-coap</link><description>Hello, 
 I only want to know if it is possible to enable and configure the Server Name Indication (SNI) for DTLS on BSD sockets and CONFIG_NET_SOCKETS_OFFLOAD=y (not using the Zephyr IP stack) in a CoAP communication? 
 If yes, how can I configure it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Nov 2022 11:54:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93370/how-to-use-sni-with-dtls-1-2-on-coap" /><item><title>RE: How to use SNI with DTLS 1.2 on CoAP</title><link>https://devzone.nordicsemi.com/thread/393845?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 11:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5099d8f5-1943-409e-bce0-971e8b41b194</guid><dc:creator>Christian22</dc:creator><description>&lt;p&gt;Hi Achim,&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;It works. I have tested it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use SNI with DTLS 1.2 on CoAP</title><link>https://devzone.nordicsemi.com/thread/393099?ContentTypeID=1</link><pubDate>Sat, 29 Oct 2022 06:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:347afdfb-6250-4789-9d21-9ce65d89ae7c</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;According &lt;a href="https://academy.nordicsemi.com/topic/lesson-5-exercise-2/"&gt;CoAP over DTLS&lt;/a&gt; 7.2, &lt;code&gt;TLS_HOSTNAME is supported and may do the job.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err = setsockopt(sock, SOL_TLS, TLS_HOSTNAME, CONFIG_COAP_SERVER_HOSTNAME,
	 strlen(CONFIG_COAP_SERVER_HOSTNAME));
if (err) {
	LOG_ERR(&amp;quot;Failed to setup TLS hostname (%s), errno %d\n&amp;quot;,
		CONFIG_COAP_SERVER_HOSTNAME, errno);
	return -errno;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;(I haven&amp;#39;t tested it on my own.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>