Usage Meter 9.1 で自己署名のマシン SSL 証明書を "cert-management.sh" で更新する方法
search cancel

Usage Meter 9.1 で自己署名のマシン SSL 証明書を "cert-management.sh" で更新する方法

book

Article ID: 448348

calendar_today

Updated On:

Products

VMware Usage Meter

Issue/Introduction

免責事項: これは英文の記事 How to Update the Self-Signed Machine SSL Certificate in Usage Meter 9.1 Using 'cert-management.sh' (448350) の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

この記事では VCF Usage Meter 9.1 より新たに追加された証明書管理ユーティリティーである
"cert-management.sh" によるマシン SSL 証明書の更新手順を説明します。

Environment

VCF Usage Meter 9.1 

Cause

VCF Usage Meter 9.0 は VCF Usage Meter 証明書の管理 に記載の手順にて証明書関連の手順を実施しておりましたが、
 VCF Usage Meter 9.1 からは新たに追加された証明書管理ユーティリティである "cert-management.sh"  にて証明書関連の手順を対話形式で実施することが可能になりました。

Resolution

Usage Meter アプライアンスのマシン SSL 証明書の更新手順は以下の通りです:

  1. 該当 Usage Meter アプライアンスのオフラインスナップショットを取得
  2.  該当の Usage Meter へ ssh 接続し usagemeter ユーザでログイン
  3. 以下のコマンドを実行し、VCF Usage Meter 内部のサービスを全て停止

    [email protected] [ ~ ]$ stop.sh All

  4. 以下のコマンドを実行し証明書管理ユーティリティを表示

    [email protected] [ ~ ]$ cert-management.sh
  5. 証明書管理ユーティリティが表示されたら "2." を入力して自己署名によるマシン SSL 証明書の更新を開始

    [email protected] [ ~ ]$ cert-management.sh
    Welcome to VCF Usage Meter's certificate management! Available operations:
             1. Import certificate into Usage Meter's truststore (establish a trust between the
                certificate and the Usage Meter appliance). Either provide full path to the
                certificate or provide server's IP and port to obtain it dynamically.
             2. Replace Usage Meter's certificate with a new self-signed certificate
                (effectively regenerates the current certificate).
             3. Replace Usage Meter's certificate with a custom certificate.
                Need to provide full paths to following files: signed certificate and certificate's private part.
             4. Remove certificate from Usage Meter's truststore by alias.
             5. List all of the certificates from the Usage Meter's truststore.

    Select the operation to perform (1, 2, 3, 4 or 5): <==== "2" を入力

  6. 以下の通り表示されるオプションを設定
    <注> デフォルトのまま変更する必要がない場合には、空白のまま Enter を押して次に進んでください。

    Available key algorithms:
      1. RSA
      2. EC
    Select key algorithm (default 1 - RSA):   <==== !!!
    Enter key length for RSA (2048-8192 bits, default 4096): <==== !!!
    Enter validity period in days (default 730): <==== !!!
    Available signature algorithms for RSA keys: <==== !!!
      1. SHA256withRSA
      2. SHA384withRSA
      3. SHA512withRSA
    Select signature algorithm (default 1 - SHA256withRSA): <==== !!!

    Configuration:
            Key Algorithm: RSA
            Key Length: 4096 bits
            Validity Period: 730 days
            Signature Algorithm: SHA256withRSA


    <注> 以下の出力が表示されれば、更新は完了です。
    Generating new self-signed certificate for Usage Meter...
    INFO: Backing up existing keystore
    Backing up existing keystore  DONE
    INFO: Updating existing certificate alias
    Updating existing certificate alias == DONE
    INFO: Generating 4096-bit RSA key pair
    Generating 4096-bit RSA key pair ====== DONE
    INFO: Generating self-signed certificate
    Generating self-signed certificate = DONE
    INFO: Creating new keystore
    Creating new keystore == DONE
    INFO: Cleaning up backup certificate
    Cleaning up backup certificate = DONE
    INFO: Setting keystore permissions
    Setting keystore permissions = DONE

  7. 以下の質問で y を入力し、Usage Meter アプライアンスを再起動
    Note: A reboot is required for the new certificate to take effect.
    Reboot is required after replacing UM certificate. Reboot now (y/n): <=== y を入力

  8. 再起動が完了し、Usage Meter の Web UI へアクセスすることが確認出来たら、
    "1." で取得したスナップショットを削除

Additional Information

参考:
VCF Usage Meter の証明書管理ユーティリティ