28 Chapter 5. Using RHN Bootstrap5.1. PreparationSince RHN Bootstrap (rhn-bootstrap) depends on other components of the Red HatNetwork infrastructure to properly configure client systems, those components must beprepared before script generation. The following list identifies suggested initial measures:• Generate activation keys to be called by the script(s). Activation keys can be used toregister Red Hat Enterprise Linux systems, entitle them to an RHN service level, andsubscribe them to specific channels and system groups, all in one action. Note that youmust have Management entitlements available to use an activation key, while inclusionof multiple activation keys at once requires Provisioning entitlements. Generate activa-tion keys through the Activation Keys page within the Systems category of the RHNwebsite (either the central RHN Servers for Proxy or the fully qualified domain nameof the Satellite). Refer to the Red Hat Update Agent and RHN Website chapters of theRHN Reference Guide for instructions on creation and use.• Red Hat recommends your RPMs be signed by a custom GNU Privacy Guard(GPG) key. Make the key available so you may refer to it from the script.Generate the key as described in the RHN Channel Management Guide andplace the key in the /var/www/html/pub/ directory of the RHN Server, perChapter 4 Importing Custom GPG Keys.• If you wish to use the script to deploy your CA SSL public certificate, have thecertificate or the package (RPM) containing that certificate available on that RHNServer and include it during script generation with the --ssl-cert option. Refer toChapter 3 SSL Infrastructure for details.• Have the values ready to develop one or many bootstrap scripts, depending on the varietyof systems to be reconfigured. Since RHN Bootstrap provides a full set of reconfigura-tion options, you may use it to generate different bootstrap scripts to accommodate eachtype of system. For instance, bootstrap-web-servers.sh might be used to reconfig-ure your Web servers, while bootstrap-app-servers.sh can handle the applicationservers. Consult Section 5.4 RHN Bootstrap Options for the complete list.5.2. GenerationNow that all of the necessary components are in place, you may use RHN Bootstrap togenerate the required scripts. Log into your RHN Satellite Server or RHN Proxy Server asroot and issue the rhn-bootstrap command followed by the desired options andvalues. If no options are included, a bootstrap.sh file is created in the bootstrap/subdirectory that contains the essential values derived from the server, includinghostname, the SSL certificate, it if exists, SSL and GPG settings, and a call for theclient-config-overrides.txt file.At a minimum, Red Hat strongly recommends your scripts also accommodate activationkeys, GPG keys, and advanced configuration options in the following manner: