Hi,
I am trying to use the Nordic security backend support from nrf Connect SDK to connect to HTTP and MQTT with TLS.
Below are my steps:
1) do certificate provisioning (client private key, client public cert and server CA cert).
2) Resolve hostname and get the IPv4 address.
3) Create TLS socket and set the following options:
- peer verify = 1 (optional)
- TLS security tag
- TLS hostname
4) Connect to the server using "connect()".
However the connect() return -45 which from the errno.h is EOPNOTSUPP (Operation not supported on socket).
Is it possible to turn on the mbedTLS debug print via mbedtls_debug_set_threshold() function so that I can investigate which part of the TLS handshaking goes wrong?