Home > 付録 > Prepare a Certificate for the Custom Azure App > Azure 内のキー コンテナーでの証明書の準備

    Export to PDF

    Azure 内のキー コンテナーでの証明書の準備

    この方法を使用して証明書を準備する前に、Azure 内のキー コンテナーを持っていることを確認してください。 If you have an Azure subscription but do not have any key vaults, refer to the instructions in Create a Key Vault in Azure. 証明書の作成方法については、以下の説明を参照してください。

    1. In the , navigate to Key vaults.

    2. キー コンテナー ページで、キー コンテナーを選択し、左側のメニューで 証明書 ****を選択します。

      The Certificates option.

    3. 証明書 パネルで、[作成/インポート] をクリックして、必須フィールドに値を入力します。以下のスクリーン ショットは証明書のサンプルです。

      *Note: コンテンツ タイプ フィールドで、PKCS#12 を選択します。

      Creating a certificate.

    4. [作成] をクリックして、証明書の 状態有効にする になるまで待ちます。必要に応じて、[更新] をクリックして状態を更新することができます。

      The Certificates panel.

    5. 証明書の名前をクリックして、証明書の現在のバージョンを選択します。

    6. ****[CER形式でダウンロード] と ****[PFX/PEM 形式でダウンロード] ****をクリックして、証明書ファイルをローカル マシンにダウンロードします。

      The certificate details page.

    7. When you have the certificate (.pfx file), you must set a password to protect the certificate.

      1. Windows PowerShell を開き、次のスクリプトを Windows PowerShell に貼り付けます。 Replace [Full path to your PFX] with the full path of the certificate (.pfx file) in your local machine. コマンドを入力する際に、引用符が必要であることに注意してください。

        $pfxPath=”[Full path to your PFX]” Export-PfxCertificate -Password $(Read-Host -AsSecureString -Prompt "Enter a password to protect the certificate") -PFXData $(Get-PfxData -FilePath $pfxPath) -FilePath $pfxPath

      2. Enter キーを押して、スクリプトを実行します。

      *Note: The .pfx file contains your private key.

    上記のステップの完了後、2 件の証明書ファイルを取得することができます。

    - The .cer file must be uploaded for the custom app in Microsoft Entra ID. For additional details on uploading the certificate, refer to [Create a Custom Azure App](#missing-link). - The .pfx file must be uploaded to AvePoint Online Services to consent to the app. For additional details, refer to [Consent to Custom Apps](#missing-link) (renew an app profile) or [Re-authorize an App Profile](#missing-link) (renew an app profile).