📖 ~1 min read
Table of contents
Symptom & Impact
HTTPS clients fail verification, breaking package downloads and API integrations.
Environment & Reproduction
Common on long-lived hosts with stale ca-certificates package and custom trust anchors.
Root Cause Analysis
System trust bundle lacks required intermediate/root certificates for remote endpoints.
Quick Triage
Check system time and certificate chain details before modifying trust settings.
Step-by-Step Diagnosis
Run: date -u; openssl s_client -connect repo.debian.org:443 -servername repo.debian.org /dev/null | openssl x509 -noout -issuer -subject -dates; dpkg -l ca-certificates.

Solution – Primary Fix
Run: sudo apt update; sudo apt install –reinstall ca-certificates openssl -y; sudo update-ca-certificates; retry TLS connection.
Still having issues? Our IT Consulting team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Install organization CA under /usr/local/share/ca-certificates and refresh trust chain centrally.
Verification & Acceptance Criteria
curl and package managers complete TLS handshakes without certificate verify errors.
Rollback Plan
Remove newly added custom CAs and restore previous trusted cert bundle if misissued.
Prevention & Hardening
Patch ca-certificates regularly and monitor certificate expiry for critical endpoints.
Related Errors & Cross-Refs
Related to x509 unknown authority and certificate has expired messages.
Related tutorial: View the step-by-step tutorial for Debian 11.
View all Debian 11 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Debian ca-certificates package documentation and OpenSSL trust management references.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.