IX509PrivateKey::get_ProviderName method (certenroll.h)

The ProviderName property specifies or retrieves the name of the cryptographic provider. This property is web enabled for both input and output.

This property is read/write.

Syntax

HRESULT get_ProviderName(
  BSTR *pValue
);

Parameters

pValue

Return value

None

Remarks

Setting this property automatically sets the following properties to be consistent with the specified ProviderName value:

These properties are set in the following manner:
  • The provider configuration data is used, if available, to determine the appropriate ProviderType value.
  • If the specified provider is a CNG KSP:
    • The LegacyCsp property is set to VARIANT_FALSE.
    • The KeySpec property is set to XCN_AT_NONE.
  • If the specified provider is not a CNG KSP:
    • The LegacyCsp property is set to VARIANT_TRUE.
    • The KeySpec property is set to XCN_AT_SIGNATURE.
If you set the ProviderName property, we recommend that you do not set the LegacyCsp or ProviderType properties.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header certenroll.h
DLL CertEnroll.dll

See also

IX509PrivateKey