No certs?update fail


#1

Hello guys having issues updating…
Err https://deb.splynx.com splynx/main amd64 Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Fetched 1,929 B in 22s (87 B/s)
CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Some index files failed to download. They have been ignored, or old ones used instead.
are the errors im getting any idea??


#2

did you try?

apt-get install ca-certificates
update-ca-certificates

solution is:
On old releases : Ubuntu 14.04 etc, you can receive this error in case of don’t updated ca-certificates , better is update system.

but if you want to stay on old one you need to add our cert to your cert db.

please don’t use this in other cases.

echo $(echo -n | openssl s_client -showcerts -connect deb.splynx.com:443 2>/dev/null  | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p') >> /etc/ssl/certs/ca-certificates.crt

apt update