yum fails with error: [Errno 14] curl#22 - "HTTP returned error"

Solution Verified - Updated -

Issue

Yum commands fail when SSL inspection enabled proxy is used:

# yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
...
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#22 - "HTTP returned error"
Trying other mirror.
...

Environment

Red Hat Enterprise Linux 7

  • proxy server is configured in /etc/rhsm.conf
  • proxy server has SSL inspection enabled

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