mbedTLS setKnownKey(const PublicKey *pk)

I am migrating code from esp8266 to esp32-c3. In the old code Bearssl was used by providing a known trusted public key that is saved in flash memory at factory

// Assume a given public key, don’t validate or use cert info at all
void setKnownKey(const PublicKey *pk)

Now in esp32-c3 that uses mbedTLS, there is no such API. or is there? The esp needs only to talk to one server and I do not want the hassle of CA, certs… etc


how you can see the Mbed TLS category of Mbed support forum is not very active, please look at this topic .

BR, Jan