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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.