I mistakenly delete/etc/pki/tls
folder to configure openssl1.1
package. I have a machine Centos 8. When I want to install openssl with yum install openssl I have following error because of deleting that directory.
how can I fix it?
You should try to reinstall the ca-certificates first:
sudo yum reinstall ca-certificates
This should fix your /etc/pki/tls
folder. After that you should be able to install other packages again.
If you get SSL errors while running the above command, you need to disable SSL verification for yum and try again. This is done by adding sslverify=false
in /etc/yum.conf
. Remember to delete this line after reinstalling the ca-certificates.