第 3 章 创建授权证书和客户端配置 RPM
RHUI 使用授权证书来确保在存储库上发出请求的客户端由云供应商访问这些存储库。授权证书必须由云供应商的证书颁发机构(CA)证书签名。CA 证书安装在 CDS 中,作为其配置的一部分。
3.1. 使用 Red Hat Update Infrastructure 管理工具创建客户端授权证书 复制链接链接已复制到粘贴板!
当红帽发布原始授权证书时,它会授予您所请求的存储库的访问权限。当您创建客户端授权证书时,您决定如何分配客户端并为每一证书创建一个单独的证书。然后,每个证书都可用于创建单个 RPM。
先决条件
- 授权证书必须由云供应商的 CA 证书签名。
流程
进入 Red Hat Update Infrastructure Management Tool 主页:
rhui-manager
[root@rhua ~]# rhui-manager
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
按
e
键选择 创建授权证书和客户端配置 RPM。 -
按
e
键选择 生成授权证书。 通过在提示符下键入存储库数量,选择在授权证书中包含哪些软件仓库。键入存储库的数量将 x 放置到该存储库的名称旁边。继续操作,直到检查您要添加的所有软件仓库。
重要在一个权利中只包括单个 RHEL 版本的软件仓库。为多个 RHEL 版本添加软件仓库会导致
yum
配置文件不可用。-
在提示符下按
c
进行确认。 输入证书的名称。此名称有助于识别 Red Hat Update Infrastructure Management Tool 中的证书,并生成证书和密钥文件的名称。
Name of the certificate. This will be used as the name of the certificate file (name.crt) and its associated private key (name.key). Choose something that will help identify the products contained with it.
Name of the certificate. This will be used as the name of the certificate file (name.crt) and its associated private key (name.key). Choose something that will help identify the products contained with it.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 输入保存证书的路径。将字段留空以将其保存到当前工作目录中。
输入证书应有效的天数。将 365 天字段留空。证书显示中要包含的软件仓库的详情。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
在提示符处按
y
确认信息并创建授权证书。
验证
如果创建了授权证书,您会看到类似的消息:
..........................+++++ ....+++++ Entitlement certificate created at ./rhel8-for-rhui4.crt ------------------------------------------------------------------------------
..........................+++++ ....+++++ Entitlement certificate created at ./rhel8-for-rhui4.crt ------------------------------------------------------------------------------
Copy to Clipboard Copied! Toggle word wrap Toggle overflow