Ai-Thinker-Open / GPRS_C_SDK

Ai-Thinker A9/A9G GPRS (with GPS(A9G)) module C development SDK
https://ai-thinker-open.github.io/GPRS_C_SDK_DOC
MIT License
449 stars 235 forks source link

How to load ssl certificates from server on MQTT client rather than hardcode. #527

Closed anand-010 closed 1 year ago

anand-010 commented 1 year ago

I want to connect to a secure mqtt server through a9g module but in the example code the certificates are hardcoded what if the certificate expires. it's not applicable for a long run product. any otherway to fetch the certificates from the server and secure MQTT client. Please share code if possible . Thank you for your suggestion.