Fixing syncthing apt repository
It’s been six weeks since the Let’s Encrypt certificate expiration debacle and I’m still finding errors. This one today from running apt update
Err:3 https://apt.syncthing.net syncthing Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 82.196.13.137 443]
Reading package lists... Done
E: The repository 'https://apt.syncthing.net syncthing Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
The problem is syncthing is signing with a certificate in the expired chain. Or rather used to be. I tried various cargo cult solutions that did not work. The one that did was running apt install ca-certificates. That package was already installed but the command also forces an upgrade. Probably just running apt upgrade would have fixed it so the next apt update would have worked, too.
I’m fascinated by all the systemic failures from the certificate expiry. The Let’s Encrypt team thought carefully and tried really hard to head off problems. They failed. I found this one post-mortem but honestly there’s a masters thesis in systems complexity in analyzing all the global failures.