DNF returns Curl error (60): Peer certificate cannot be authenticated with given CA certificates

Solution Verified - Updated -

Issue

  • DNF command fails with error:

    Errors during downloading metadata for repository 'rhel-8-for-x86_64-baseos-rpms':
      - Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://cdn.redhat.com/content/dist/rhel8/8/x86_64/baseos/os/repodata/repomd.xml 
    
  • Unable to perform dnf/yum commands as it fails with certificate error.

Environment

  • Red Hat Subscription Management (RHSM)
  • Red Hat Enterprise Linux (RHEL)

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