ISmsMessage4::SetClientCertificate Method
Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2
The ISmsMessage4::SetClientCertificate method, in Configuration Manager, sets the client certificate to use for signing and communication.
[IDL]
HRESULT SetClientCertificate(
MPAPI_CERT_STORE_LOCATION StoreLocation,
LPCWSTR szStoreName,
const BYTE* pCertHashBlob
);
Parameters
StoreLocation
Data type: MPAPI_CERT_STORE_LOCATIONQualifiers: [in]
The location of the store. Possible values are defined by MPAPI_CERT_STORE_LOCATION Enumeration.
szStoreName
Data type: LPCWSTRQualifiers: [in]
Null-terminated string specifying the store name.
pCertHashBlob
Data type: BYTEQualifiers: [in]
Pointer to a certificate hash blob object.
Return Values
An HRESULT code. Possible values include, but are not limited to, the following:
- S_OK
The method succeeded.
Remarks
This method can be used in both mixed and native security modes.
Requirements
See Also
Concepts
ISmsMessage4 Interface
MPAPI_CERT_STORE_LOCATION Enumeration