IX509CertificateRequest::get_HashAlgorithm method (certenroll.h)

The HashAlgorithm property specifies and retrieves the object identifier (OID) of the hash algorithm used to sign the certificate request. This property is web enabled for both input and output.

This property is read/write.

Syntax

HRESULT get_HashAlgorithm(
  IObjectId **ppValue
);

Parameters

ppValue

Return value

None

Remarks

If the certificate request contains nested requests and you set the HashAlgorithm property on the top level request, it is automatically propagated to all of the inner requests, overwriting values that may have been previously set. You can, however, set the property manually on each of the inner objects.

You must initialize the request object before calling this property. You can call this property before calling the Encode method.

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

IX509CertificateRequest

IX509CertificateRequestCertificate

IX509CertificateRequestCmc

IX509CertificateRequestPkcs10

IX509CertificateRequestPkcs7

IX509SignatureInformation