Host registration fails with Error loading certificate: [Errno 2] No such file or directory: '/etc/pki/consumer/cert.pem'

Solution Verified - Updated -

Issue

  • Registering hosts to the Satellite server using the global registration method fails with the below errors.

    # Running registration
    #
    This system is currently not registered.
    All local data removed
    subscription-manager is already installed!
    Error loading certificate: [Errno 2] No such file or directory: '/etc/pki/consumer/cert.pem'
    This system is not yet registered. Try 'subscription-manager register --help' for more information.
    curl: (60) SSL certificate problem: self signed certificate in certificate chain
    More details here: https://curl.haxx.se/docs/sslcerts.html
    
    curl failed to verify the legitimacy of the server and therefore could not
    establish a secure connection to it. To learn more about this situation and
    how to fix it, please visit the web page mentioned above.
    
  • Manual registration using subscription-manager returns the below certificate errors.

    # subscription-manager register
    ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)
    

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content