scandum / tintin

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

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

Open rigrig opened 3 weeks ago

rigrig commented 3 weeks 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 weeks ago

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