Why does Importing entitlement certificates for offline registration fails with error "xxxxx.pem is not a valid certificate file. Please use a valid certificate."

Solution Verified - Updated -

Issue

  • subscription-manager fails to import the entitlement certificate for offline registration:-

    # subscription-manager import --certificate=/tmp/redhat/69626b87-4a12-4220-9620-92e3b85f9ae1.pem
    69626b87-4a12-4220-9620-92e3b85f9ae1.pem is not a valid certificate file. Please use a valid certificate.
    

Environment

  • Red Hat Enterprise Linux
  • Red Hat Subscription Manager(RHSM)
  • Red Hat Customer Portal

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