Net_Pres with wolfSSL. How to load a certificate.
Harmony v3 (just updated to all of the latest packages)
MPLAB X v5.40
I am trying to connect to a website and authenticate the server using an x.509 certificate using TLS 1.3 security. Eventually I will be connecting to my own server and just passing sensor data, but this is a good starting point.
I am using the wolfssl_tcp_client demo app to get a feel for how the security should work before adding anything to my own project. This demo app uses the net_pres library as well as the third party wolfSSL library. I see that net_pres has a couple functions available for reading certificates from a certificate store:
But I don't see how certificates are loaded in the store.
The wolfSSL (v4.5.0) readme specifies that wolfSSL by default will not connect to a server without authenticating using CA cert, so I can't even connect to a secure website without a CA cert. I'm not sure how to disable this requirement for testing purposes either.
So the question is how/where do I load the certificates? Is the net_pres certificate store even where they should go? Or do I directly load the cert into the wolfSSL library?
Any suggestions would be appreciated.