trying to reinstall ca-certs on centos
You temporary disable verifying ssl in yum with the following.
-
echo "sslverify=0" >> /etc/yum.conf
- yum reinstall -y ca-certificates
- Remove temporary hack with editor of your choice from /etc/yum.conf
Edit:
If for some reason, this still doesn't work, you might try the following:
- Find the package. In the case of RPM packages, I recommend the following website - https://pkgs.org/
- Download package with
curl -k
orwget --no-check-certificate
. Note that case below I'm usinghttp
but there might be redirection to https. In case of CentOS 7 and curent date it will look like:wget --no-check-certificate http://mirror.centos.org/centos/7/os/x86_64/Packages/ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm || curl -k http://mirror.centos.org/centos/7/os/x86_64/Packages/ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm -o ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm
- Install it manually with
yum reinstall -y ./ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm