cotestatnt / AsyncTelegram2

Powerful, flexible and secure Arduino Telegram BOT library. Hardware independent, it can be used with any MCU capable of handling an SSL connection.
MIT License
83 stars 25 forks source link

Certificate validation and expiry #138

Open moldabekov opened 2 months ago

moldabekov commented 2 months ago

Hello!

First off, excellent work. My ESP8266 is running much quicker with your TG bot library. However, I'm quite concerned about the embedded TLS certificate (tg_certificate.h) for api.telegram.org. I understand it's likely in place to reduce the overhead for connection time. But what occurs when the certificate expires, which is expected in September 2024?

I am planning to put my device in remote distant place, and now thinking what workarounds or fixes can be applied to avoid any service interruptions.

zenbooster commented 1 month ago

Hello! in September 2024?

Ha-ha!! ))

Unable to connect to Telegram server
(SSLClient)(SSL_ERROR)(m_start_ssl): Failed to initlalize the SSL layer
(SSLClient)(SSL_ERROR)(m_print_br_error): Certificate is expired or not yet valid.

Unable to connect to Telegram server
(SSLClient)(SSL_ERROR)(m_start_ssl): Failed to initlalize the SSL layer
(SSLClient)(SSL_ERROR)(m_print_br_error): Certificate is expired or not yet valid.