Yum command fails with message 'The certificate /usr/share/rhn/RHNS-CA-CERT is expired'

Solution Verified - Updated -

Issue

  • Yum commands fail with below error message:

    [root@system ~]# yum update
    Loaded plugins: product-id, rhnplugin, security, subscription-manager
    
    
    The certificate /usr/share/rhn/RHNS-CA-CERT is expired. Please ensure you have the correct certificate and your system time is correct.
    

Environment

  • Red Hat Enterprise Linux 6.x (Previously registered to RHN Network using #rhn_register/#rhnreg_ks command )
  • Red Hat Enterprise Linux 7.x (Previously registered to RHN Network using #rhn_register/#rhnreg_ks command )

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In