The ISmsMessage4::SetEncryptionCertificatesStore method, in Configuration Manager, sets the certificates to use for encrypting outgoing data.

[IDL]
HRESULT SetEncryptionCertificatesStore(
	 MPAPI_CERT_STORE_LOCATION  StoreLocation,
	 LPCWSTR  szStoreName
);

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.

Return Values

An HRESULT code. Possible values include, but are not limited to, the following:

S_OK


The method succeeded.

Remarks

This method is applicable only to the mixed security mode.

The certificate store must contain the public portion of the certificates for all management points that can possibly receive the message.

Note
If you are using Network Load Balancing (NLB), provide the certificate for each computer in the NLB cluster.

The certificate store only needs to be set when the security flag MPAPI_SECURITYFLAG_ENCRYPT_MESSAGE is applied to the message. For more information, see MPAPI_SECURITY_FLAGS Enumeration.

Requirements

See Also


Send comments about this topic to Microsoft.