I suddenly get certificate errors when trying to check for updates.
apt update && apt full-upgrade
Err:1 https://deb.debian.org/debian bullseye InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 199.232.182.132 443]
Err:2 https://deb.debian.org/debian bullseye-updates InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 199.232.182.132 443]
Err:3 https://deb.debian.org/debian-security bullseye-security InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 199.232.182.132 443]
Err:4 https://deb.debian.org/debian bullseye-backports InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 199.232.182.132 443]
Err:5 https://download.webmin.com/download/repository sarge InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 108.60.199.109 443]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch https://deb.debian.org/debian/dists/bullseye/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 199.232.182.132 443]
W: Failed to fetch https://deb.debian.org/debian/dists/bullseye-updates/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 199.232.182.132 443]
W: Failed to fetch https://deb.debian.org/debian-security/dists/bullseye-security/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 199.232.182.132 443]
W: Failed to fetch https://deb.debian.org/debian/dists/bullseye-backports/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 199.232.182.132 443]
W: Failed to fetch https://download.webmin.com/download/repository/dists/sarge/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 108.60.199.109 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
You could have used search function within this forum to get an answer already. Because this is a known issue at global Debian server side. Pls try follow
sed -i 's/https:/http:/' /etc/apt/sources.list
apt update
apt upgrade
sed -i 's/http:/https:/' /etc/apt/sources.list
apt update
I did the last update check last week and it was fine.
Today is the first time I encountered this.
Also webmin was failing.
Err:5 https://download.webmin.com/download/repository sarge InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 108.60.199.109 443]
If I understood correct, there is a broken certificate chain somewhere at Debian repository server side. But that’s out of our control. We simply could switch to HTTPS to get apt update done. Usually after completing apt upgrade it should be fine to switch back to HTTPS. Not 100% sure but maybe cache to be cleaned as well before switching back
I guess the question you did not answer. You completed apt update && apt upgrade? Correct? And is it still failing on Debian repository only or as well on Webmin repository after upgrade completed?
ii libnet-ssleay-perl 1.88-3+b1 amd64 Perl module for Secure Sockets Layer (SSL)
ii libssl1.1:amd64 1.1.1k-1+deb11u1 amd64 Secure Sockets Layer toolkit - shared libraries
ii libxmlsec1-openssl:amd64 1.2.31-1 amd64 Openssl engine for the XML security library
ii libzstd1:amd64 1.4.8+dfsg-2.1 amd64 fast lossless compression algorithm
ii openssl 1.1.1k-1+deb11u1 amd64 Secure Sockets Layer toolkit - cryptographic utility
ii perl-openssl-defaults:amd64 5 amd64 version compatibility baseline for Perl OpenSSL packages
Could you try switching back to HTTPS pls. We got feedback from Debian System Administrators and issue should have been fixed. At least for their repository.
The issue here was the ssl inspection of our Fortigate (at newest firmware and fully updated).
It cancelled the connections due to the certificate issues.
We had to disable ssl inspection for the time being.
It is not only old Ubuntu etc installations but up to date firewalls.
As I don’t have a login to post there you might inform them.
Personally I don’t have any issues to open the key. Could you have a look at your Firewall if it is doing anything with that key? Maybe some package inspection?