Framework EDI Reference. Methods and Properties
ediSecurities. GetCertificateBySubjectName2

Gets the certificate object of an X.509 certificate from a specified certificate store.

Syntax:

Set <oCertificate> = object. GetCertificateBySubjectName2(<sSubjectName>, <sIssuerName>, <sHexSerialNumber>, <sCertStoreLocation>, <sCertSystemStoreName>)

Parameters:

Returns

If the certificate exists in the certificate store, an object of type FREDI.ediSecurityCertificate is returned; otherwise NULL or an empty object is returned.

Remarks

At least one of the certificate parameter sSubjectName, sIssuerName or sHexSerialNumber must be supplied.