i playing with mqtt and ESP32 CHIP. I would like to connect in most secure way so i thought maybe try with TLS connection at the beginning and later i could also encrypt data which is sent to broker.
I successfully managed to connect with mosquitto on linux using /etc/ssl/certs path to CA certificates.
I would like now to copy the certificate i need into flash memory that my app written in C can use it while it connects to broker on port 8883. How can i guess which one CA is the right one i need from /etc/ssl/certs ?
Many thanks in advance, Marcin