Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
I tried installing EPEL on a fresh install of RHEL6, and after adding the repo, yum fails with the above error. I have RHEL6.1 (Santiago) and get the above error.
This happens because the RHEL/CentOS installation doesn’t trust the HTTPS certificate used by mirrors.fedoraproject.org, that is issued by “GeoTrust SSL CA“.
In my case the package ca-certificates was not installed and the /etc/pki/tls/certs/ folder didn’t contain any ca-bundle.crt or ca-bundle.trust.crt !
Solution: yum install ca-certificates
(I had to temporarily rpm –erase epel-release first, to get yum working again)
I once got the same error message eventhout ca-certificates was installed and up to date. Then it was a firewall blocking https (port 443) traffic.
I worked around that by changing from https to http in /etc/yum.repos.d/epel.repo