Hello Sreevishnu,
There are few reasons for this error. I will guide you through some of them.
1. Please check the selinux status and see whether it is permissive or enforcing. If it is enforcing, change it to permissive mode.
Edit the file
/etc/sysconfig/selinux and change the mode or you can set the selinux through command.
setatus - to check the status of the selinux
setenforce 0 - to set the selinux to permissive mode
setenforce 1 - to set the selinux to enforcing mode
Now set the selinux to permissive. If it is already in permissive mode please ignore the above mentioned step.
2. Flush the iptables and save it.
iptables -L - to list
iptables -F - to flush the iptables
service iptables save3. Some times the ca certificate might have been out-dated , you need to update the ca certificate depending upon the repository you choose.
4. See if that repository exist because most of the repositories might be expired , if not check for alternative repositories.
Hope this might help you..