TinyGSM icon indicating copy to clipboard operation
TinyGSM copied to clipboard

how to add ssl/tls to TinyGsmClient object.

Open narangmayank opened this issue 2 years ago • 4 comments

I want to connect to secure MQTT broker and that requires me to set the certificates, Earlier I was using Wi-Fi to connect my esp32 to broker with WiFiClientSecure library but now I am planning to achieve the same thing with GSM.

I found this library easy to use and I have setted up the modem quicly, just checking the SSL/TLS part now.

For reference, I am using TTGO SIM7600 module and arduino-esp32 framework.

any help will be much appreciated.

narangmayank avatar Feb 28 '23 15:02 narangmayank

https://github.com/vshymanskyy/TinyGSM/blob/master/examples/HttpsClient/HttpsClient.ino

SRGDamia1 avatar Feb 28 '23 16:02 SRGDamia1

I have gone through the example code but couldn't figure out where to set the https certificates.

narangmayank avatar Feb 28 '23 16:02 narangmayank

If You still use esp32, You can achieve that with that library https://github.com/govorox/SSLClient Combined with tinygsm and Your mqtt client

cezarg1410 avatar Mar 10 '23 13:03 cezarg1410

Yeah, that works fine. do you know any alternative method/library by any chance?

narangmayank avatar Mar 10 '23 15:03 narangmayank