Problem Summary
I’m running a Red Hat Enterprise Linux 9.5 virtual machine that was originally deployed inside my company’s internal environment. It was:
- Registered to a Red Hat Satellite server
- Behind a corporate proxy
- Likely configured with internal CA certificates and custom repo settings
I have since exported the VM and moved it to my local, clean internet connection — no proxy, no VPN, just a regular bridged or NAT internet setup.
However, when I try to use subscription-manager
to register the system to a new account or just interact with Red Hat public infrastructure, I get this error:
Unable to verify server's identity: ... (or other SSL/TLS verification errors)
It behaves like the system still trusts or expects internal certs, or maybe it doesn’t trust the real Red Hat CDN certs anymore.
Diagnosis: What I Think is Going On
I suspect that the VM is still “poisoned” by the original corporate setup:
- The
/etc/pki/ca-trust/
directory may still contain internal CAs injected by my company. subscription-manager
might still have config files pointing to internal servers or proxies (e.g.,/etc/rhsm/rhsm.conf
).- Package sources (
/etc/yum.repos.d/*.repo
) could be referencing now-inaccessible internal mirrors. - I noticed this message when trying to reinstall CA certificates:
Installed package ca-certificates-xxxxxx (from anaconda) not available. Error: No packages marked for reinstall.
This indicates the package came from the original ISO (via Anaconda), but now that the VM is outside the company network, it cannot refresh or validate certs from Red Hat’s public repos.
What I Don’t Want
I don’t want the system to:
- Validate internal TLS/SSL certs
- Try to reach internal Satellite servers
- Use proxy settings
- Assume it’s on a corporate network
What I Want
I just want a clean, public RHEL system that:
- Uses Red Hat’s public CDN (
subscription.rhsm.redhat.com
) - Validates real/public TLS certs (not internal ones)
- Can register to a new subscription/account
- Can access default Red Hat repositories
Things I’ve Tried (So Far)
- Cleaned RHSM system config:
sudo subscription-manager clean
sudo rm -rf /etc/rhsm /etc/pki/consumer /etc/pki/entitlement
-
Checked and reset
/etc/rhsm/rhsm.conf
- Ensured
hostname = subscription.rhsm.redhat.com
- Made sure
ssl_verify = 1
(but also tried0
temporarily for testing)
- Ensured
-
Removed all custom/injected CA certs:
sudo rm -f /etc/pki/ca-trust/source/anchors/*.crt
sudo update-ca-trust extract
- Tried reinstalling ca-certificates:
sudo dnf reinstall ca-certificates
- But it says the package is “not available” (likely because no valid repo is configured or I’m not registered)
- Deleted all
.repo
files under/etc/yum.repos.d/
that looked internal.
Questions I Have
- How can I fully reset the system’s trust store and RHSM state to match a clean, fresh RHEL install on a public network?
- Is there a better way to fully remove internal CA influence?
- Is there a way to refresh
ca-certificates
manually from a Red Hat mirror without registration?
System Info
- OS: RHEL 9.5
- Environment: KVM VM, now running outside company infra
- Internet: Direct connection (no proxy), NAT network
- Registration: Not currently registered to any account
- Repos: No working public repos right now
Let me know if logs or configs are needed — happy to post more info.
Thanks!