CertificateRequestProperties.KeyStorageProviderName CertificateRequestProperties.KeyStorageProviderName CertificateRequestProperties.KeyStorageProviderName CertificateRequestProperties.KeyStorageProviderName CertificateRequestProperties.KeyStorageProviderName Property

Definition

Gets or sets the name of the key storage provider (KSP) that will be used to generate the private key.

public : Platform::String KeyStorageProviderName { get; set; }
winrt::hstring KeyStorageProviderName();

void KeyStorageProviderName(winrt::hstring keystorageprovidername);
public string KeyStorageProviderName { get; set; }
Public ReadWrite Property KeyStorageProviderName As string
var string = certificateRequestProperties.keyStorageProviderName;
certificateRequestProperties.keyStorageProviderName = string;

Property Value

string string string

The KSP name. The default value is "Microsoft Software Key Storage Provider".

Examples

public String GetSetKspName(String strNameIn)
{
    // Create a new CertificateRequestProperties object.
    CertificateRequestProperties reqProperties = new CertificateRequestProperties();

    // The default value is Microsoft Software Key Storage Provider.
    String strDefaultName = reqProperties.KeyStorageProviderName;

    // If the input option does not equal the default option, reset the property value.
    if (strNameIn != strDefaultName)
    {
        reqProperties.KeyStorageProviderName = strNameIn;
    }

    // Return the KSP name.
    return reqProperties.KeyStorageProviderName;
}

Remarks

The name of a cryptographic service provider (CSP) cannot be used.