DNF returns Curl error (60): Peer certificate cannot be authenticated with given CA certificates
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/yumcommands 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.