After changing Satellite hostname a content host registered to a Capsule receives "certificate verify failed: Hostname mismatch" on rpm install

Solution Verified - Updated -

Issue

After changing the Satellite hostname successfully some clients of Capsules retrieve this error when trying to install a rpm;

Sep 27 12:27:34 oldname pulpcore-content[523678]: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'oldname.example.com'. (_ssl.c:1131)

Environment

Satellite 6.11

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