nRF7002dk TLS MQTT

Hello, I am trying to connect to an MQTT server using PEM certs and mqtt helper, however I get an error: -22 from mqtt_helper: mqtt_connect I have traced the issue to zsock_connect. From my understanding, this is due to the certificate not being in .der format, which is due to a conflict between CONFIG_MBEDTLS_PEM_CERTIFICATE_FORMAT and CONFIG_WPA_SUPP which can not be used together. This seems odd since most routers will require WPA, I am curious if I am missing something here?

The PEM certs work fine on a 9160dk since its cellular.

Parents Reply
  • Hey, Sigurd thank you for your response. I have it resolved now, a couple of steps:

    1) I converted my certs to DER and added them manually,  CONFIG_MBEDTLS_PEM_CERTIFICATE_FORMAT does not seem to work, at-least with WPA enabled.

    2) I rolled back to 2.5.1 from 2.6.1 it almost seems like 2.6.1 requires the _ns built with CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y  for TLS certs to be retrieved properly via SEC tags.

Children
No Data
Related