对 Red Hat CDN 通道和多个证书进行查错

Red Hat 内容分发网络 (CDN) 通道有时会提供多个证书,但 SUSE Multi-Linux Manager Web UI 只能导入单个证书。 如果 CDN 提供的证书与 SUSE Multi-Linux Manager Web UI 已知的证书不同,则验证失败,访问储存库的权限被拒绝,即使证书是准确的。 收到的错误消息是:

[error]
Repository '<repo_name>' is invalid.
<repo.pem> Valid metadata not found at specified URL
History:
 - [|] Error trying to read from '<repo.pem>'
 - Permission to access '<repo.pem>' denied.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository '<repo_nam' because of the above error.
Could not refresh the repositories because of errors.
HH:MM:SS RepoMDError: Cannot access repository. Maybe repository GPG keys are not imported

要解决此问题,请将所有有效证书合并到单个 .pem 文件中,然后重新构建证书以供 SUSE Multi-Linux Manager 使用:

过程:升级解决多个 Red Hat CDN 证书的问题
  1. 在 Red Hat 客户端上,在命令提示符处,以 root 身份,将 /etc/pki/entitlement/ 中的所有当前证书收集到单个 rh-cert.pem 文件中:

    cat 866705146090697087.pem 3539668047766796506.pem redhat-entitlement-authority.pem > rh-cert.pem
  2. 将 /etc/pki/entitlement/ 中的所有当前密钥收集到单个 rh-key.pem 文件中:

    cat 866705146090697087-key.pem 3539668047766796506-key.pem > rh-key.pem

您现在可以使用 使用 CDN 注册 Red Hat Enterprise Linux 客户端 中的说明将新证书导入到 SUSE Multi-Linux Manager 服务器。