ncs v3.1.1 SLM on nrf9151, how to change cipher list preference?

Hello,

I using ncs v3.1.1 SLM on nrf9151 to send messages to a CoAP server. It seems nrf9151 by default uses AES_128_CBC_SHA256 even though on the server side, we have given a higher priority to AES_CCM_8, the modem doesn't follow it.

Can you please let me know how I can change the priority to AES_CCM_8 in SLM application?

Regards,

Roya

Parents
  • > It seems nrf9151 by default uses AES_128_CBC_SHA256 even though on the server side, we have given a higher priority to AES_CCM_8, the modem doesn't follow it.

    Well, let's sort it out:

    In the DTLS handshake:

    - the client sends a list of proposed cipher suites in the Client_Hello

    - the server selects one cipher suite out of that list and sends that back in the Server_Hello

    > even though on the server side, we have given a higher priority to AES_CCM_8

    That maybe the case. But the "overall priority" the server used to select a cipher suite may be a mix of the client and server priorities. It's very common for implementations, to align with the client's priority.

    Without knowing, which implementation is used on the server side, there are two ways to go:

    - limit the client to send only "TLS-PSK-WITH-AES-128-CCM-8" and not "TLS-PSK-WITH-AES-128-CBC-SHA256". 

    - limit the server to support only "TLS-PSK-WITH-AES-128-CCM-8" and not "TLS-PSK-WITH-AES-128-CBC-SHA256".

    Hope that helps.

  • Hi Achim,

    Thank you for your prompt reply.

    I am working on the client side with an application such as slm_shell sending AT commands to V3.1.1 SLM on nrf9151.

    However, #XSSOCKETOPT option AT_TLS_CIPHERSUITE_USED is get-only.

    Is it possible the change the priority of cipher suites directly in V3.1.1 SLM firmware? If so, can you point to where in the code it should be applied?

    Regards,

Reply
  • Hi Achim,

    Thank you for your prompt reply.

    I am working on the client side with an application such as slm_shell sending AT commands to V3.1.1 SLM on nrf9151.

    However, #XSSOCKETOPT option AT_TLS_CIPHERSUITE_USED is get-only.

    Is it possible the change the priority of cipher suites directly in V3.1.1 SLM firmware? If so, can you point to where in the code it should be applied?

    Regards,

Children
Related