Freigeben über


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

  • szStoreName
    Data type: LPCWSTR

    Qualifiers: [in]

    Null-terminated string specifying the store name.

  • pCertHashBlob
    Data type: BYTE

    Qualifiers: [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