Gets the certificate object of an X.509 certificate from the certificate store.
Syntax:
Set <oCertificate> = object. GetCertificate(<sSubjectName>, <sIssuerName>, <sHexSerialNumber>, [<sServiceProvider>], [<lProviderType>])
Parameters:
Returns
Returns an object of type FREDI.ediSecurityCertificate if the certificate is found; otherwise NULL or an empty object is returned.
Remarks
The search used to locate the certificate depends on whether one or more of the parameters are specified. The search is undertaken using one of the following combinations:
- Subject Name
- Issuer Name and Serial Number
- Issuer Name, Serial Number and Subject Name
- Issuer Name and Subject Name
- Subject Name and Serial Number