Yum commands fails with error no alternative certificate subject name matches target host name 'loadbalancer.example.com' in Red Hat Satellite 6

Solution Verified - Updated -


  • Any yum command execution on the Client hosts connected to capsule server via loadbalancer fails with following error.

    [root@rhel8 ~]# yum install katello-agent
    Updating Subscription Management repositories.
    Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)  0.0  B/s |   0  B     00:00
    Errors during downloading metadata for repository 'rhel-8-for-x86_64-baseos-rpms':
     - Curl error (51): SSL peer certificate or SSH remote key was not OK for https://loadbalancer.example.com/pulp/repos/My_Org/Test/RHEL8/content/dist/rhel8/8/x86_64/baseos/os/repodata/repomd.xml [SSL: no alternative certificate subject name matches target host name 'loadbalancer.example.com']
    Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried


  • Red Hat Satellite 6
  • Red Hat Capsule 6
  • HA proxy / Load Balancer

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