TrustedCertSubject Property

The subject of the certificate used for client authentication.


ANSI (Cross Platform)
char* GetTrustedCertSubject(int iTrustedCertIndex);
int SetTrustedCertSubject(int iTrustedCertIndex, const char* lpszTrustedCertSubject); Unicode (Windows) LPWSTR GetTrustedCertSubject(INT iTrustedCertIndex);
INT SetTrustedCertSubject(INT iTrustedCertIndex, LPCWSTR lpszTrustedCertSubject);
- (NSString*)trustedCertSubject:(int)trustedCertIndex;
- (void)setTrustedCertSubject:(int)trustedCertIndex:(NSString*)newTrustedCertSubject;

IPWORKSEDI_EXTERNAL void* IPWORKSEDI_CALL IPWorksEDI_OFTPClient_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_OFTPClient_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_OFTPClient_CheckIndex(void *lpObj, int propid, int arridx);

Default Value



The subject of the certificate used for client authentication.

This property must be set after all other certificate properites are set. When this property is set, a search is performed in the current certificate store certificate with matching subject.

If a matching certificate is found, the property is set to the full subject of the matching certificate.

If an exact match is not found, the store is searched for subjects containing the value of the property.

If a match is still not found, the property is set to an empty string, and no certificate is selected.

The special value "*" picks a random certificate in the certificate store.

The certificate subject is a comma separated list of distinguished name fields and values. For instance ", OU=test, C=US,". Common fields and their meanings are displayed below.

CNCommon Name. This is commonly a host name like
OUOrganizational Unit
EEmail Address

If a field value contains a comma it must be quoted.

The TrustedCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the TrustedCertCount property.

This property is not available at design time.

Data Type


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