On a nrf5340/nrf7002 custom board, using NCS 2.9.0, I am trying to get a reliable https connection to different backend servers.
I'm having trouble with the TLS handshake due to the server certificate validation.
My medtls setup is using nrf_security (which sadly then doesn't let me restrict the crypto options to save some flash, but thats a different problem)
I have already dealt with the SNI issue, and enlarged the SSL context and MSI buffers to cope with 4K RSA keys:
These are then used each time the code attempts to connect to a https server, via setsockopt() with TLS_PEER_VERIFY (REQUIRED) and TLS_SEC_TAG_LIST.