<?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>LwM2M Client Utils Certificate Usage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94709/lwm2m-client-utils-certificate-usage</link><description>Hi, 
 
 I m trying to set up a LwM2M Client with Security Mode 2. I m using the LwM2M client utils and add some changes to the LwM2M Client sample. 
 In the function lwm2m_setup() i replaced 
 
 lwm2m_security_set_psk(0, CONFIG_APP_LWM2M_PSK, sizeof(CONFIG_APP_LWM2M_PSK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Dec 2022 13:30:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94709/lwm2m-client-utils-certificate-usage" /><item><title>RE: LwM2M Client Utils Certificate Usage</title><link>https://devzone.nordicsemi.com/thread/399946?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2022 13:30:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d5e2af1-7c5d-4183-939c-0a825c1bc69e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt;In the function lwm2m_setup() i replaced&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;lwm2m_security_set_psk(0, CONFIG_APP_LWM2M_PSK, sizeof(CONFIG_APP_LWM2M_PSK), true, endpoint_name);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;with&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;lwm2m_security_set_certificate&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;client_certificate&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;sizeof&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;client_certificate&lt;/span&gt;&lt;span&gt;), &lt;/span&gt;&lt;span&gt;client_key&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;sizeof&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;client_key&lt;/span&gt;&lt;span&gt;), &lt;/span&gt;&lt;span&gt;server_certificate&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;sizeof&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;server_certificate&lt;/span&gt;&lt;span&gt;));&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;It&amp;#39;s not supported by the modem at this point. See the comments in this PR:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/8943"&gt;https://github.com/nrfconnect/sdk-nrf/pull/8943&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>