I ran into some problems trying to fix certificate based subscriptions for rhel6, these two articles were very helpful so I suggest you have a look at them before reading on:
- Can not update a system that is registered with subscription-manager
- Which product key file maps to a version of Red Hat Enterprise Linux?
I was able to register the machine and subscribe a valid pool to it, but when listing the available repositories with yum, ‘This system has no repositories available through subscriptions.’ returned. Redhat support informed me I had to install the appropriate product license key myself.
Install the subscription-manager-migration-data package from the @Base group during your local installation or install it afterwards using a local repository or rpm:
$ yum install subscription-manager-migration-data
$ cp /usr/share/rhsm/product/RHEL-6/Server-Server-uname -i
-*-69.pem /etc/pki/product/69.pem
Register the machine using the subscription manager:
$ subscription-manager register --username
Subscribe the machine to a pool
$ subscription-manager subscribe --pool=
Using the correct product key, the redhat repositories are shown
$ yum repolist
rhel-6-server-cf-tools-1-rpms Red Hat CloudForms Tools for RHEL 6 (RPMs) 31
rhel-6-server-rhev-agent-rpms Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) 32
rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 10,947
But this fails when I try to subscribe an existing RHEL 6.5 host, as the pem-file only comes with ‘Version: 6.6’.