Yum install <package> is failing with an "Error:could not load PEM client certificate, OpenSSL error error:02001002:system library:fopen:No such file or directory"

Solution Verified - Updated -

Issue

  • Yum install returns error "Curl error (58): Problem with the local SSL certificate"

  • Unable to install any package from repositories.

  • On a Red Hat Enterprise Linux 8.x host registered to Red Hat Satellite 6.x, the error returned might be:

    Errors during downloading metadata for repository 'rhel-8-for-x86_64-appstream-rpms':
    - Curl error (58): Problem with the local SSL certificate for 
    https://satellite.example.com/pulp/repos/<productName>/<MyOrg>/<RepoName> [could not load PEM client 
    certificate, OpenSSL error error:02001002:system library:fopen:No such file or directory, (no key found, wrong 
    pass phrase, or wrong file format?)]
    Error: Failed to download metadata for repo 'rhel-8-for-x86_64-appstream-rpms': Cannot download repomd.xml: 
    Cannot download repodata/repomd.xml: All mirrors were tried.
    
  • On a Red Hat Enterprise Linux 8.x host registered to Red Hat subscription Management (RHSM), the error returned might be:

    Update subscription management repositories.
    Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                                                                              0.0  B/s |   0  B     00:00
    Errors during downloading metadata for repository 'rhel-8-for-x86_64-appstream-rpms':
    - Curl error (58): Problem with the local SSL certificate for https://cdn.redhat.com/content/dist/rhel8/8/x86_64/appstream/os/repodata/repomd.xml [could not load PEM client certificate, OpenSSL error error:02001002:system library:fopen:No such file or directory, (no key found, wrong pass phrase, or wrong file format?)]
    Error: Failed to download metadata for "rhel-8-for-x86_64-appstream-rpms" repository : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    

Environment

  • Red Hat Enterprise Linux 7.x host registered to either Red Hat Satellite 6.x or to Red Hat subscription Management (RHSM)
  • Red Hat Enterprise Linux 8.x host registered to either Red Hat Satellite 6.x or to Red Hat subscription Management (RHSM)

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