Hello FreeRTOS friends,
After successfully implementing the TCP PLUS + coreHTTP example with plaintext, we are trying to make a request to a webpage.
This involves implementing MBEDTLS, and this is where we are encountering issues. We start from mbedtls within our project.
1- To make an HTTPS request with MBEDTLS, do I need the pRootCa, pClientCert, pPrivateKey?
I am trying to make a request without the certificate, that is, without implementing this part of the code. Is this possible?:
xNetworkCredentials.disableSni = democonfigDISABLE_SNI;
/* Set the credentials for establishing a TLS connection. */
xNetworkCredentials.pRootCa = (const unsigned char *)democonfigROOT_CA_PEM;
xNetworkCredentials.rootCaSize = sizeof(democonfigROOT_CA_PEM);
xNetworkCredentials.pClientCert = (const unsigned char *)democonfigCLIENT_CERTIFICATE_PEM;
xNetworkCredentials.clientCertSize = sizeof(democonfigCLIENT_CERTIFICATE_PEM);
xNetworkCredentials.pPrivateKey = (const unsigned char *)democonfigCLIENT_PRIVATE_KEY_PEM;
xNetworkCredentials.privateKeySize = sizeof(democonfigCLIENT_PRIVATE_KEY_PEM);
Console:
I want to make a request to any HTTP server, not to a server that requires mutual authentication.
Is there any demo for this specific functionality?
Thank you very much for your help.