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), true, endpoint_name);
with
lwm2m_security_set_certificate(0, client_certificate, sizeof(client_certificate), client_key, sizeof(client_key), server_certificate, sizeof(server_certificate));
If i run it i get follwing error:
net_lwm2m_registry: length 867 is too long for res instance 3 data
The max data length for the Public Key or Identity Ressource is set to 128.
How can i change this value and should not the function lwm2m_security_set_certificate() take care of it? If you use Security Mode 2: Certficate Mode it is quite normal that the Public Key or Identity Field is bigger then 128.
Hope someone can clarify this issue for me