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 Reply
  • Hi Achim,

    Thank you, the sample was a helpful hint.

    I limited the ciphersuite_list to:

        static int ciphersuites[] = {
            0xC0A8  /* TLS_PSK_WITH_AES_128_CCM_8 */
        };
        ret = zsock_setsockopt(sock->fd, SOL_TLS, TLS_CIPHERSUITE_LIST, ciphersuites,
                       sizeof(ciphersuites));
    in slm_at_socket.c -> do_secure_socket_open().
    Regards,
Children
Related