CertificateRequestProperties.KeyStorageProviderName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the name of the key storage provider (KSP) that will be used to generate the private key.
public:
property Platform::String ^ KeyStorageProviderName { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring KeyStorageProviderName();
void KeyStorageProviderName(winrt::hstring value);
public string KeyStorageProviderName { get; set; }
var string = certificateRequestProperties.keyStorageProviderName;
certificateRequestProperties.keyStorageProviderName = string;
Public Property KeyStorageProviderName As String
Property Value
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.