OFTPConnectionRecipientCertSubject Property
The subject of the recipient certificate.
Syntax
QString GetOFTPConnectionRecipientCertSubject(int iConnectionId);
int SetOFTPConnectionRecipientCertSubject(int iConnectionId, QString qsOFTPConnectionRecipientCertSubject);
Default Value
""
Remarks
The subject of the recipient certificate.
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 "CN=www.server.com, OU=test, C=US, E=support@nsoftware.com". Common fields and their meanings are displayed below.
Field | Meaning |
CN | Common Name. This is commonly a host name like www.server.com. |
O | Organization |
OU | Organizational Unit |
L | Locality |
S | State |
C | Country |
E | Email Address |
If a field value contains a comma it must be quoted.
Note that this is only applicable when Version 2.0 of the protocol is used as indicated by OFTPConnectionVersion.
The ConnectionId parameter specifies the index of the item in the array. The size of the array is controlled by the OFTPConnectionCount property.
This property is not available at design time.
Data Type
String