次の方法で共有


UserCertificateEnrollmentManager.CreateRequestAsync メソッド

定義

CertificateRequestProperties オブジェクトで指定されたプロパティに基づいて、PKCS #10 証明書要求を非同期的に作成します。

public:
 virtual IAsyncOperation<Platform::String ^> ^ CreateRequestAsync(CertificateRequestProperties ^ request) = CreateRequestAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> CreateRequestAsync(CertificateRequestProperties const& request);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> CreateRequestAsync(CertificateRequestProperties request);
function createRequestAsync(request)
Public Function CreateRequestAsync (request As CertificateRequestProperties) As IAsyncOperation(Of String)

パラメーター

request
CertificateRequestProperties

証明書要求の作成に使用されるプロパティ値を含む CertificateRequestProperties オブジェクト。

戻り値

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

base64 でエンコードされた PKCS #10 証明書要求を取得する非同期操作。

属性

注釈

証明書の登録は、アプリ コンテナーで実行できます。 次の要求オブジェクトを使用して要求を送信することをお勧めします。

CertificateRequestProperties オブジェクトには、次の既定値が含まれています。

プロパティ 既定値
件名 空の文字列
KeyAlgorithmName RSA
KeySize 2048 ビット
FriendlyName 空の文字列
HashAlgorithmName SHA256
Exportable エクスポート不可
KeyUsages 署名
KeyProtectionLevel NoConsent
KeyStorageProviderName Microsoft Software Key Storage Provider

CreateRequestAsync メソッドは証明書要求を作成しますが、http 登録エンドポイントに要求を送信する必要があります。 その後、http 登録エンドポイントから応答を受け取り、 InstallCertificateAsync メソッドを呼び出して応答をインストールできます。

Note

CreateRequestAsync の呼び出しで使用する CertificateRequestProperties オブジェクトの KeyUsages プロパティに Signing 値を含める必要があります。 KeyUsagesDecryption または KeyAgreement に設定する場合は、[署名] でも または が必要です。 それ以外の場合、 CreateRequestAsync の呼び出しは失敗します。

適用対象

こちらもご覧ください