Mirror RedHat Enterprise repositories

To mirror a Redhat Enterprise repository you need to know the complete url to an existing mirror and the SSL client certification. You can download this certificate from Redhat Network (see below if you need help). You'll find an example configuration below. This example will mirror the RHEL 6 repository from https://cdn.redhat.com/.

<Repository rhel-6-x86-64>
  url    = https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/
  local  = rhel-6-x86-64/rhel/server/6Server/x86_64/os
  type   = Yum
  key    = /etc/rex/ssl/db15c9814abada2a014ab335f6fe3f8c.pem
  cert   = /etc/rex/ssl/db15c9814abada2a014ab335f6fe3f8c.pem
  ca     = /etc/rhsm/ca/redhat-uep.pem

The key, cert and ca parameter defines the proper SSL options, so that repositor.io know that it must do ssl client authentication.

It is important that the first part of the local option is the same as the repository name. (here: rhel-6-x86-64).

The option images = true will also mirror the pxe/tftp boot files.

Register on Redhat Network

To be able to connect to the Redhat Network you need to register the machine where repositor.io is running to the Redhat Network. You can do this on the Customer Portal. After registering a new system you need to attach a subscribtion to it. Now you can download the certificate file from the Entitlement Certificate column. This will download one file containing the key and the certificate.

You also need the Redhat Network CA certificate. If you're on a Redhat System you'll find it under /etc/rhsm/ca/redhat-uep.pem.