I can run your MQTTS example and it connects to test.mosquitto.org fine. But I can generate the same trustanchor file you are using for test.mosquitto.org. Yours works, mine doesn't. I'm just putting test.mosquitto.org or mosquitto.org in https://openslab-osu.github.io/bearssl-certificate-utility/ but it produces something that doesn't work.
Can you tell me how you create your trustanchor file and if it still produces the one in your example?
First, thanks for putting the library together.
I can run your MQTTS example and it connects to test.mosquitto.org fine. But I can generate the same trustanchor file you are using for test.mosquitto.org. Yours works, mine doesn't. I'm just putting test.mosquitto.org or mosquitto.org in https://openslab-osu.github.io/bearssl-certificate-utility/ but it produces something that doesn't work.
Can you tell me how you create your trustanchor file and if it still produces the one in your example?