The certificate /usr/share/rhn/ULN-CA-CERT is expired.


On running yum command on Oracle Enterprise Linux 7(OEL), I was getting below error.

yum repolist
Loaded plugins: langpacks, ulninfo

The certificate /usr/share/rhn/ULN-CA-CERT is expired. Please ensure you have the correct certificate and your system time is correct.


This is due to an expired certificate of the repository.

Manually replace the SSL certificate
To manually replace the client SSL certificate on an Oracle Linux machine, run the following steps as root on each server:

# cp /usr/share/rhn/ULN-CA-CERT /usr/share/rhn/ULN-CA-CERT.old
# wget
# cp ULN-CA-CERT.sha2 /usr/share/rhn/ULN-CA-CERT

If you like please follow and comment