IScheduler::GetCertificateFromStore method
Retrieves a certificate matching the thumbprint from the local store encoded as a stream of bytes.
Syntax
HRESULT GetCertificateFromStore(
[in] BSTR *thumbprint,
[out] SecureString *pfxPassword,
[out] unsigned char *certificateFromStore
);
Parameters
thumbprint [in]
Thumbprint that matches the certificate. If null, a certificate that matches the requirements will be used.pfxPassword [out]
The password to encrypt the certificate.certificateFromStore [out]
The certificate matching the thumbprint or any certificate matching the requirements if thumbprint is null.
Return value
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, access the ISchedulerJob::ErrorMessage property.
Remarks
ISchedulerJob::GetCertificateFromStore also uses a random generated password to encrypt the password.
HPC Softcards are required to use ISchedulerJob::GetCertificateFromStore.
Requirements
Product |
This method was introduced in Windows HPC Server 2008 R2 Service Pack 2 (SP2) and is not supported in previous versions. |
Type library |
Microsoft.Hpc.Scheduler.tlb |