CertList Event

Lists the certificates in a store (see the ListStoreCertificates method).


ANSI (Cross Platform)
virtual int FireCertList(CertMgrCertListEventParams *e);
typedef struct {
const char *CertEncoded; int lenCertEncoded;
const char *CertSubject;
const char *CertIssuer;
const char *CertSerialNumber;
int HasPrivateKey; int reserved; } CertMgrCertListEventParams; Unicode (Windows) virtual INT FireCertList(CertMgrCertListEventParams *e);
typedef struct {
LPCSTR CertEncoded; INT lenCertEncoded;
LPCWSTR CertSubject;
LPCWSTR CertIssuer;
LPCWSTR CertSerialNumber;
BOOL HasPrivateKey; INT reserved; } CertMgrCertListEventParams;
- (void)onCertList:(NSData*)certEncoded :(NSString*)certSubject :(NSString*)certIssuer :(NSString*)certSerialNumber :(BOOL)hasPrivateKey;

virtual INT IPWORKSSFTP_CALL FireCertList(LPSTR &lpCertEncoded, INT &lenCertEncoded, LPSTR &lpszCertSubject, LPSTR &lpszCertIssuer, LPSTR &lpszCertSerialNumber, BOOL &bHasPrivateKey);


The CertSubject and CertIssuer parameters contain distinguished names of the certificate owner and issuer respectively. The HasPrivateKey flag shows whether the private key for the certificate is available in the system.

The StoreList event and the ListCertificateStores and ListMachineStores methods are used to list the certificate stores in the system.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SFTP 2020 C++ Edition - Version 20.0 [Build 8162]