scandum / tintin

TinTin++, aka tt++, is an extensible console MUD client.
https://tintin.mudhalla.net
GNU General Public License v3.0
204 stars 56 forks source link

Extend SSL "about to expire" to 30 days #228

Closed rigrig closed 1 month ago

rigrig commented 3 months ago

Discworld MUD uses Let's Encrypt certificates, which are valid for 90 days, and auto-renewed after 60 days. That means there are still 30 days left for the old certificate, and TinTin++ refuses to connect unless you manually delete the old cert.

Changing https://github.com/scandum/tintin/blob/e23cfe3c183eaa4514cf89e6dabe1c985de83a89/src/ssl.c#L315 from if (err || t < -7*24*3600) to if (err || t < -30*24*3600) would solve that.

scandum commented 3 months ago

Thanks, I added your fix to the beta. :-)

rigrig commented 1 month ago

The certificate rolled over again, and the last beta connected successfully :tada: