yum fails with error: [Errno 14] curl#22 - "HTTP returned error"
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.