第10章 クライアントエンタイトルメント証明書およびクライアント設定 RPM

10.1. エンタイトルメント証明書の作成

手順

  1. RHUA で、Red Hat Update Infrastructure Management Tool にログインします。

    [root@rhua ~]# rhui-manager
  2. Red Hat Update Infrastructure Management Tool のホーム画面で e を押して、エンタイトルメント証明書およびクライアント設定 RPM の作成 を選択します。

                 -= Red Hat Update Infrastructure Management Tool =-
    
    -= Home =-
    
       r   manage repositories
       c   manage content delivery servers (CDS)
       l   manage HAProxy load-balancer instances
       s   synchronization status and scheduling
       e   create entitlement certificates and client configuration RPMs
       n   manage Red Hat entitlement certificates
       u   manage RHUI users
    
                                                       Connected: rhua.example.com
  3. e を押して generate an entitlement certificate を選択します。

    ------------------------------------------------------------------------------
            	-= Red Hat Update Infrastructure Management Tool =-
    
    -= Client Entitlement Management =-
    
    e   generate an entitlement certificate
    c   create a client configuration RPM from an entitlement certificate
    
                                                  	Connected: rhua.example.com
    ------------------------------------------------------------------------------
    
    rhui (client) => e
  4. プロンプトでリポジトリーの番号を入力して、エンタイトルメント証明書に含めるリポジトリーを選択します。リポジトリーの数を入力すると、そのリポジトリー名の横にチェックマークが付けられます。追加するすべてのリポジトリーがチェックされるまで続行します。

    重要

    単一の Red Hat Enterprise Linux バージョンのリポジトリーのみを 1 つのエンタイトルメントに追加します。複数の Red Hat Enterprise Linux バージョンにリポジトリーを追加すると、yum 設定ファイルが使用できなくなります。

  5. プロンプトで c を押して確定します。
  6. 証明書の名前を入力します。この名前は、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:
  7. 証明書を保存するパスを入力します。フィールドを空白のままにして、現在の作業ディレクトリーに保存します。
  8. 証明書が有効な日数を入力します。365 日の場合はフィールドを空白のままにしておきます。証明書に含まれるリポジトリーの詳細が表示されます。
  9. プロンプトで y を押して、情報を確認し、エンタイトルメント証明書を作成します。

    Repositories to be included in the entitlement certificate:
    
    Red Hat Repositories
    
    	Red Hat Enterprise Linux for SAP (RHEL 6 Server) (RPMs) from RHUI
    
    Proceed? (y/n) y
    .................................................+++
    Entitlement certificate created at /root/clientcert/rhuiclientexample.crt
    
    ------------------------------------------------------------------------------

10.1.1. コマンドラインインターフェイスからのエンタイトルメント証明書の作成

手順

  1. 以下のコマンドを使用して、CLI からエンタイトルメント証明書を作成します。

    # rhui-manager client cert --repo_label rhel-sap-for-rhel-6-server-rhui-rpms --name rhuiclientexample --days 365 --dir /root/clientcert
    ..........................................................................................+++
    ..........+++
    Entitlement certificate created at /root/clientcert/rhuiclientexample.crt
    注記

    ID ではなく、Red Hat リポジトリーのラベルを使用します。すべてのラベルの一覧を表示するには、rhui-manager client labels コマンドを実行します。証明書に保護されているカスタムリポジトリーが含まれている場合は、リポジトリーの ID を使用してください。

パラメーターの完全リストは、付録B Red Hat Update Infrastructure コマンドラインインターフェイス を参照してください。