How to re-configure RHUI without installing it from scratch?

Solution Verified - Updated -

Environment

  • Red Hat Update Infrastructure 2.1

Issue

  • Re-configure RHUI without installing it from scratch?
  • How to regenerate the SSL certificates on RHUI?
  • How to reset the SSL pass-phrase?

Resolution

  • Move the old certificates to a temporary location.
   # mv /root/.rhui/rhua.example.com/user.crt /tmp/rhui_backup
   # mv /etc/pki/rhua/user-ca-key.pem /tmp/rhui_backup
   # mv /etc/pki/rhua/user-ca-cert.crt /tmp/rhui_backup
   # mv /etc/pki/rhui/entitlement-ca-key.pem /tmp/rhui_backup
   # mv /etc/pki/rhui/entitlement-ca.crt /tmp/rhui_backup
   # mv /etc/pki/rhui/identity.key /tmp/rhui_backup
   # mv /etc/pki/rhui/identity.crt /tmp/rhui_backup
  • Recreate the RHUI SSL certificates using create_rhui_ssl_certs.sh script.
   # cd /root/
   # /usr/share/rh-rhua/rhui_certs/create_rhui_ssl_certs.sh rhua.example.com cds1.example.com cds2.example.com
  • Run the rhui-installer with the answers file.
   # rhui-installer /root/rhui-certs/answers 
     Generating RHUA configuration RPM
     RHUA RPM can be found at [/etc/rhui]
     Generating CDS bundle for CDS [dhcp7-146.gsslab.pnq.redhat.com]
     CDS RPM can be found at [/etc/rhui]
     Generating CDS bundle for CDS [dhcp7-150.gsslab.pnq.redhat.com]
     CDS RPM can be found at [/etc/rhui]
  • Install the generated RPMs on RHUA and both the CDS.
   # rpm -ivh rh-rhua-config-2.1-2.el6.noarch.rpm
  • SCP the CDS rpms to CDS server and install it respectively.
  • If the environment is having any proxy server, then update the below files.
# more /etc/pulp/pulp.conf
# more /etc/rhui/rhui-tools.conf
  • Execute the rhui-manager and configure it like the first time.
   # rhui-manager 
   An entitlement signing CA certificate is required to use RHUI Tools
   but was not found.

   Full path to the new signing CA certificate:
   /root/rhui-certs/certs/client-ca-chain.pem

   Full path to the new signing CA certificate private key:
   /root/rhui-certs/certs/client-ca-key.pem
  • Upload the content certificate
# rhui-manager cert upload --cert /root/content-cert.pem
  • Now check if everything is fine.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.