The Red Hat subscription-manager
is a tool to register, attach and remove subscriptions from the command line. If I understand correctly, this tool connects to the customer portal to retrieve certificates. These certificates are then used, among other things, to download yum packages from the Red Hat repo.
Sources:
- https://linux.die.net/man/8/subscription-manager
- https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html-single/rhsm/index
There are several things that I don't understand:
- Why can't a user copy a certificate from one Red Hat machine to another and use it there? I assume the certificate includes machine-specific values (according to the docs, they are called "facts"), but then...
- How are the certificates loaded and checked by the other processes? For instance, I guess that
yum
must be using these certificates. But then theyum
CLI tool must have been patched, right? Is the source code of these changes available? - Is the source code of the
subscription-manager
tool available? That would clarify many things.