AS3Sender Component
Properties Methods Events Config Settings Errors
The AS3Sender class implements an AS3 / EDI-INT client.
Syntax
ipworksedi.AS3Sender
Remarks
The AS3Sender component may be used to send EDI or other messages over FTP/S, using the AS3 protocol. It may also be used to verify Message Disposition Notifications (MDNs) returned by the server.
A typical AS3 transaction is as follows:
(1) The sender sends an EDI document to the receiver using FTP. The document may be signed, encrypted, and/or compressed, and a signed or unsigned receipt may be requested.
(2) The receiver decompresses and decrypts the message and verifies the signature.
(3) The receiver sends a signed receipt back to the client. The signature is over the hash of an MDN, which contains a hash of the received message.
When sending an EDI message, the client should specify, at a minimum, AS3From and AS3To, EDIData, and EDIType. You will also need to specify User, Password, and RemoteHost to Logon to the FTP server. After doing this you may send the data by calling Send.
To secure the EDI transmission, the message may be signed and/or encrypted by setting the appropriate certificates. By default, the component will apply message security if the appropriate certificates are specified. To sign the data set SigningCert. To encrypt, set RecipientCerts.
TLS/SSL may be enabled by setting the SSLStartMode property. In case your trading partner is using a self-signed certificate it will be necessary to set SSLAcceptServerCert or trap the SSLServerAuthentication event to accept the certificate.
The message may also be compressed by setting CompressionFormat.
To request a receipt, or Message Disposition Notification (MDN), simply set the MDNTo property. The MDN will be returned to the FTP URL specified. The MDNOptions property may be used to customize the request. By default, the component will request a signed MDN over an SHA1 hash.
Validating AS3 MDNs
AS3 MDNs will be returned asynchronously over a separate connection. You may verify MDNs by invoking ReadReceipt. This will read the receipt from the FTP server (or from the MDNReceipt property). It will determine the MessageId of the original message and determine the originator and recipient of the MDN.
You should then look up your trading partner's certificates as well as the OriginalContentMIC (which you must store externally to verify signed receipts), and invoke VerifyReceipt.
Property List
The following is the full list of the properties of the component with short descriptions. Click on the links for further details.
| AS3From | The identity of the sending system. |
| AS3To | The identity of the receiving system. |
| AS3Version | The version of AS3 being used. |
| AttachmentCount | The number of records in the Attachment arrays. |
| AttachmentContentType | The MIME content-type of this ediattachment . |
| AttachmentData | This property contains the attachment data. |
| AttachmentFileName | The file name of the attachment. |
| AttachmentHeaders | The class fills out Headers each time any of the other properties for that ediattachment are changed. |
| AttachmentName | Name is the final name to be associated with the contents of either the Data or FileName properties. |
| CompressionFormat | The compression format (if any) to use. |
| Connected | Whether the class is connected. |
| EDIData | This property contains the EDI payload of the transmission. |
| EDIType | The Content-Type of the EDI message. |
| EDIName | Name is the final name to be associated with the contents of either the Data or FileName properties. |
| EDIFileName | In a sender, if FileName is specified, the file specified will be used for the EDI payload of the transmission. |
| EncryptionAlgorithm | The algorithm used to encrypt the EDI data. |
| FirewallAutoDetect | Whether to automatically detect and use firewall system settings, if available. |
| FirewallType | The type of firewall to connect through. |
| FirewallHost | The name or IP address of the firewall (optional). |
| FirewallPassword | A password if authentication is to be used when connecting through the firewall. |
| FirewallPort | The Transmission Control Protocol (TCP) port for the firewall Host . |
| FirewallUser | A username if authentication is to be used when connecting through a firewall. |
| FTPLastReply | The last reply from the FTP server. |
| LocalHost | The name of the local host or user-assigned IP interface through which connections are initiated or accepted. |
| LogDirectory | The path to a directory for logging. |
| LogFile | The log file written. |
| MDNOptions | Used to indicate the options requested for the MDN receipt. |
| MDNReceiptContent | This contains the entire content of the MDN Receipt. |
| MDNReceiptHeaderCount | The number of headers in the MDN. |
| MDNReceiptHeaderField | The property name of the MDN header currently selected by HeaderIndex . |
| MDNReceiptHeaderIndex | Which MDN header is currently selected to populate HeaderField and HeaderValue . |
| MDNReceiptHeaders | Headers contains all of the headers of the AS2 MDN Receipt as a single string. |
| MDNReceiptHeaderValue | The value of the MDN header currently selected by HeaderIndex . |
| MDNReceiptMDN | MDN will contain the entire machine readable text of the Message Disposition Notification in the receipt. |
| MDNReceiptMessage | The human-readable portion of the MDN receipt. |
| MDNReceiptMICValue | The Message Integrity Check(s) (one-way hash) of the original EDI message. |
| MDNReceiptSigningProtocol | This property contains the MIME type of the signature used, if any (i. |
| MDNTo | The system to which an MDN should be directed. |
| MessageId | The Id of the message. |
| OriginalContentMIC | The Message Integrity Check(s) (one-way hash) of the outgoing message. |
| Passive | This controls whether or not to direct the server into a passive mode. It is recommended if behind a firewall. |
| Password | This is the password used to log in. |
| ReceiptSignerCertEffectiveDate | The date on which this certificate becomes valid. |
| ReceiptSignerCertExpirationDate | The date on which the certificate expires. |
| ReceiptSignerCertExtendedKeyUsage | A comma-delimited list of extended key usage identifiers. |
| ReceiptSignerCertFingerprint | The hex-encoded, 16-byte MD5 fingerprint of the certificate. |
| ReceiptSignerCertFingerprintSHA1 | The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. |
| ReceiptSignerCertFingerprintSHA256 | The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. |
| ReceiptSignerCertIssuer | The issuer of the certificate. |
| ReceiptSignerCertPrivateKey | The private key of the certificate (if available). |
| ReceiptSignerCertPrivateKeyAvailable | Whether a PrivateKey is available for the selected certificate. |
| ReceiptSignerCertPrivateKeyContainer | The name of the PrivateKey container for the certificate (if available). |
| ReceiptSignerCertPublicKey | The public key of the certificate. |
| ReceiptSignerCertPublicKeyAlgorithm | The textual description of the certificate's public key algorithm. |
| ReceiptSignerCertPublicKeyLength | The length of the certificate's public key (in bits). |
| ReceiptSignerCertSerialNumber | The serial number of the certificate encoded as a string. |
| ReceiptSignerCertSignatureAlgorithm | The text description of the certificate's signature algorithm. |
| ReceiptSignerCertStore | The name of the certificate store for the client certificate. |
| ReceiptSignerCertStorePassword | If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store. |
| ReceiptSignerCertStoreType | The type of certificate store for this certificate. |
| ReceiptSignerCertSubjectAltNames | Comma-separated lists of alternative subject names for the certificate. |
| ReceiptSignerCertThumbprintMD5 | The MD5 hash of the certificate. |
| ReceiptSignerCertThumbprintSHA1 | The SHA-1 hash of the certificate. |
| ReceiptSignerCertThumbprintSHA256 | The SHA-256 hash of the certificate. |
| ReceiptSignerCertUsage | The text description of UsageFlags . |
| ReceiptSignerCertUsageFlags | The flags that show intended use for the certificate. |
| ReceiptSignerCertVersion | The certificate's version number. |
| ReceiptSignerCertSubject | The subject of the certificate used for client authentication. |
| ReceiptSignerCertEncoded | The certificate (PEM/Base64 encoded). |
| RecipientCertCount | The number of records in the RecipientCert arrays. |
| RecipientCertEffectiveDate | The date on which this certificate becomes valid. |
| RecipientCertExpirationDate | The date on which the certificate expires. |
| RecipientCertExtendedKeyUsage | A comma-delimited list of extended key usage identifiers. |
| RecipientCertFingerprint | The hex-encoded, 16-byte MD5 fingerprint of the certificate. |
| RecipientCertFingerprintSHA1 | The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. |
| RecipientCertFingerprintSHA256 | The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. |
| RecipientCertIssuer | The issuer of the certificate. |
| RecipientCertPrivateKey | The private key of the certificate (if available). |
| RecipientCertPrivateKeyAvailable | Whether a PrivateKey is available for the selected certificate. |
| RecipientCertPrivateKeyContainer | The name of the PrivateKey container for the certificate (if available). |
| RecipientCertPublicKey | The public key of the certificate. |
| RecipientCertPublicKeyAlgorithm | The textual description of the certificate's public key algorithm. |
| RecipientCertPublicKeyLength | The length of the certificate's public key (in bits). |
| RecipientCertSerialNumber | The serial number of the certificate encoded as a string. |
| RecipientCertSignatureAlgorithm | The text description of the certificate's signature algorithm. |
| RecipientCertStore | The name of the certificate store for the client certificate. |
| RecipientCertStorePassword | If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store. |
| RecipientCertStoreType | The type of certificate store for this certificate. |
| RecipientCertSubjectAltNames | Comma-separated lists of alternative subject names for the certificate. |
| RecipientCertThumbprintMD5 | The MD5 hash of the certificate. |
| RecipientCertThumbprintSHA1 | The SHA-1 hash of the certificate. |
| RecipientCertThumbprintSHA256 | The SHA-256 hash of the certificate. |
| RecipientCertUsage | The text description of UsageFlags . |
| RecipientCertUsageFlags | The flags that show intended use for the certificate. |
| RecipientCertVersion | The certificate's version number. |
| RecipientCertSubject | The subject of the certificate used for client authentication. |
| RecipientCertEncoded | The certificate (PEM/Base64 encoded). |
| RemoteHost | This is the domain name or IP address of the FTP server. |
| RemotePort | This is the port for the FTP service (default is 21). |
| SignatureAlgorithm | Signature algorithm to be used in outgoing messages. |
| SigningCertEffectiveDate | The date on which this certificate becomes valid. |
| SigningCertExpirationDate | The date on which the certificate expires. |
| SigningCertExtendedKeyUsage | A comma-delimited list of extended key usage identifiers. |
| SigningCertFingerprint | The hex-encoded, 16-byte MD5 fingerprint of the certificate. |
| SigningCertFingerprintSHA1 | The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. |
| SigningCertFingerprintSHA256 | The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. |
| SigningCertIssuer | The issuer of the certificate. |
| SigningCertPrivateKey | The private key of the certificate (if available). |
| SigningCertPrivateKeyAvailable | Whether a PrivateKey is available for the selected certificate. |
| SigningCertPrivateKeyContainer | The name of the PrivateKey container for the certificate (if available). |
| SigningCertPublicKey | The public key of the certificate. |
| SigningCertPublicKeyAlgorithm | The textual description of the certificate's public key algorithm. |
| SigningCertPublicKeyLength | The length of the certificate's public key (in bits). |
| SigningCertSerialNumber | The serial number of the certificate encoded as a string. |
| SigningCertSignatureAlgorithm | The text description of the certificate's signature algorithm. |
| SigningCertStore | The name of the certificate store for the client certificate. |
| SigningCertStorePassword | If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store. |
| SigningCertStoreType | The type of certificate store for this certificate. |
| SigningCertSubjectAltNames | Comma-separated lists of alternative subject names for the certificate. |
| SigningCertThumbprintMD5 | The MD5 hash of the certificate. |
| SigningCertThumbprintSHA1 | The SHA-1 hash of the certificate. |
| SigningCertThumbprintSHA256 | The SHA-256 hash of the certificate. |
| SigningCertUsage | The text description of UsageFlags . |
| SigningCertUsageFlags | The flags that show intended use for the certificate. |
| SigningCertVersion | The certificate's version number. |
| SigningCertSubject | The subject of the certificate used for client authentication. |
| SigningCertEncoded | The certificate (PEM/Base64 encoded). |
| SSLAcceptServerCertEffectiveDate | The date on which this certificate becomes valid. |
| SSLAcceptServerCertExpirationDate | The date on which the certificate expires. |
| SSLAcceptServerCertExtendedKeyUsage | A comma-delimited list of extended key usage identifiers. |
| SSLAcceptServerCertFingerprint | The hex-encoded, 16-byte MD5 fingerprint of the certificate. |
| SSLAcceptServerCertFingerprintSHA1 | The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. |
| SSLAcceptServerCertFingerprintSHA256 | The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. |
| SSLAcceptServerCertIssuer | The issuer of the certificate. |
| SSLAcceptServerCertPrivateKey | The private key of the certificate (if available). |
| SSLAcceptServerCertPrivateKeyAvailable | Whether a PrivateKey is available for the selected certificate. |
| SSLAcceptServerCertPrivateKeyContainer | The name of the PrivateKey container for the certificate (if available). |
| SSLAcceptServerCertPublicKey | The public key of the certificate. |
| SSLAcceptServerCertPublicKeyAlgorithm | The textual description of the certificate's public key algorithm. |
| SSLAcceptServerCertPublicKeyLength | The length of the certificate's public key (in bits). |
| SSLAcceptServerCertSerialNumber | The serial number of the certificate encoded as a string. |
| SSLAcceptServerCertSignatureAlgorithm | The text description of the certificate's signature algorithm. |
| SSLAcceptServerCertStore | The name of the certificate store for the client certificate. |
| SSLAcceptServerCertStorePassword | If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store. |
| SSLAcceptServerCertStoreType | The type of certificate store for this certificate. |
| SSLAcceptServerCertSubjectAltNames | Comma-separated lists of alternative subject names for the certificate. |
| SSLAcceptServerCertThumbprintMD5 | The MD5 hash of the certificate. |
| SSLAcceptServerCertThumbprintSHA1 | The SHA-1 hash of the certificate. |
| SSLAcceptServerCertThumbprintSHA256 | The SHA-256 hash of the certificate. |
| SSLAcceptServerCertUsage | The text description of UsageFlags . |
| SSLAcceptServerCertUsageFlags | The flags that show intended use for the certificate. |
| SSLAcceptServerCertVersion | The certificate's version number. |
| SSLAcceptServerCertSubject | The subject of the certificate used for client authentication. |
| SSLAcceptServerCertEncoded | The certificate (PEM/Base64 encoded). |
| SSLCertEffectiveDate | The date on which this certificate becomes valid. |
| SSLCertExpirationDate | The date on which the certificate expires. |
| SSLCertExtendedKeyUsage | A comma-delimited list of extended key usage identifiers. |
| SSLCertFingerprint | The hex-encoded, 16-byte MD5 fingerprint of the certificate. |
| SSLCertFingerprintSHA1 | The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. |
| SSLCertFingerprintSHA256 | The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. |
| SSLCertIssuer | The issuer of the certificate. |
| SSLCertPrivateKey | The private key of the certificate (if available). |
| SSLCertPrivateKeyAvailable | Whether a PrivateKey is available for the selected certificate. |
| SSLCertPrivateKeyContainer | The name of the PrivateKey container for the certificate (if available). |
| SSLCertPublicKey | The public key of the certificate. |
| SSLCertPublicKeyAlgorithm | The textual description of the certificate's public key algorithm. |
| SSLCertPublicKeyLength | The length of the certificate's public key (in bits). |
| SSLCertSerialNumber | The serial number of the certificate encoded as a string. |
| SSLCertSignatureAlgorithm | The text description of the certificate's signature algorithm. |
| SSLCertStore | The name of the certificate store for the client certificate. |
| SSLCertStorePassword | If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store. |
| SSLCertStoreType | The type of certificate store for this certificate. |
| SSLCertSubjectAltNames | Comma-separated lists of alternative subject names for the certificate. |
| SSLCertThumbprintMD5 | The MD5 hash of the certificate. |
| SSLCertThumbprintSHA1 | The SHA-1 hash of the certificate. |
| SSLCertThumbprintSHA256 | The SHA-256 hash of the certificate. |
| SSLCertUsage | The text description of UsageFlags . |
| SSLCertUsageFlags | The flags that show intended use for the certificate. |
| SSLCertVersion | The certificate's version number. |
| SSLCertSubject | The subject of the certificate used for client authentication. |
| SSLCertEncoded | The certificate (PEM/Base64 encoded). |
| SSLProvider | The Secure Sockets Layer/Transport Layer Security (SSL/TLS) implementation to use. |
| SSLServerCertEffectiveDate | The date on which this certificate becomes valid. |
| SSLServerCertExpirationDate | The date on which the certificate expires. |
| SSLServerCertExtendedKeyUsage | A comma-delimited list of extended key usage identifiers. |
| SSLServerCertFingerprint | The hex-encoded, 16-byte MD5 fingerprint of the certificate. |
| SSLServerCertFingerprintSHA1 | The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. |
| SSLServerCertFingerprintSHA256 | The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. |
| SSLServerCertIssuer | The issuer of the certificate. |
| SSLServerCertPrivateKey | The private key of the certificate (if available). |
| SSLServerCertPrivateKeyAvailable | Whether a PrivateKey is available for the selected certificate. |
| SSLServerCertPrivateKeyContainer | The name of the PrivateKey container for the certificate (if available). |
| SSLServerCertPublicKey | The public key of the certificate. |
| SSLServerCertPublicKeyAlgorithm | The textual description of the certificate's public key algorithm. |
| SSLServerCertPublicKeyLength | The length of the certificate's public key (in bits). |
| SSLServerCertSerialNumber | The serial number of the certificate encoded as a string. |
| SSLServerCertSignatureAlgorithm | The text description of the certificate's signature algorithm. |
| SSLServerCertStore | The name of the certificate store for the client certificate. |
| SSLServerCertStorePassword | If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store. |
| SSLServerCertStoreType | The type of certificate store for this certificate. |
| SSLServerCertSubjectAltNames | Comma-separated lists of alternative subject names for the certificate. |
| SSLServerCertThumbprintMD5 | The MD5 hash of the certificate. |
| SSLServerCertThumbprintSHA1 | The SHA-1 hash of the certificate. |
| SSLServerCertThumbprintSHA256 | The SHA-256 hash of the certificate. |
| SSLServerCertUsage | The text description of UsageFlags . |
| SSLServerCertUsageFlags | The flags that show intended use for the certificate. |
| SSLServerCertVersion | The certificate's version number. |
| SSLServerCertSubject | The subject of the certificate used for client authentication. |
| SSLServerCertEncoded | The certificate (PEM/Base64 encoded). |
| SSLStartMode | Determines how the class starts the SSL negotiation. By default, SSL will not be used. |
| Subject | The subject of the message. |
| Timeout | The timeout for the class. |
| User | This property contains the user identifier to use to log in. |
Method List
The following is the full list of the methods of the component with short descriptions. Click on the links for further details.
| Abort | The method aborts the current upload or download. |
| ChangeRemotePath | This method changes the current path on the FTP server. |
| Config | Sets or retrieves a configuration setting. |
| DeleteFile | This method removes a file specified by FileName from an FTP server. |
| GetFileSize | Gets the size of a file on the FTP server. |
| GetFileTime | Gets the last modification time of a file on the FTP server. |
| ListDirectory | List the current directory on an FTP server. |
| ListDirectoryLong | List the current directory on an FTP server. |
| Logoff | This method is used to log off from the FTP server by posting a QUIT command. |
| Logon | Logon to the FTP RemoteHost using the current User and Password . |
| QueryRemotePath | This queries the server for the current path. |
| ReadReceipt | Reads and parses (but does not verify) an MDN receipt. |
| Reset | Resets the state of the control. |
| Send | Prepares and sends the AS3 message. |
| SendFTPCommand | Sends the exact command directly to the server. |
| VerifyReceipt | Verifies an MDN receipt. |
Event List
The following is the full list of the events fired by the component with short descriptions. Click on the links for further details.
| ConnectionStatus | Fired to indicate changes in the connection state. |
| DirList | This event is fired when a directory entry is received. |
| EndTransfer | This event is fired when a file finishes downloading or uploading. |
| Error | Fired when information is available about errors during data delivery. |
| Log | Fired with log information while processing a message. |
| PITrail | This event traces the commands sent to the server, and the respective replies. |
| SSLServerAuthentication | Fired after the server presents its certificate to the client. |
| SSLStatus | Fired when secure connection progress messages are available. |
| StartTransfer | This event fires when a file starts downloading or uploading. |
| Transfer | This event is fired during the file download or upload. |
Config Settings
The following is a list of config settings for the component with short descriptions. Click on the links for further details.
| CalculateProcessingPercentDone | Whether to show the progress of file processing. |
| LogFilename | The base name of the log file. |
| LogonAfterProcessing | Whether to prepare the file before connecting to the FTP server. |
| ActiveModeIP | Allows the specification of the IP address that the server will connect to for active mode connections. |
| ActiveModePORTAddress | Allows the specification of the PORT address value for active mode connections. |
| AppendToLocalFile | Append downloaded files to a local file. |
| ApplyFileMaskLocally | Whether to filter the directory listing locally or on the server. |
| AutoSelectDataIP | Automatically select the data connection IP. |
| CalculatePercentDone | Enables or Disables calculating the percent complete for downloads. |
| CheckTotalEntry | Whether to ignore directory listing total lines. |
| DILinger | When set to True, DI connections are terminated gracefully. |
| DILingerTime | Time in seconds to have the DI connection linger. |
| FileTimeFormat | The format of file time reported by the server. |
| IgnoreEntries | Directory entry data to ignore. |
| MaskSensitiveData | Masks passwords in logs. |
| ModeZCompressionLevel | Used to specify the level of compression used. |
| PortRange | Allows the specification of a port range where the class listens for active mode connections. |
| PreserveFileTime | Attempts to preserve timestamps when transferring files. |
| RealTimeUpload | Enables real time uploading. |
| RealTimeUploadAgeLimit | The age limit in seconds when using RealTimeUpload. |
| ReusePISSLSessionInDI | Whether the PI SSL session will be reused for the DI connection. |
| ReuseSSLSessionInDI | Whether the SSL session will be reused for the DI connection. |
| UseClearChannel | Allows for the Clear Command Channel (CCC) command. |
| UseClearDataChannel | Allows for the PROT C command. |
| UseEPSV | Allows extended passive mode. |
| UseMLSD | Uses listings for machine processing. |
| UseMLST | Uses single file listing for machine processing. |
| UseModeZ | Allows compression to be used when transferring data. |
| UseOldAUTHSSL | Allows use of the 'AUTH SSL' command instead of 'AUTH TLS'. |
| UseProtWhenImplicit | Sends the PROT P command to the server. |
| UseRemoteHostAddressForPassive | Instructs the class to use the address specified by RemoteHost when establishing a data connection. |
| VirtualHostName | Sends the HOST command to the server. |
| ConnectionTimeout | Sets a separate timeout value for establishing a connection. |
| EnableHappyEyeballs | Whether to use the Happy Eyeballs algorithm when connecting. |
| FirewallAutoDetect | Tells the class whether or not to automatically detect and use firewall system settings, if available. |
| FirewallHost | Name or IP address of firewall (optional). |
| FirewallHTTPVersion | The HTTP version to be used when connecting through a tunneling proxy. |
| FirewallPassword | Password to be used if authentication is to be used when connecting through the firewall. |
| FirewallPort | The TCP port for the FirewallHost;. |
| FirewallTunnelAuthScheme | This configuration setting specifies the authentication mechanism to use when authenticating to a tunneling proxy. |
| FirewallType | Determines the type of firewall to connect through. |
| FirewallUser | A user name if authentication is to be used connecting through a firewall. |
| HappyEyeballsDelay | The delay, in milliseconds, between connection attempts when EnableHappyEyeballs is used. |
| KeepAliveInterval | The retry interval, in milliseconds, to be used when a TCP keep-alive packet is sent and no response is received. |
| KeepAliveTime | The inactivity time in milliseconds before a TCP keep-alive packet is sent. |
| Linger | When set to True, connections are terminated gracefully. |
| LingerTime | Time in seconds to have the connection linger. |
| LocalHost | The name of the local host through which connections are initiated or accepted. |
| LocalPort | The port in the local host where the class binds. |
| MaxLineLength | The maximum amount of data to accumulate when no EOL is found. |
| MaxTransferRate | The transfer rate limit in bytes per second. |
| ProxyExceptionsList | A semicolon separated list of hosts and IPs to bypass when using a proxy. |
| TCPKeepAlive | Determines whether or not the keep alive socket option is enabled. |
| TcpNoDelay | Whether or not to delay when sending packets. |
| UseIPv6 | Whether to use IPv6. |
| UseNTLMv2 | Whether to use NTLM V2. |
| LogSSLPackets | Controls whether SSL packets are logged when using the internal security API. |
| OpenSSLCADir | The path to a directory containing CA certificates. |
| OpenSSLCAFile | Name of the file containing the list of CA's trusted by your application. |
| OpenSSLCipherList | A string that controls the ciphers to be used by SSL. |
| OpenSSLPrngSeedData | The data to seed the pseudo random number generator (PRNG). |
| ReuseSSLSession | Determines if the SSL session is reused. |
| SSLCACerts | A newline separated list of CA certificates to be included when performing an SSL handshake. |
| SSLCheckCRL | Whether to check the Certificate Revocation List for the server certificate. |
| SSLCheckOCSP | Whether to use OCSP to check the status of the server certificate. |
| SSLCipherStrength | The minimum cipher strength used for bulk encryption. |
| SSLClientCACerts | A newline separated list of CA certificates to use during SSL client certificate validation. |
| SSLEnabledCipherSuites | The cipher suite to be used in an SSL negotiation. |
| SSLEnabledProtocols | Used to enable/disable the supported security protocols. |
| SSLEnableRenegotiation | Whether the renegotiation_info SSL extension is supported. |
| SSLIncludeCertChain | Whether the entire certificate chain is included in the SSLServerAuthentication event. |
| SSLKeyLogFile | The location of a file where per-session secrets are written for debugging purposes. |
| SSLNegotiatedCipher | Returns the negotiated cipher suite. |
| SSLNegotiatedCipherStrength | Returns the negotiated cipher suite strength. |
| SSLNegotiatedCipherSuite | Returns the negotiated cipher suite. |
| SSLNegotiatedKeyExchange | Returns the negotiated key exchange algorithm. |
| SSLNegotiatedKeyExchangeStrength | Returns the negotiated key exchange algorithm strength. |
| SSLNegotiatedVersion | Returns the negotiated protocol version. |
| SSLSecurityFlags | Flags that control certificate verification. |
| SSLServerCACerts | A newline separated list of CA certificates to use during SSL server certificate validation. |
| TLS12SignatureAlgorithms | Defines the allowed TLS 1.2 signature algorithms when SSLProvider is set to Internal. |
| TLS12SupportedGroups | The supported groups for ECC. |
| TLS13KeyShareGroups | The groups for which to pregenerate key shares. |
| TLS13SignatureAlgorithms | The allowed certificate signature algorithms. |
| TLS13SupportedGroups | The supported groups for (EC)DHE key exchange. |
| AbsoluteTimeout | Determines whether timeouts are inactivity timeouts or absolute timeouts. |
| FirewallData | Used to send extra data to the firewall. |
| InBufferSize | The size in bytes of the incoming queue of the socket. |
| OutBufferSize | The size in bytes of the outgoing queue of the socket. |
| BuildInfo | Information about the product's build. |
| CodePage | The system code page used for Unicode to Multibyte translations. |
| LicenseInfo | Information about the current license. |
| MaskSensitiveData | Whether sensitive data is masked in log messages. |
| UseInternalSecurityAPI | Whether or not to use the system security libraries or an internal implementation. |
AS3From Property (AS3Sender Component)
The identity of the sending system.
Syntax
func (obj *AS3Sender) AS3From() (string, error)
func (obj *AS3Sender) SetAS3From(value string) error
Default Value
""
Remarks
May be company name, DUNS number, or anything agreed on by trading partners.
Required.
Data Type
string
AS3To Property (AS3Sender Component)
The identity of the receiving system.
Syntax
func (obj *AS3Sender) AS3To() (string, error)
func (obj *AS3Sender) SetAS3To(value string) error
Default Value
""
Remarks
May be company name, DUNS number, or anything agreed on by trading partners.
Required.
Data Type
string
AS3Version Property (AS3Sender Component)
The version of AS3 being used.
Syntax
func (obj *AS3Sender) AS3Version() (string, error)
func (obj *AS3Sender) SetAS3Version(value string) error
Default Value
"1.0"
Remarks
The version of AS3 being used. Should be "1.0".
Data Type
string
AttachmentCount Property (AS3Sender Component)
The number of records in the Attachment arrays.
Syntax
func (obj *AS3Sender) AttachmentCount() (int32, error)
func (obj *AS3Sender) SetAttachmentCount(value int32) error
Default Value
0
Remarks
This property controls the size of the following arrays:
The array indices start at 0 and end at AttachmentCount - 1.Data Type
int32
AttachmentContentType Property (AS3Sender Component)
The MIME content-type of this ediattachment .
Syntax
func (obj *AS3Sender) AttachmentContentType(AttachmentIndex int32) (string, error)
func (obj *AS3Sender) SetAttachmentContentType(AttachmentIndex int32, value string) error
Default Value
""
Remarks
The MIME content-type of this EDIAttachment.
The AttachmentIndex parameter specifies the index of the item in the array. The size of the array is controlled by the AttachmentCount property.
Data Type
string
AttachmentData Property (AS3Sender Component)
This property contains the attachment data.
Syntax
func (obj *AS3Sender) AttachmentData(AttachmentIndex int32) ([]byte, error)
func (obj *AS3Sender) SetAttachmentData(AttachmentIndex int32, value []byte) error
Default Value
""
Remarks
This property contains the attachment data.
In a receiver, the component decodes the attachment to the AttachmentData property when AttachmentData's value is first queried. This property will contain the full decrypted text of the attachment.
The AttachmentIndex parameter specifies the index of the item in the array. The size of the array is controlled by the AttachmentCount property.
Data Type
[]byte
AttachmentFileName Property (AS3Sender Component)
The file name of the attachment.
Syntax
func (obj *AS3Sender) AttachmentFileName(AttachmentIndex int32) (string, error)
func (obj *AS3Sender) SetAttachmentFileName(AttachmentIndex int32, value string) error
Default Value
""
Remarks
The file name of the attachment. If IncomingDirectory has been specified, the attachment will be written to the specified directory and the name will be provided by this property. Otherwise, this will contain the name of the attachment as described in the AttachmentHeaders.
The AttachmentIndex parameter specifies the index of the item in the array. The size of the array is controlled by the AttachmentCount property.
Data Type
string
AttachmentHeaders Property (AS3Sender Component)
The class fills out Headers each time any of the other properties for that ediattachment are changed.
Syntax
func (obj *AS3Sender) AttachmentHeaders(AttachmentIndex int32) (string, error)
func (obj *AS3Sender) SetAttachmentHeaders(AttachmentIndex int32, value string) error
Default Value
""
Remarks
The component fills out AttachmentHeaders each time any of the other properties for that EDIAttachment are changed. If additional headers are needed they should be appended after all the other properties for that EDIAttachment are set.
The AttachmentIndex parameter specifies the index of the item in the array. The size of the array is controlled by the AttachmentCount property.
Data Type
string
AttachmentName Property (AS3Sender Component)
Name is the final name to be associated with the contents of either the Data or FileName properties.
Syntax
func (obj *AS3Sender) AttachmentName(AttachmentIndex int32) (string, error)
func (obj *AS3Sender) SetAttachmentName(AttachmentIndex int32, value string) error
Default Value
""
Remarks
AttachmentName is the final name to be associated with the contents of either the AttachmentData or AttachmentFileName properties. This corresponds to the filename attribute of the Content-Disposition header for this attachment.
The AttachmentIndex parameter specifies the index of the item in the array. The size of the array is controlled by the AttachmentCount property.
Data Type
string
CompressionFormat Property (AS3Sender Component)
The compression format (if any) to use.
Syntax
func (obj *AS3Sender) CompressionFormat() (int32, error)
func (obj *AS3Sender) SetCompressionFormat(value int32) error
Possible Values
0 // None
1 // ZLIB
Default Value
0
Remarks
By default, outgoing data will not be compressed. Setting this property will instruct the component to compress the outgoing data using the indicated format.
Compression is highly recommended for large messages, as it will reduce network bandwidth and processing time required.
The compression algorithm used is Zlib, as required by RFC 3274 and defined in RFCs 1950 and 1951.
Data Type
int32
Connected Property (AS3Sender Component)
Whether the class is connected.
Syntax
func (obj *AS3Sender) Connected() (bool, error)
Default Value
false
Remarks
This property is used to determine whether or not the component is connected to the remote host. Use the Connect and Disconnect methods to manage the connection.
This property is read-only.
Data Type
bool
EDIData Property (AS3Sender Component)
This property contains the EDI payload of the transmission.
Syntax
func (obj *AS3Sender) EDIData() ([]byte, error)
func (obj *AS3Sender) SetEDIData(value []byte) error
Default Value
""
Remarks
This property contains the EDI payload of the transmission.
In a receiver, this property will only be populated if IncomingDirectory and EDIOutputStream have not been specified and ParseRequest finishes without an error, setting ScanResult to 0. If so, Data will contain the full decrypted text of the EDI message.
Data Type
[]byte
EDIType Property (AS3Sender Component)
The Content-Type of the EDI message.
Syntax
func (obj *AS3Sender) EDIType() (string, error)
func (obj *AS3Sender) SetEDIType(value string) error
Default Value
""
Remarks
The Content-Type of the EDI message. Sample values might be "application/edi-x12", "application/edifact" or "application/xml".
Data Type
string
EDIName Property (AS3Sender Component)
Name is the final name to be associated with the contents of either the Data or FileName properties.
Syntax
func (obj *AS3Sender) EDIName() (string, error)
func (obj *AS3Sender) SetEDIName(value string) error
Default Value
"rfc1767.edi"
Remarks
EDIName is the final name to be associated with the contents of either the EDIData or EDIFileName properties. This corresponds to the filename attribute of the Content-Disposition header for the EDI payload.
When constructing EDI data to be sent, EDIName will be set to the same value as EDIFileName, but can be overridden after setting EDIFileName to indicate that another name should be used in the outbound request's Content-Disposition MIME header.
When receiving EDI data, EDIName will be read out of the "filename" attribute of the inbound request's Content-Disposition MIME header.
Data Type
string
EDIFileName Property (AS3Sender Component)
In a sender, if FileName is specified, the file specified will be used for the EDI payload of the transmission.
Syntax
func (obj *AS3Sender) EDIFileName() (string, error)
func (obj *AS3Sender) SetEDIFileName(value string) error
Default Value
""
Remarks
In a sender, if EDIFileName is specified, the file specified will be used for the EDI payload of the transmission. EDIName will be populated with the name of the file.
In a receiver, when IncomingDirectory is set, this will be populated with the absolute path of the file which contains the processed message contents.
Note: When EDIOutputStream is set, the data will be written to the stream and this property will not be populated.
Data Type
string
EncryptionAlgorithm Property (AS3Sender Component)
The algorithm used to encrypt the EDI data.
Syntax
func (obj *AS3Sender) EncryptionAlgorithm() (string, error)
func (obj *AS3Sender) SetEncryptionAlgorithm(value string) error
Default Value
"AESCBC256"
Remarks
If RecipientCerts contains a valid certificate, the data will be encrypted using this certificate and the algorithm specified in EncryptionAlgorithm. If EncryptionAlgorithm is set to the empty string, the data will not be encrypted.
The component supports "AESCBC256", or industry-standard 256-bit AES-CBC encryption, by default.
The component supports "AES" encryption with a default keysize of 128 bits. You may also set "AESCBC192", "AESCBC256", "AESGCM128", "AESGCM192", or "AESGCM256" for other AES modes and keysizes. 3DES and DES remain available for legacy interoperability.
Possible values are:
- 3DES
- DES
- AESCBC128
- AESCBC192
- AESCBC256 (default)
- AESGCM128
- AESGCM192
- AESGCM256
Data Type
string
FirewallAutoDetect Property (AS3Sender Component)
Whether to automatically detect and use firewall system settings, if available.
Syntax
func (obj *AS3Sender) FirewallAutoDetect() (bool, error)
func (obj *AS3Sender) SetFirewallAutoDetect(value bool) error
Default Value
false
Remarks
Whether to automatically detect and use firewall system settings, if available.
Data Type
bool
FirewallType Property (AS3Sender Component)
The type of firewall to connect through.
Syntax
func (obj *AS3Sender) FirewallType() (int32, error)
func (obj *AS3Sender) SetFirewallType(value int32) error
Possible Values
0 // None
1 // Tunnel
2 // SOCKS4
3 // SOCKS5
10 // SOCKS4A
Default Value
0
Remarks
The type of firewall to connect through. The applicable values are as follows:
| fwNone (0) | No firewall (default setting). |
| fwTunnel (1) | Connect through a tunneling proxy. FirewallPort is set to 80. |
| fwSOCKS4 (2) | Connect through a SOCKS4 Proxy. FirewallPort is set to 1080. |
| fwSOCKS5 (3) | Connect through a SOCKS5 Proxy. FirewallPort is set to 1080. |
| fwSOCKS4A (10) | Connect through a SOCKS4A Proxy. FirewallPort is set to 1080. |
Data Type
int32
FirewallHost Property (AS3Sender Component)
The name or IP address of the firewall (optional).
Syntax
func (obj *AS3Sender) FirewallHost() (string, error)
func (obj *AS3Sender) SetFirewallHost(value string) error
Default Value
""
Remarks
The name or IP address of the firewall (optional). If a FirewallHost is given, the requested connections will be authenticated through the specified firewall when connecting.
If this property is set to a Domain Name, a DNS request is initiated. Upon successful termination of the request, this property is set to the corresponding address. If the search is not successful, the component fails with an error.
Data Type
string
FirewallPassword Property (AS3Sender Component)
A password if authentication is to be used when connecting through the firewall.
Syntax
func (obj *AS3Sender) FirewallPassword() (string, error)
func (obj *AS3Sender) SetFirewallPassword(value string) error
Default Value
""
Remarks
A password if authentication is to be used when connecting through the firewall. If FirewallHost is specified, the FirewallUser and FirewallPassword properties are used to connect and authenticate to the given firewall. If the authentication fails, the component fails with an error.
Data Type
string
FirewallPort Property (AS3Sender Component)
The Transmission Control Protocol (TCP) port for the firewall Host .
Syntax
func (obj *AS3Sender) FirewallPort() (int32, error)
func (obj *AS3Sender) SetFirewallPort(value int32) error
Default Value
0
Remarks
The Transmission Control Protocol (TCP) port for the firewall FirewallHost. See the description of the FirewallHost property for details.
NOTE: This property is set automatically when FirewallType is set to a valid value. See the description of the FirewallType property for details.
Data Type
int32
FirewallUser Property (AS3Sender Component)
A username if authentication is to be used when connecting through a firewall.
Syntax
func (obj *AS3Sender) FirewallUser() (string, error)
func (obj *AS3Sender) SetFirewallUser(value string) error
Default Value
""
Remarks
A username if authentication is to be used when connecting through a firewall. If FirewallHost is specified, this property and the FirewallPassword property are used to connect and authenticate to the given Firewall. If the authentication fails, the component fails with an error.
Data Type
string
FTPLastReply Property (AS3Sender Component)
The last reply from the FTP server.
Syntax
func (obj *AS3Sender) FTPLastReply() (string, error)
Default Value
""
Remarks
The last reply from the FTP server.
This property is read-only.
Data Type
string
LocalHost Property (AS3Sender Component)
The name of the local host or user-assigned IP interface through which connections are initiated or accepted.
Syntax
func (obj *AS3Sender) LocalHost() (string, error)
func (obj *AS3Sender) SetLocalHost(value string) error
Default Value
""
Remarks
This property contains the name of the local host as obtained by the gethostname() system call, or if the user has assigned an IP address, the value of that address.
In multihomed hosts (machines with more than one IP interface) setting LocalHost to the IP address of an interface will make the component initiate connections (or accept in the case of server components) only through that interface. It is recommended to provide an IP address rather than a hostname when setting this property to ensure the desired interface is used.
If the component is connected, the LocalHost property shows the IP address of the interface through which the connection is made in internet dotted format (aaa.bbb.ccc.ddd). In most cases, this is the address of the local host, except for multihomed hosts (machines with more than one IP interface).
NOTE: LocalHost is not persistent. You must always set it in code, and never in the property window.
Data Type
string
LogDirectory Property (AS3Sender Component)
The path to a directory for logging.
Syntax
func (obj *AS3Sender) LogDirectory() (string, error)
func (obj *AS3Sender) SetLogDirectory(value string) error
Default Value
""
Remarks
Setting LogDirectory will instruct the component to log the details of each transmission to unique files in the specified directory. For each request processed, the component will log the original EDI data, the complete text of the outgoing request and the incoming response.
The component will write a file for each transmission, with extension ".log". In case of error an additional file will be written with extension ".err", and the error will be reported in both files. Raw AS3 messages created or downloaded by the component will be written with extension ".as3", and MDNs created or downloaded will be written with extension ".as3-mdn".
The filenames will be chosen automatically by the component. Each filename will be the system time, in the format YYYY-MM-DD-HH-MM-SS-MMMM, with extensions "-2", "-3", used in case files of those names already exist. After each transaction is processed LogFile will contain the name of the files just written, minus the extension ".log" or ".err".
If logs cannot be written an exception will be thrown.
Data Type
string
LogFile Property (AS3Sender Component)
The log file written.
Syntax
func (obj *AS3Sender) LogFile() (string, error)
Default Value
""
Remarks
In case LogDirectory is specified two log files will be written in the specified directory and LogFile will contain the path.
LogFile will in fact refer to several files with appropriate extensions. A diagnostic log will be written with filename LogFile + ".log", and any EDI data read will be written with filename LogFile + ".dat". Raw AS3 messages and MDNs will also be written with extensions ".as3" and ".as3-mdn".
This property is read-only.
Data Type
string
MDNOptions Property (AS3Sender Component)
Used to indicate the options requested for the MDN receipt.
Syntax
func (obj *AS3Sender) MDNOptions() (string, error)
func (obj *AS3Sender) SetMDNOptions(value string) error
Default Value
"signed-receipt-protocol=optional, pkcs7-signature; signed-receipt-micalg=optional, sha-256"
Remarks
By default, the component will request that the MDN be signed with a PKCS#7 signature over a SHA-256 hash, which is the industry standard.
Set MDNOptions to an empty string to request an unsigned receipt.
This property will automatically be updated when SignatureAlgorithm is set. Normally you will not need to set this property, however you can set a value here to override the automatically generated value.
The string format is that of the Disposition-Notification-Options HTTP header, as specified in RFC 3335. As a form of shorthand, you may set this property to "sha1", "sha-256", or "md5" to request the indicated hash algorithm.
When AS2Version is set to "1.3", MD5, SHA-1, and SHA-224 are not allowed in the requested MIC algorithms. SHA-256, SHA-384, or SHA-512 are recommended instead.
Data Type
string
MDNReceiptContent Property (AS3Sender Component)
This contains the entire content of the MDN Receipt.
Syntax
func (obj *AS3Sender) MDNReceiptContent() ([]byte, error)
func (obj *AS3Sender) SetMDNReceiptContent(value []byte) error
Default Value
""
Remarks
This contains the entire content of the MDN Receipt. This is a multipart/report entity consisting of a machine readable MDNReceiptMDN (Message Disposition Notification) and a human readable MDNReceiptMessage, which itself may be embedded in a multipart/signed entity if requested by the AS2 sender.
Data Type
[]byte
MDNReceiptHeaderCount Property (AS3Sender Component)
The number of headers in the MDN.
Syntax
func (obj *AS3Sender) MDNReceiptHeaderCount() (int32, error)
Default Value
0
Remarks
The number of headers in the MDN.
This property is read-only.
Data Type
int32
MDNReceiptHeaderField Property (AS3Sender Component)
The property name of the MDN header currently selected by HeaderIndex .
Syntax
func (obj *AS3Sender) MDNReceiptHeaderField() (string, error)
Default Value
""
Remarks
The field name of the MDN header currently selected by MDNReceiptHeaderIndex.
This property is read-only.
Data Type
string
MDNReceiptHeaderIndex Property (AS3Sender Component)
Which MDN header is currently selected to populate HeaderField and HeaderValue .
Syntax
func (obj *AS3Sender) MDNReceiptHeaderIndex() (int32, error)
func (obj *AS3Sender) SetMDNReceiptHeaderIndex(value int32) error
Default Value
0
Remarks
Which MDN header is currently selected to populate MDNReceiptHeaderField and MDNReceiptHeaderValue.
Valid values are 0 to MDNReceiptHeaderCount - 1.
Data Type
int32
MDNReceiptHeaders Property (AS3Sender Component)
Headers contains all of the headers of the AS2 MDN Receipt as a single string.
Syntax
func (obj *AS3Sender) MDNReceiptHeaders() (string, error)
func (obj *AS3Sender) SetMDNReceiptHeaders(value string) error
Default Value
""
Remarks
Headers contains all of the headers of the AS2 MDN Receipt as a single string. This will include headers such as AS2-From, AS2-To, Date, Content-Type, etc. In an AS2Sender, these will also contain the transport headers of the MDN Receipt (HTTP or SMTP headers, depending on the delivery option).
You can also use MDNReceiptHeaderCount, MDNReceiptHeaderIndex, MDNReceiptHeaderField, and MDNReceiptHeaderValue to easily iterate through each individual header.
Data Type
string
MDNReceiptHeaderValue Property (AS3Sender Component)
The value of the MDN header currently selected by HeaderIndex .
Syntax
func (obj *AS3Sender) MDNReceiptHeaderValue() (string, error)
Default Value
""
Remarks
The value of the MDN header currently selected by MDNReceiptHeaderIndex.
This property is read-only.
Data Type
string
MDNReceiptMDN Property (AS3Sender Component)
MDN will contain the entire machine readable text of the Message Disposition Notification in the receipt.
Syntax
func (obj *AS3Sender) MDNReceiptMDN() (string, error)
Default Value
""
Remarks
MDN will contain the entire machine readable text of the Message Disposition Notification in the receipt. It will report either success or failure depending on the processing status of the receiver. In either case, it will be RFC-compliant.
This property is read-only.
Data Type
string
MDNReceiptMessage Property (AS3Sender Component)
The human-readable portion of the MDN receipt.
Syntax
func (obj *AS3Sender) MDNReceiptMessage() (string, error)
Default Value
""
Remarks
The human-readable portion of the MDN receipt.
The human-readable portion of the MDN receipt that indicates the status of the message processing. This can be used to provide the user with a helpful message in the event that an error is encountered.
This property is read-only.
Data Type
string
MDNReceiptMICValue Property (AS3Sender Component)
The Message Integrity Check(s) (one-way hash) of the original EDI message.
Syntax
func (obj *AS3Sender) MDNReceiptMICValue() (string, error)
Default Value
""
Remarks
The Message Integrity Check(s) (one-way hash) of the original EDI message.
An MDN Receipt contains a MIC calculated over the EDI message that the receipt is in response to, to be matched on the sender side against a saved value for the original request to ensure that the integrity of the data that the receiver reports is preserved. When a signed receipt is requested, the MIC is be calculated using the algorithm used on the incoming message's signature, or SHA-1 if the incoming message is not signed.
The MIC will be base64 encoded and reported with the algorithm name as
specified in RFC 3335; e.g., w7AguNJEmhF/qIjJw6LnnA==, md5.
This property is read-only.
Data Type
string
MDNReceiptSigningProtocol Property (AS3Sender Component)
This property contains the MIME type of the signature used, if any (i.
Syntax
func (obj *AS3Sender) MDNReceiptSigningProtocol() (string, error)
Default Value
""
Remarks
This property contains the MIME type of the signature used, if any (i.e., "application/pkcs7-signature"), to create this MDNReceipt. It will contain an empty string if the receipt is unsigned.
This property is read-only.
Data Type
string
MDNTo Property (AS3Sender Component)
The system to which an MDN should be directed.
Syntax
func (obj *AS3Sender) MDNTo() (string, error)
func (obj *AS3Sender) SetMDNTo(value string) error
Default Value
""
Remarks
If this property is set, a Disposition-Notification-To header will be added to the request, and an MDN will be requested. You should specify a valid FTP URL for the request, e.g., "ftp://123.0.0.1".
By default, the component will request a PKCS#7 signature signed over SHA-1. You may set MDNOptions to customize this.
Data Type
string
MessageId Property (AS3Sender Component)
The Id of the message.
Syntax
func (obj *AS3Sender) MessageId() (string, error)
func (obj *AS3Sender) SetMessageId(value string) error
Default Value
""
Remarks
The Id format is as in RFC 2822: id-left@id-right .
A unique Id will automatically be generated on startup. Sending a message will reset id-left if the MessageId has been used in the previous message.
If you set MessageId to a string of the form "@(id-right)" a unique id-left will be generated. If you set MessageId to an empty string, a new MessageId will be generated with the same id-right.
After an MDNReceipt is returned or set, MessageId will contain the Original-Message-ID found in the MDN Receipt.
Data Type
string
OriginalContentMIC Property (AS3Sender Component)
The Message Integrity Check(s) (one-way hash) of the outgoing message.
Syntax
func (obj *AS3Sender) OriginalContentMIC() (string, error)
func (obj *AS3Sender) SetOriginalContentMIC(value string) error
Default Value
""
Remarks
A MIC will be calculated over the outgoing message using the same algorithm in the SignatureAlgorithm configuration used to sign the message. The property will be set when Post (in AS3, Send) is invoked, and the MIC will automatically be checked against the Original-Content-MIC in the MDN for synchronous MDNs.
The format is in RFC 3335, i.e. w7AguNJEmhF/qIjJw6LnnA==, md5, with a newline at the end.
If you are requesting an asynchronous MDN, you must save this value externally so that it can be loaded when the MDN is received (you may also use AsyncMDNInfoDir).
Data Type
string
Passive Property (AS3Sender Component)
This controls whether or not to direct the server into a passive mode. It is recommended if behind a firewall.
Syntax
func (obj *AS3Sender) Passive() (bool, error)
func (obj *AS3Sender) SetPassive(value bool) error
Default Value
true
Remarks
This property controls whether or not to direct the server into a passive mode. Many firewalls will not allow the FTP server to open a connection from outside to the higher ports where the FTP client component expects them to be. If Passive is set to TRUE, the component will use the PASV command instead of the PORT command and thus will direct the server into a passive mode: connections are initiated only by the client.
Data Type
bool
Password Property (AS3Sender Component)
This is the password used to log in.
Syntax
func (obj *AS3Sender) Password() (string, error)
func (obj *AS3Sender) SetPassword(value string) error
Default Value
""
Remarks
This property contains the password used to log in. It must be set before the component connects to the FTP server.
Data Type
string
ReceiptSignerCertEffectiveDate Property (AS3Sender Component)
The date on which this certificate becomes valid.
Syntax
func (obj *AS3Sender) ReceiptSignerCertEffectiveDate() (string, error)
Default Value
""
Remarks
The date on which this certificate becomes valid. Before this date, it is not valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2000 15:00:00.
This property is read-only.
Data Type
string
ReceiptSignerCertExpirationDate Property (AS3Sender Component)
The date on which the certificate expires.
Syntax
func (obj *AS3Sender) ReceiptSignerCertExpirationDate() (string, error)
Default Value
""
Remarks
The date on which the certificate expires. After this date, the certificate will no longer be valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2001 15:00:00.
This property is read-only.
Data Type
string
ReceiptSignerCertExtendedKeyUsage Property (AS3Sender Component)
A comma-delimited list of extended key usage identifiers.
Syntax
func (obj *AS3Sender) ReceiptSignerCertExtendedKeyUsage() (string, error)
Default Value
""
Remarks
A comma-delimited list of extended key usage identifiers. These are the same as ASN.1 object identifiers (OIDs).
This property is read-only.
Data Type
string
ReceiptSignerCertFingerprint Property (AS3Sender Component)
The hex-encoded, 16-byte MD5 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertFingerprint() (string, error)
Default Value
""
Remarks
The hex-encoded, 16-byte MD5 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: bc:2a:72:af:fe:58:17:43:7a:5f:ba:5a:7c:90:f7:02
This property is read-only.
Data Type
string
ReceiptSignerCertFingerprintSHA1 Property (AS3Sender Component)
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertFingerprintSHA1() (string, error)
Default Value
""
Remarks
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 30:7b:fa:38:65:83:ff:da:b4:4e:07:3f:17:b8:a4:ed:80:be:ff:84
This property is read-only.
Data Type
string
ReceiptSignerCertFingerprintSHA256 Property (AS3Sender Component)
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertFingerprintSHA256() (string, error)
Default Value
""
Remarks
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 6a:80:5c:33:a9:43:ea:b0:96:12:8a:64:96:30:ef:4a:8a:96:86:ce:f4:c7:be:10:24:8e:2b:60:9e:f3:59:53
This property is read-only.
Data Type
string
ReceiptSignerCertIssuer Property (AS3Sender Component)
The issuer of the certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertIssuer() (string, error)
Default Value
""
Remarks
The issuer of the certificate. This property contains a string representation of the name of the issuing authority for the certificate.
This property is read-only.
Data Type
string
ReceiptSignerCertPrivateKey Property (AS3Sender Component)
The private key of the certificate (if available).
Syntax
func (obj *AS3Sender) ReceiptSignerCertPrivateKey() (string, error)
Default Value
""
Remarks
The private key of the certificate (if available). The key is provided as PEM/Base64-encoded data.
NOTE: The ReceiptSignerCertPrivateKey may be available but not exportable. In this case, ReceiptSignerCertPrivateKey returns an empty string.
This property is read-only.
Data Type
string
ReceiptSignerCertPrivateKeyAvailable Property (AS3Sender Component)
Whether a PrivateKey is available for the selected certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertPrivateKeyAvailable() (bool, error)
Default Value
false
Remarks
Whether a ReceiptSignerCertPrivateKey is available for the selected certificate. If ReceiptSignerCertPrivateKeyAvailable is True, the certificate may be used for authentication purposes (e.g., server authentication).
This property is read-only.
Data Type
bool
ReceiptSignerCertPrivateKeyContainer Property (AS3Sender Component)
The name of the PrivateKey container for the certificate (if available).
Syntax
func (obj *AS3Sender) ReceiptSignerCertPrivateKeyContainer() (string, error)
Default Value
""
Remarks
The name of the ReceiptSignerCertPrivateKey container for the certificate (if available). This functionality is available only on Windows platforms.
This property is read-only.
Data Type
string
ReceiptSignerCertPublicKey Property (AS3Sender Component)
The public key of the certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertPublicKey() (string, error)
Default Value
""
Remarks
The public key of the certificate. The key is provided as PEM/Base64-encoded data.
This property is read-only.
Data Type
string
ReceiptSignerCertPublicKeyAlgorithm Property (AS3Sender Component)
The textual description of the certificate's public key algorithm.
Syntax
func (obj *AS3Sender) ReceiptSignerCertPublicKeyAlgorithm() (string, error)
Default Value
""
Remarks
The textual description of the certificate's public key algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_DH") or an object identifier (OID) string representing the algorithm.
This property is read-only.
Data Type
string
ReceiptSignerCertPublicKeyLength Property (AS3Sender Component)
The length of the certificate's public key (in bits).
Syntax
func (obj *AS3Sender) ReceiptSignerCertPublicKeyLength() (int32, error)
Default Value
0
Remarks
The length of the certificate's public key (in bits). Common values are 512, 1024, and 2048.
This property is read-only.
Data Type
int32
ReceiptSignerCertSerialNumber Property (AS3Sender Component)
The serial number of the certificate encoded as a string.
Syntax
func (obj *AS3Sender) ReceiptSignerCertSerialNumber() (string, error)
Default Value
""
Remarks
The serial number of the certificate encoded as a string. The number is encoded as a series of hexadecimal digits, with each pair representing a byte of the serial number.
This property is read-only.
Data Type
string
ReceiptSignerCertSignatureAlgorithm Property (AS3Sender Component)
The text description of the certificate's signature algorithm.
Syntax
func (obj *AS3Sender) ReceiptSignerCertSignatureAlgorithm() (string, error)
Default Value
""
Remarks
The text description of the certificate's signature algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_MD5RSA") or an object identifier (OID) string representing the algorithm.
This property is read-only.
Data Type
string
ReceiptSignerCertStore Property (AS3Sender Component)
The name of the certificate store for the client certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertStore() ([]byte, error)
func (obj *AS3Sender) SetReceiptSignerCertStore(value []byte) error
Default Value
"MY"
Remarks
The name of the certificate store for the client certificate.
The ReceiptSignerCertStoreType property denotes the type of the certificate store specified by ReceiptSignerCertStore. If the store is password-protected, specify the password in ReceiptSignerCertStorePassword.
ReceiptSignerCertStore is used in conjunction with the ReceiptSignerCertSubject property to specify client certificates. If ReceiptSignerCertStore has a value, and ReceiptSignerCertSubject or ReceiptSignerCertEncoded is set, a search for a certificate is initiated. Please see the ReceiptSignerCertSubject property for details.
Designations of certificate stores are platform dependent.
The following designations are the most common User and Machine certificate stores in Windows:
| MY | A certificate store holding personal certificates with their associated private keys. |
| CA | Certifying authority certificates. |
| ROOT | Root certificates. |
When the certificate store type is cstPFXFile, this property must be set to the name of the file. When the type is cstPFXBlob, the property must be set to the binary contents of a PFX file (i.e., PKCS#12 certificate store).
Data Type
[]byte
ReceiptSignerCertStorePassword Property (AS3Sender Component)
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Syntax
func (obj *AS3Sender) ReceiptSignerCertStorePassword() (string, error)
func (obj *AS3Sender) SetReceiptSignerCertStorePassword(value string) error
Default Value
""
Remarks
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Data Type
string
ReceiptSignerCertStoreType Property (AS3Sender Component)
The type of certificate store for this certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertStoreType() (int32, error)
func (obj *AS3Sender) SetReceiptSignerCertStoreType(value int32) error
Possible Values
0 // User
1 // Machine
2 // PFXFile
3 // PFXBlob
4 // JKSFile
5 // JKSBlob
6 // PEMKeyFile
7 // PEMKeyBlob
8 // PublicKeyFile
9 // PublicKeyBlob
10 // SSHPublicKeyBlob
11 // P7BFile
12 // P7BBlob
13 // SSHPublicKeyFile
14 // PPKFile
15 // PPKBlob
16 // XMLFile
17 // XMLBlob
18 // JWKFile
19 // JWKBlob
20 // SecurityKey
21 // BCFKSFile
22 // BCFKSBlob
23 // PKCS11
99 // Auto
Default Value
0
Remarks
The type of certificate store for this certificate.
The component supports both public and private keys in a variety of formats. When the cstAuto value is used, the component will automatically determine the type. This property can take one of the following values:
| 0 (cstUser - default) | For Windows, this specifies that the certificate store is a certificate store owned by the current user.
NOTE: This store type is not available in Java. |
| 1 (cstMachine) | For Windows, this specifies that the certificate store is a machine store.
NOTE: This store type is not available in Java. |
| 2 (cstPFXFile) | The certificate store is the name of a PFX (PKCS#12) file containing certificates. |
| 3 (cstPFXBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in PFX (PKCS#12) format. |
| 4 (cstJKSFile) | The certificate store is the name of a Java Key Store (JKS) file containing certificates.
NOTE: This store type is only available in Java. |
| 5 (cstJKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in Java Key Store (JKS) format.
NOTE: This store type is only available in Java. |
| 6 (cstPEMKeyFile) | The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate. |
| 7 (cstPEMKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a private key and an optional certificate. |
| 8 (cstPublicKeyFile) | The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate. |
| 9 (cstPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a PEM- or DER-encoded public key certificate. |
| 10 (cstSSHPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains an SSH-style public key. |
| 11 (cstP7BFile) | The certificate store is the name of a PKCS#7 file containing certificates. |
| 12 (cstP7BBlob) | The certificate store is a string (binary) representing a certificate store in PKCS#7 format. |
| 13 (cstSSHPublicKeyFile) | The certificate store is the name of a file that contains an SSH-style public key. |
| 14 (cstPPKFile) | The certificate store is the name of a file that contains a PPK (PuTTY Private Key). |
| 15 (cstPPKBlob) | The certificate store is a string (binary) that contains a PPK (PuTTY Private Key). |
| 16 (cstXMLFile) | The certificate store is the name of a file that contains a certificate in XML format. |
| 17 (cstXMLBlob) | The certificate store is a string that contains a certificate in XML format. |
| 18 (cstJWKFile) | The certificate store is the name of a file that contains a JWK (JSON Web Key). |
| 19 (cstJWKBlob) | The certificate store is a string that contains a JWK (JSON Web Key). |
| 21 (cstBCFKSFile) | The certificate store is the name of a file that contains a BCFKS (Bouncy Castle FIPS Key Store).
NOTE: This store type is only available in Java and .NET. |
| 22 (cstBCFKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in BCFKS (Bouncy Castle FIPS Key Store) format.
NOTE: This store type is only available in Java and .NET. |
| 23 (cstPKCS11) | The certificate is present on a physical security key accessible via a PKCS#11 interface.
To use a security key, create a new Certificate object and pass cstPKCS11 as the ReceiptSignerCertStoreType, the full path of the PKCS#11 DLL as the ReceiptSignerCertStore, and the PIN as the ReceiptSignerCertStorePassword. Code Example. SSH Authentication with Security Key (without CertMgr):
Alternatively, collect the necessary data using the CertMgr component by calling the ListStoreCertificates method after setting the corresponding properties accordingly. The certificate information returned in the CertList event's CertEncoded parameter may be saved for later use. When using a certificate obtained with this approach, pass the previously saved security key information as the ReceiptSignerCertStore and set ReceiptSignerCertStorePassword to the PIN. Code Example. SSH Authentication with Security Key (with CertMgr):
|
| 99 (cstAuto) | The store type is automatically detected from the input data. This setting may be used with both public and private keys and can detect any of the supported formats automatically. |
Data Type
int32
ReceiptSignerCertSubjectAltNames Property (AS3Sender Component)
Comma-separated lists of alternative subject names for the certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertSubjectAltNames() (string, error)
Default Value
""
Remarks
Comma-separated lists of alternative subject names for the certificate.
This property is read-only.
Data Type
string
ReceiptSignerCertThumbprintMD5 Property (AS3Sender Component)
The MD5 hash of the certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertThumbprintMD5() (string, error)
Default Value
""
Remarks
The MD5 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
ReceiptSignerCertThumbprintSHA1 Property (AS3Sender Component)
The SHA-1 hash of the certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertThumbprintSHA1() (string, error)
Default Value
""
Remarks
The SHA-1 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
ReceiptSignerCertThumbprintSHA256 Property (AS3Sender Component)
The SHA-256 hash of the certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertThumbprintSHA256() (string, error)
Default Value
""
Remarks
The SHA-256 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
ReceiptSignerCertUsage Property (AS3Sender Component)
The text description of UsageFlags .
Syntax
func (obj *AS3Sender) ReceiptSignerCertUsage() (string, error)
Default Value
""
Remarks
The text description of ReceiptSignerCertUsageFlags.
This value will be one or more of the following strings and will be separated by commas:
- Digital Signature
- Non-Repudiation
- Key Encipherment
- Data Encipherment
- Key Agreement
- Certificate Signing
- CRL Signing
- Encipher Only
If the provider is OpenSSL, the value is a comma-separated list of X.509 certificate extension names.
This property is read-only.
Data Type
string
ReceiptSignerCertUsageFlags Property (AS3Sender Component)
The flags that show intended use for the certificate.
Syntax
func (obj *AS3Sender) ReceiptSignerCertUsageFlags() (int32, error)
Default Value
0
Remarks
The flags that show intended use for the certificate. The value of ReceiptSignerCertUsageFlags is a combination of the following flags:
| 0x80 | Digital Signature |
| 0x40 | Non-Repudiation |
| 0x20 | Key Encipherment |
| 0x10 | Data Encipherment |
| 0x08 | Key Agreement |
| 0x04 | Certificate Signing |
| 0x02 | CRL Signing |
| 0x01 | Encipher Only |
Please see the ReceiptSignerCertUsage property for a text representation of ReceiptSignerCertUsageFlags.
This functionality currently is not available when the provider is OpenSSL.
This property is read-only.
Data Type
int32
ReceiptSignerCertVersion Property (AS3Sender Component)
The certificate's version number.
Syntax
func (obj *AS3Sender) ReceiptSignerCertVersion() (string, error)
Default Value
""
Remarks
The certificate's version number. The possible values are the strings "V1", "V2", and "V3".
This property is read-only.
Data Type
string
ReceiptSignerCertSubject Property (AS3Sender Component)
The subject of the certificate used for client authentication.
Syntax
func (obj *AS3Sender) ReceiptSignerCertSubject() (string, error)
func (obj *AS3Sender) SetReceiptSignerCertSubject(value string) error
Default Value
""
Remarks
The subject of the certificate used for client authentication.
This property must be set after all other certificate properties are set. When this property is set, a search is performed in the current certificate store to locate a certificate with a 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=example@email.com". Common fields and their meanings are as follows:
| Field | Meaning |
| CN | Common Name. This is commonly a hostname 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.
Data Type
string
ReceiptSignerCertEncoded Property (AS3Sender Component)
The certificate (PEM/Base64 encoded).
Syntax
func (obj *AS3Sender) ReceiptSignerCertEncoded() ([]byte, error)
func (obj *AS3Sender) SetReceiptSignerCertEncoded(value []byte) error
Default Value
""
Remarks
The certificate (PEM/Base64 encoded). This property is used to assign a specific certificate. The ReceiptSignerCertStore and ReceiptSignerCertSubject properties also may be used to specify a certificate.
When ReceiptSignerCertEncoded is set, a search is initiated in the current ReceiptSignerCertStore for the private key of the certificate. If the key is found, ReceiptSignerCertSubject is updated to reflect the full subject of the selected certificate; otherwise, ReceiptSignerCertSubject is set to an empty string.
Data Type
[]byte
RecipientCertCount Property (AS3Sender Component)
The number of records in the RecipientCert arrays.
Syntax
func (obj *AS3Sender) RecipientCertCount() (int32, error)
func (obj *AS3Sender) SetRecipientCertCount(value int32) error
Default Value
0
Remarks
This property controls the size of the following arrays:
- RecipientCertEffectiveDate
- RecipientCertEncoded
- RecipientCertExpirationDate
- RecipientCertExtendedKeyUsage
- RecipientCertFingerprint
- RecipientCertFingerprintSHA1
- RecipientCertFingerprintSHA256
- RecipientCertIssuer
- RecipientCertPrivateKey
- RecipientCertPrivateKeyAvailable
- RecipientCertPrivateKeyContainer
- RecipientCertPublicKey
- RecipientCertPublicKeyAlgorithm
- RecipientCertPublicKeyLength
- RecipientCertSerialNumber
- RecipientCertSignatureAlgorithm
- RecipientCertStore
- RecipientCertStorePassword
- RecipientCertStoreType
- RecipientCertSubject
- RecipientCertSubjectAltNames
- RecipientCertThumbprintMD5
- RecipientCertThumbprintSHA1
- RecipientCertThumbprintSHA256
- RecipientCertUsage
- RecipientCertUsageFlags
- RecipientCertVersion
Data Type
int32
RecipientCertEffectiveDate Property (AS3Sender Component)
The date on which this certificate becomes valid.
Syntax
func (obj *AS3Sender) RecipientCertEffectiveDate(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The date on which this certificate becomes valid. Before this date, it is not valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2000 15:00:00.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertExpirationDate Property (AS3Sender Component)
The date on which the certificate expires.
Syntax
func (obj *AS3Sender) RecipientCertExpirationDate(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The date on which the certificate expires. After this date, the certificate will no longer be valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2001 15:00:00.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertExtendedKeyUsage Property (AS3Sender Component)
A comma-delimited list of extended key usage identifiers.
Syntax
func (obj *AS3Sender) RecipientCertExtendedKeyUsage(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
A comma-delimited list of extended key usage identifiers. These are the same as ASN.1 object identifiers (OIDs).
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertFingerprint Property (AS3Sender Component)
The hex-encoded, 16-byte MD5 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) RecipientCertFingerprint(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The hex-encoded, 16-byte MD5 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: bc:2a:72:af:fe:58:17:43:7a:5f:ba:5a:7c:90:f7:02
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertFingerprintSHA1 Property (AS3Sender Component)
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) RecipientCertFingerprintSHA1(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 30:7b:fa:38:65:83:ff:da:b4:4e:07:3f:17:b8:a4:ed:80:be:ff:84
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertFingerprintSHA256 Property (AS3Sender Component)
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) RecipientCertFingerprintSHA256(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 6a:80:5c:33:a9:43:ea:b0:96:12:8a:64:96:30:ef:4a:8a:96:86:ce:f4:c7:be:10:24:8e:2b:60:9e:f3:59:53
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertIssuer Property (AS3Sender Component)
The issuer of the certificate.
Syntax
func (obj *AS3Sender) RecipientCertIssuer(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The issuer of the certificate. This property contains a string representation of the name of the issuing authority for the certificate.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertPrivateKey Property (AS3Sender Component)
The private key of the certificate (if available).
Syntax
func (obj *AS3Sender) RecipientCertPrivateKey(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The private key of the certificate (if available). The key is provided as PEM/Base64-encoded data.
NOTE: The RecipientCertPrivateKey may be available but not exportable. In this case, RecipientCertPrivateKey returns an empty string.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertPrivateKeyAvailable Property (AS3Sender Component)
Whether a PrivateKey is available for the selected certificate.
Syntax
func (obj *AS3Sender) RecipientCertPrivateKeyAvailable(RecipientCertIndex int32) (bool, error)
Default Value
false
Remarks
Whether a RecipientCertPrivateKey is available for the selected certificate. If RecipientCertPrivateKeyAvailable is True, the certificate may be used for authentication purposes (e.g., server authentication).
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
bool
RecipientCertPrivateKeyContainer Property (AS3Sender Component)
The name of the PrivateKey container for the certificate (if available).
Syntax
func (obj *AS3Sender) RecipientCertPrivateKeyContainer(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The name of the RecipientCertPrivateKey container for the certificate (if available). This functionality is available only on Windows platforms.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertPublicKey Property (AS3Sender Component)
The public key of the certificate.
Syntax
func (obj *AS3Sender) RecipientCertPublicKey(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The public key of the certificate. The key is provided as PEM/Base64-encoded data.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertPublicKeyAlgorithm Property (AS3Sender Component)
The textual description of the certificate's public key algorithm.
Syntax
func (obj *AS3Sender) RecipientCertPublicKeyAlgorithm(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The textual description of the certificate's public key algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_DH") or an object identifier (OID) string representing the algorithm.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertPublicKeyLength Property (AS3Sender Component)
The length of the certificate's public key (in bits).
Syntax
func (obj *AS3Sender) RecipientCertPublicKeyLength(RecipientCertIndex int32) (int32, error)
Default Value
0
Remarks
The length of the certificate's public key (in bits). Common values are 512, 1024, and 2048.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
int32
RecipientCertSerialNumber Property (AS3Sender Component)
The serial number of the certificate encoded as a string.
Syntax
func (obj *AS3Sender) RecipientCertSerialNumber(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The serial number of the certificate encoded as a string. The number is encoded as a series of hexadecimal digits, with each pair representing a byte of the serial number.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertSignatureAlgorithm Property (AS3Sender Component)
The text description of the certificate's signature algorithm.
Syntax
func (obj *AS3Sender) RecipientCertSignatureAlgorithm(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The text description of the certificate's signature algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_MD5RSA") or an object identifier (OID) string representing the algorithm.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertStore Property (AS3Sender Component)
The name of the certificate store for the client certificate.
Syntax
func (obj *AS3Sender) RecipientCertStore(RecipientCertIndex int32) ([]byte, error)
func (obj *AS3Sender) SetRecipientCertStore(RecipientCertIndex int32, value []byte) error
Default Value
"MY"
Remarks
The name of the certificate store for the client certificate.
The RecipientCertStoreType property denotes the type of the certificate store specified by RecipientCertStore. If the store is password-protected, specify the password in RecipientCertStorePassword.
RecipientCertStore is used in conjunction with the RecipientCertSubject property to specify client certificates. If RecipientCertStore has a value, and RecipientCertSubject or RecipientCertEncoded is set, a search for a certificate is initiated. Please see the RecipientCertSubject property for details.
Designations of certificate stores are platform dependent.
The following designations are the most common User and Machine certificate stores in Windows:
| MY | A certificate store holding personal certificates with their associated private keys. |
| CA | Certifying authority certificates. |
| ROOT | Root certificates. |
When the certificate store type is cstPFXFile, this property must be set to the name of the file. When the type is cstPFXBlob, the property must be set to the binary contents of a PFX file (i.e., PKCS#12 certificate store).
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
Data Type
[]byte
RecipientCertStorePassword Property (AS3Sender Component)
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Syntax
func (obj *AS3Sender) RecipientCertStorePassword(RecipientCertIndex int32) (string, error)
func (obj *AS3Sender) SetRecipientCertStorePassword(RecipientCertIndex int32, value string) error
Default Value
""
Remarks
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
Data Type
string
RecipientCertStoreType Property (AS3Sender Component)
The type of certificate store for this certificate.
Syntax
func (obj *AS3Sender) RecipientCertStoreType(RecipientCertIndex int32) (int32, error)
func (obj *AS3Sender) SetRecipientCertStoreType(RecipientCertIndex int32, value int32) error
Possible Values
0 // User
1 // Machine
2 // PFXFile
3 // PFXBlob
4 // JKSFile
5 // JKSBlob
6 // PEMKeyFile
7 // PEMKeyBlob
8 // PublicKeyFile
9 // PublicKeyBlob
10 // SSHPublicKeyBlob
11 // P7BFile
12 // P7BBlob
13 // SSHPublicKeyFile
14 // PPKFile
15 // PPKBlob
16 // XMLFile
17 // XMLBlob
18 // JWKFile
19 // JWKBlob
20 // SecurityKey
21 // BCFKSFile
22 // BCFKSBlob
23 // PKCS11
99 // Auto
Default Value
0
Remarks
The type of certificate store for this certificate.
The component supports both public and private keys in a variety of formats. When the cstAuto value is used, the component will automatically determine the type. This property can take one of the following values:
| 0 (cstUser - default) | For Windows, this specifies that the certificate store is a certificate store owned by the current user.
NOTE: This store type is not available in Java. |
| 1 (cstMachine) | For Windows, this specifies that the certificate store is a machine store.
NOTE: This store type is not available in Java. |
| 2 (cstPFXFile) | The certificate store is the name of a PFX (PKCS#12) file containing certificates. |
| 3 (cstPFXBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in PFX (PKCS#12) format. |
| 4 (cstJKSFile) | The certificate store is the name of a Java Key Store (JKS) file containing certificates.
NOTE: This store type is only available in Java. |
| 5 (cstJKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in Java Key Store (JKS) format.
NOTE: This store type is only available in Java. |
| 6 (cstPEMKeyFile) | The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate. |
| 7 (cstPEMKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a private key and an optional certificate. |
| 8 (cstPublicKeyFile) | The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate. |
| 9 (cstPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a PEM- or DER-encoded public key certificate. |
| 10 (cstSSHPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains an SSH-style public key. |
| 11 (cstP7BFile) | The certificate store is the name of a PKCS#7 file containing certificates. |
| 12 (cstP7BBlob) | The certificate store is a string (binary) representing a certificate store in PKCS#7 format. |
| 13 (cstSSHPublicKeyFile) | The certificate store is the name of a file that contains an SSH-style public key. |
| 14 (cstPPKFile) | The certificate store is the name of a file that contains a PPK (PuTTY Private Key). |
| 15 (cstPPKBlob) | The certificate store is a string (binary) that contains a PPK (PuTTY Private Key). |
| 16 (cstXMLFile) | The certificate store is the name of a file that contains a certificate in XML format. |
| 17 (cstXMLBlob) | The certificate store is a string that contains a certificate in XML format. |
| 18 (cstJWKFile) | The certificate store is the name of a file that contains a JWK (JSON Web Key). |
| 19 (cstJWKBlob) | The certificate store is a string that contains a JWK (JSON Web Key). |
| 21 (cstBCFKSFile) | The certificate store is the name of a file that contains a BCFKS (Bouncy Castle FIPS Key Store).
NOTE: This store type is only available in Java and .NET. |
| 22 (cstBCFKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in BCFKS (Bouncy Castle FIPS Key Store) format.
NOTE: This store type is only available in Java and .NET. |
| 23 (cstPKCS11) | The certificate is present on a physical security key accessible via a PKCS#11 interface.
To use a security key, create a new Certificate object and pass cstPKCS11 as the RecipientCertStoreType, the full path of the PKCS#11 DLL as the RecipientCertStore, and the PIN as the RecipientCertStorePassword. Code Example. SSH Authentication with Security Key (without CertMgr):
Alternatively, collect the necessary data using the CertMgr component by calling the ListStoreCertificates method after setting the corresponding properties accordingly. The certificate information returned in the CertList event's CertEncoded parameter may be saved for later use. When using a certificate obtained with this approach, pass the previously saved security key information as the RecipientCertStore and set RecipientCertStorePassword to the PIN. Code Example. SSH Authentication with Security Key (with CertMgr):
|
| 99 (cstAuto) | The store type is automatically detected from the input data. This setting may be used with both public and private keys and can detect any of the supported formats automatically. |
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
Data Type
int32
RecipientCertSubjectAltNames Property (AS3Sender Component)
Comma-separated lists of alternative subject names for the certificate.
Syntax
func (obj *AS3Sender) RecipientCertSubjectAltNames(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
Comma-separated lists of alternative subject names for the certificate.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertThumbprintMD5 Property (AS3Sender Component)
The MD5 hash of the certificate.
Syntax
func (obj *AS3Sender) RecipientCertThumbprintMD5(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The MD5 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertThumbprintSHA1 Property (AS3Sender Component)
The SHA-1 hash of the certificate.
Syntax
func (obj *AS3Sender) RecipientCertThumbprintSHA1(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The SHA-1 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertThumbprintSHA256 Property (AS3Sender Component)
The SHA-256 hash of the certificate.
Syntax
func (obj *AS3Sender) RecipientCertThumbprintSHA256(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The SHA-256 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertUsage Property (AS3Sender Component)
The text description of UsageFlags .
Syntax
func (obj *AS3Sender) RecipientCertUsage(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The text description of RecipientCertUsageFlags.
This value will be one or more of the following strings and will be separated by commas:
- Digital Signature
- Non-Repudiation
- Key Encipherment
- Data Encipherment
- Key Agreement
- Certificate Signing
- CRL Signing
- Encipher Only
If the provider is OpenSSL, the value is a comma-separated list of X.509 certificate extension names.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertUsageFlags Property (AS3Sender Component)
The flags that show intended use for the certificate.
Syntax
func (obj *AS3Sender) RecipientCertUsageFlags(RecipientCertIndex int32) (int32, error)
Default Value
0
Remarks
The flags that show intended use for the certificate. The value of RecipientCertUsageFlags is a combination of the following flags:
| 0x80 | Digital Signature |
| 0x40 | Non-Repudiation |
| 0x20 | Key Encipherment |
| 0x10 | Data Encipherment |
| 0x08 | Key Agreement |
| 0x04 | Certificate Signing |
| 0x02 | CRL Signing |
| 0x01 | Encipher Only |
Please see the RecipientCertUsage property for a text representation of RecipientCertUsageFlags.
This functionality currently is not available when the provider is OpenSSL.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
int32
RecipientCertVersion Property (AS3Sender Component)
The certificate's version number.
Syntax
func (obj *AS3Sender) RecipientCertVersion(RecipientCertIndex int32) (string, error)
Default Value
""
Remarks
The certificate's version number. The possible values are the strings "V1", "V2", and "V3".
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
This property is read-only.
Data Type
string
RecipientCertSubject Property (AS3Sender Component)
The subject of the certificate used for client authentication.
Syntax
func (obj *AS3Sender) RecipientCertSubject(RecipientCertIndex int32) (string, error)
func (obj *AS3Sender) SetRecipientCertSubject(RecipientCertIndex int32, value string) error
Default Value
""
Remarks
The subject of the certificate used for client authentication.
This property must be set after all other certificate properties are set. When this property is set, a search is performed in the current certificate store to locate a certificate with a 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=example@email.com". Common fields and their meanings are as follows:
| Field | Meaning |
| CN | Common Name. This is commonly a hostname 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.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
Data Type
string
RecipientCertEncoded Property (AS3Sender Component)
The certificate (PEM/Base64 encoded).
Syntax
func (obj *AS3Sender) RecipientCertEncoded(RecipientCertIndex int32) ([]byte, error)
func (obj *AS3Sender) SetRecipientCertEncoded(RecipientCertIndex int32, value []byte) error
Default Value
""
Remarks
The certificate (PEM/Base64 encoded). This property is used to assign a specific certificate. The RecipientCertStore and RecipientCertSubject properties also may be used to specify a certificate.
When RecipientCertEncoded is set, a search is initiated in the current RecipientCertStore for the private key of the certificate. If the key is found, RecipientCertSubject is updated to reflect the full subject of the selected certificate; otherwise, RecipientCertSubject is set to an empty string.
The RecipientCertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RecipientCertCount property.
Data Type
[]byte
RemoteHost Property (AS3Sender Component)
This is the domain name or IP address of the FTP server.
Syntax
func (obj *AS3Sender) RemoteHost() (string, error)
func (obj *AS3Sender) SetRemoteHost(value string) error
Default Value
""
Remarks
This property specifies the IP address (IP number in dotted internet format) or the domain name of the FTP server. It is set before a connection is attempted and cannot be changed once a connection is in progress.
If this property is set to a domain name, a DNS request is initiated and upon successful termination of the request, this property is set to the corresponding address. If the search is not successful, an error is returned.
If the component is configured to use a SOCKS firewall, the value assigned to this property may be preceded with an "*". If this is the case, the host name is passed to the firewall unresolved and the firewall performs the DNS resolution.
Data Type
string
RemotePort Property (AS3Sender Component)
This is the port for the FTP service (default is 21).
Syntax
func (obj *AS3Sender) RemotePort() (int32, error)
func (obj *AS3Sender) SetRemotePort(value int32) error
Default Value
21
Remarks
This property contains the port for the FTP service, which defaults to 21 if not set. A valid port number (a value between 1 and 65535) is required for the connection to take place. The property must be set before a connection is attempted and cannot be changed once a connection is established. Any attempt to change this property while connected will fail with an error.
For an implicit Secure Sockets Layer (SSL), use port 990 (please see the SSLStartMode property for more information).
Data Type
int32
SignatureAlgorithm Property (AS3Sender Component)
Signature algorithm to be used in outgoing messages.
Syntax
func (obj *AS3Sender) SignatureAlgorithm() (string, error)
func (obj *AS3Sender) SetSignatureAlgorithm(value string) error
Default Value
"sha-256"
Remarks
Signature Algorithm can be set to indicate the preferred signing algorithm. Possible values are:
- sha1
- md5
- sha-256 (or sha256) (default)
- sha-384 (or sha384)
- sha-512 (or sha512)
- sha-224 (or sha224)
The default value is "sha-256". When this property is set the MDNOptions property is automatically updated to request the MDN receipt be signed with the same algorithm.
When AS2Version is set to "1.3", MD5, SHA-1, and SHA-224 are not allowed for generated messages. "sha-256", "sha-384", or "sha-512" are recommended instead.
Data Type
string
SigningCertEffectiveDate Property (AS3Sender Component)
The date on which this certificate becomes valid.
Syntax
func (obj *AS3Sender) SigningCertEffectiveDate() (string, error)
Default Value
""
Remarks
The date on which this certificate becomes valid. Before this date, it is not valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2000 15:00:00.
This property is read-only.
Data Type
string
SigningCertExpirationDate Property (AS3Sender Component)
The date on which the certificate expires.
Syntax
func (obj *AS3Sender) SigningCertExpirationDate() (string, error)
Default Value
""
Remarks
The date on which the certificate expires. After this date, the certificate will no longer be valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2001 15:00:00.
This property is read-only.
Data Type
string
SigningCertExtendedKeyUsage Property (AS3Sender Component)
A comma-delimited list of extended key usage identifiers.
Syntax
func (obj *AS3Sender) SigningCertExtendedKeyUsage() (string, error)
Default Value
""
Remarks
A comma-delimited list of extended key usage identifiers. These are the same as ASN.1 object identifiers (OIDs).
This property is read-only.
Data Type
string
SigningCertFingerprint Property (AS3Sender Component)
The hex-encoded, 16-byte MD5 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SigningCertFingerprint() (string, error)
Default Value
""
Remarks
The hex-encoded, 16-byte MD5 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: bc:2a:72:af:fe:58:17:43:7a:5f:ba:5a:7c:90:f7:02
This property is read-only.
Data Type
string
SigningCertFingerprintSHA1 Property (AS3Sender Component)
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SigningCertFingerprintSHA1() (string, error)
Default Value
""
Remarks
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 30:7b:fa:38:65:83:ff:da:b4:4e:07:3f:17:b8:a4:ed:80:be:ff:84
This property is read-only.
Data Type
string
SigningCertFingerprintSHA256 Property (AS3Sender Component)
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SigningCertFingerprintSHA256() (string, error)
Default Value
""
Remarks
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 6a:80:5c:33:a9:43:ea:b0:96:12:8a:64:96:30:ef:4a:8a:96:86:ce:f4:c7:be:10:24:8e:2b:60:9e:f3:59:53
This property is read-only.
Data Type
string
SigningCertIssuer Property (AS3Sender Component)
The issuer of the certificate.
Syntax
func (obj *AS3Sender) SigningCertIssuer() (string, error)
Default Value
""
Remarks
The issuer of the certificate. This property contains a string representation of the name of the issuing authority for the certificate.
This property is read-only.
Data Type
string
SigningCertPrivateKey Property (AS3Sender Component)
The private key of the certificate (if available).
Syntax
func (obj *AS3Sender) SigningCertPrivateKey() (string, error)
Default Value
""
Remarks
The private key of the certificate (if available). The key is provided as PEM/Base64-encoded data.
NOTE: The SigningCertPrivateKey may be available but not exportable. In this case, SigningCertPrivateKey returns an empty string.
This property is read-only.
Data Type
string
SigningCertPrivateKeyAvailable Property (AS3Sender Component)
Whether a PrivateKey is available for the selected certificate.
Syntax
func (obj *AS3Sender) SigningCertPrivateKeyAvailable() (bool, error)
Default Value
false
Remarks
Whether a SigningCertPrivateKey is available for the selected certificate. If SigningCertPrivateKeyAvailable is True, the certificate may be used for authentication purposes (e.g., server authentication).
This property is read-only.
Data Type
bool
SigningCertPrivateKeyContainer Property (AS3Sender Component)
The name of the PrivateKey container for the certificate (if available).
Syntax
func (obj *AS3Sender) SigningCertPrivateKeyContainer() (string, error)
Default Value
""
Remarks
The name of the SigningCertPrivateKey container for the certificate (if available). This functionality is available only on Windows platforms.
This property is read-only.
Data Type
string
SigningCertPublicKey Property (AS3Sender Component)
The public key of the certificate.
Syntax
func (obj *AS3Sender) SigningCertPublicKey() (string, error)
Default Value
""
Remarks
The public key of the certificate. The key is provided as PEM/Base64-encoded data.
This property is read-only.
Data Type
string
SigningCertPublicKeyAlgorithm Property (AS3Sender Component)
The textual description of the certificate's public key algorithm.
Syntax
func (obj *AS3Sender) SigningCertPublicKeyAlgorithm() (string, error)
Default Value
""
Remarks
The textual description of the certificate's public key algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_DH") or an object identifier (OID) string representing the algorithm.
This property is read-only.
Data Type
string
SigningCertPublicKeyLength Property (AS3Sender Component)
The length of the certificate's public key (in bits).
Syntax
func (obj *AS3Sender) SigningCertPublicKeyLength() (int32, error)
Default Value
0
Remarks
The length of the certificate's public key (in bits). Common values are 512, 1024, and 2048.
This property is read-only.
Data Type
int32
SigningCertSerialNumber Property (AS3Sender Component)
The serial number of the certificate encoded as a string.
Syntax
func (obj *AS3Sender) SigningCertSerialNumber() (string, error)
Default Value
""
Remarks
The serial number of the certificate encoded as a string. The number is encoded as a series of hexadecimal digits, with each pair representing a byte of the serial number.
This property is read-only.
Data Type
string
SigningCertSignatureAlgorithm Property (AS3Sender Component)
The text description of the certificate's signature algorithm.
Syntax
func (obj *AS3Sender) SigningCertSignatureAlgorithm() (string, error)
Default Value
""
Remarks
The text description of the certificate's signature algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_MD5RSA") or an object identifier (OID) string representing the algorithm.
This property is read-only.
Data Type
string
SigningCertStore Property (AS3Sender Component)
The name of the certificate store for the client certificate.
Syntax
func (obj *AS3Sender) SigningCertStore() ([]byte, error)
func (obj *AS3Sender) SetSigningCertStore(value []byte) error
Default Value
"MY"
Remarks
The name of the certificate store for the client certificate.
The SigningCertStoreType property denotes the type of the certificate store specified by SigningCertStore. If the store is password-protected, specify the password in SigningCertStorePassword.
SigningCertStore is used in conjunction with the SigningCertSubject property to specify client certificates. If SigningCertStore has a value, and SigningCertSubject or SigningCertEncoded is set, a search for a certificate is initiated. Please see the SigningCertSubject property for details.
Designations of certificate stores are platform dependent.
The following designations are the most common User and Machine certificate stores in Windows:
| MY | A certificate store holding personal certificates with their associated private keys. |
| CA | Certifying authority certificates. |
| ROOT | Root certificates. |
When the certificate store type is cstPFXFile, this property must be set to the name of the file. When the type is cstPFXBlob, the property must be set to the binary contents of a PFX file (i.e., PKCS#12 certificate store).
Data Type
[]byte
SigningCertStorePassword Property (AS3Sender Component)
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Syntax
func (obj *AS3Sender) SigningCertStorePassword() (string, error)
func (obj *AS3Sender) SetSigningCertStorePassword(value string) error
Default Value
""
Remarks
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Data Type
string
SigningCertStoreType Property (AS3Sender Component)
The type of certificate store for this certificate.
Syntax
func (obj *AS3Sender) SigningCertStoreType() (int32, error)
func (obj *AS3Sender) SetSigningCertStoreType(value int32) error
Possible Values
0 // User
1 // Machine
2 // PFXFile
3 // PFXBlob
4 // JKSFile
5 // JKSBlob
6 // PEMKeyFile
7 // PEMKeyBlob
8 // PublicKeyFile
9 // PublicKeyBlob
10 // SSHPublicKeyBlob
11 // P7BFile
12 // P7BBlob
13 // SSHPublicKeyFile
14 // PPKFile
15 // PPKBlob
16 // XMLFile
17 // XMLBlob
18 // JWKFile
19 // JWKBlob
20 // SecurityKey
21 // BCFKSFile
22 // BCFKSBlob
23 // PKCS11
99 // Auto
Default Value
0
Remarks
The type of certificate store for this certificate.
The component supports both public and private keys in a variety of formats. When the cstAuto value is used, the component will automatically determine the type. This property can take one of the following values:
| 0 (cstUser - default) | For Windows, this specifies that the certificate store is a certificate store owned by the current user.
NOTE: This store type is not available in Java. |
| 1 (cstMachine) | For Windows, this specifies that the certificate store is a machine store.
NOTE: This store type is not available in Java. |
| 2 (cstPFXFile) | The certificate store is the name of a PFX (PKCS#12) file containing certificates. |
| 3 (cstPFXBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in PFX (PKCS#12) format. |
| 4 (cstJKSFile) | The certificate store is the name of a Java Key Store (JKS) file containing certificates.
NOTE: This store type is only available in Java. |
| 5 (cstJKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in Java Key Store (JKS) format.
NOTE: This store type is only available in Java. |
| 6 (cstPEMKeyFile) | The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate. |
| 7 (cstPEMKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a private key and an optional certificate. |
| 8 (cstPublicKeyFile) | The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate. |
| 9 (cstPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a PEM- or DER-encoded public key certificate. |
| 10 (cstSSHPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains an SSH-style public key. |
| 11 (cstP7BFile) | The certificate store is the name of a PKCS#7 file containing certificates. |
| 12 (cstP7BBlob) | The certificate store is a string (binary) representing a certificate store in PKCS#7 format. |
| 13 (cstSSHPublicKeyFile) | The certificate store is the name of a file that contains an SSH-style public key. |
| 14 (cstPPKFile) | The certificate store is the name of a file that contains a PPK (PuTTY Private Key). |
| 15 (cstPPKBlob) | The certificate store is a string (binary) that contains a PPK (PuTTY Private Key). |
| 16 (cstXMLFile) | The certificate store is the name of a file that contains a certificate in XML format. |
| 17 (cstXMLBlob) | The certificate store is a string that contains a certificate in XML format. |
| 18 (cstJWKFile) | The certificate store is the name of a file that contains a JWK (JSON Web Key). |
| 19 (cstJWKBlob) | The certificate store is a string that contains a JWK (JSON Web Key). |
| 21 (cstBCFKSFile) | The certificate store is the name of a file that contains a BCFKS (Bouncy Castle FIPS Key Store).
NOTE: This store type is only available in Java and .NET. |
| 22 (cstBCFKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in BCFKS (Bouncy Castle FIPS Key Store) format.
NOTE: This store type is only available in Java and .NET. |
| 23 (cstPKCS11) | The certificate is present on a physical security key accessible via a PKCS#11 interface.
To use a security key, create a new Certificate object and pass cstPKCS11 as the SigningCertStoreType, the full path of the PKCS#11 DLL as the SigningCertStore, and the PIN as the SigningCertStorePassword. Code Example. SSH Authentication with Security Key (without CertMgr):
Alternatively, collect the necessary data using the CertMgr component by calling the ListStoreCertificates method after setting the corresponding properties accordingly. The certificate information returned in the CertList event's CertEncoded parameter may be saved for later use. When using a certificate obtained with this approach, pass the previously saved security key information as the SigningCertStore and set SigningCertStorePassword to the PIN. Code Example. SSH Authentication with Security Key (with CertMgr):
|
| 99 (cstAuto) | The store type is automatically detected from the input data. This setting may be used with both public and private keys and can detect any of the supported formats automatically. |
Data Type
int32
SigningCertSubjectAltNames Property (AS3Sender Component)
Comma-separated lists of alternative subject names for the certificate.
Syntax
func (obj *AS3Sender) SigningCertSubjectAltNames() (string, error)
Default Value
""
Remarks
Comma-separated lists of alternative subject names for the certificate.
This property is read-only.
Data Type
string
SigningCertThumbprintMD5 Property (AS3Sender Component)
The MD5 hash of the certificate.
Syntax
func (obj *AS3Sender) SigningCertThumbprintMD5() (string, error)
Default Value
""
Remarks
The MD5 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SigningCertThumbprintSHA1 Property (AS3Sender Component)
The SHA-1 hash of the certificate.
Syntax
func (obj *AS3Sender) SigningCertThumbprintSHA1() (string, error)
Default Value
""
Remarks
The SHA-1 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SigningCertThumbprintSHA256 Property (AS3Sender Component)
The SHA-256 hash of the certificate.
Syntax
func (obj *AS3Sender) SigningCertThumbprintSHA256() (string, error)
Default Value
""
Remarks
The SHA-256 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SigningCertUsage Property (AS3Sender Component)
The text description of UsageFlags .
Syntax
func (obj *AS3Sender) SigningCertUsage() (string, error)
Default Value
""
Remarks
The text description of SigningCertUsageFlags.
This value will be one or more of the following strings and will be separated by commas:
- Digital Signature
- Non-Repudiation
- Key Encipherment
- Data Encipherment
- Key Agreement
- Certificate Signing
- CRL Signing
- Encipher Only
If the provider is OpenSSL, the value is a comma-separated list of X.509 certificate extension names.
This property is read-only.
Data Type
string
SigningCertUsageFlags Property (AS3Sender Component)
The flags that show intended use for the certificate.
Syntax
func (obj *AS3Sender) SigningCertUsageFlags() (int32, error)
Default Value
0
Remarks
The flags that show intended use for the certificate. The value of SigningCertUsageFlags is a combination of the following flags:
| 0x80 | Digital Signature |
| 0x40 | Non-Repudiation |
| 0x20 | Key Encipherment |
| 0x10 | Data Encipherment |
| 0x08 | Key Agreement |
| 0x04 | Certificate Signing |
| 0x02 | CRL Signing |
| 0x01 | Encipher Only |
Please see the SigningCertUsage property for a text representation of SigningCertUsageFlags.
This functionality currently is not available when the provider is OpenSSL.
This property is read-only.
Data Type
int32
SigningCertVersion Property (AS3Sender Component)
The certificate's version number.
Syntax
func (obj *AS3Sender) SigningCertVersion() (string, error)
Default Value
""
Remarks
The certificate's version number. The possible values are the strings "V1", "V2", and "V3".
This property is read-only.
Data Type
string
SigningCertSubject Property (AS3Sender Component)
The subject of the certificate used for client authentication.
Syntax
func (obj *AS3Sender) SigningCertSubject() (string, error)
func (obj *AS3Sender) SetSigningCertSubject(value string) error
Default Value
""
Remarks
The subject of the certificate used for client authentication.
This property must be set after all other certificate properties are set. When this property is set, a search is performed in the current certificate store to locate a certificate with a 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=example@email.com". Common fields and their meanings are as follows:
| Field | Meaning |
| CN | Common Name. This is commonly a hostname 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.
Data Type
string
SigningCertEncoded Property (AS3Sender Component)
The certificate (PEM/Base64 encoded).
Syntax
func (obj *AS3Sender) SigningCertEncoded() ([]byte, error)
func (obj *AS3Sender) SetSigningCertEncoded(value []byte) error
Default Value
""
Remarks
The certificate (PEM/Base64 encoded). This property is used to assign a specific certificate. The SigningCertStore and SigningCertSubject properties also may be used to specify a certificate.
When SigningCertEncoded is set, a search is initiated in the current SigningCertStore for the private key of the certificate. If the key is found, SigningCertSubject is updated to reflect the full subject of the selected certificate; otherwise, SigningCertSubject is set to an empty string.
Data Type
[]byte
SSLAcceptServerCertEffectiveDate Property (AS3Sender Component)
The date on which this certificate becomes valid.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertEffectiveDate() (string, error)
Default Value
""
Remarks
The date on which this certificate becomes valid. Before this date, it is not valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2000 15:00:00.
This property is read-only.
Data Type
string
SSLAcceptServerCertExpirationDate Property (AS3Sender Component)
The date on which the certificate expires.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertExpirationDate() (string, error)
Default Value
""
Remarks
The date on which the certificate expires. After this date, the certificate will no longer be valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2001 15:00:00.
This property is read-only.
Data Type
string
SSLAcceptServerCertExtendedKeyUsage Property (AS3Sender Component)
A comma-delimited list of extended key usage identifiers.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertExtendedKeyUsage() (string, error)
Default Value
""
Remarks
A comma-delimited list of extended key usage identifiers. These are the same as ASN.1 object identifiers (OIDs).
This property is read-only.
Data Type
string
SSLAcceptServerCertFingerprint Property (AS3Sender Component)
The hex-encoded, 16-byte MD5 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertFingerprint() (string, error)
Default Value
""
Remarks
The hex-encoded, 16-byte MD5 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: bc:2a:72:af:fe:58:17:43:7a:5f:ba:5a:7c:90:f7:02
This property is read-only.
Data Type
string
SSLAcceptServerCertFingerprintSHA1 Property (AS3Sender Component)
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertFingerprintSHA1() (string, error)
Default Value
""
Remarks
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 30:7b:fa:38:65:83:ff:da:b4:4e:07:3f:17:b8:a4:ed:80:be:ff:84
This property is read-only.
Data Type
string
SSLAcceptServerCertFingerprintSHA256 Property (AS3Sender Component)
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertFingerprintSHA256() (string, error)
Default Value
""
Remarks
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 6a:80:5c:33:a9:43:ea:b0:96:12:8a:64:96:30:ef:4a:8a:96:86:ce:f4:c7:be:10:24:8e:2b:60:9e:f3:59:53
This property is read-only.
Data Type
string
SSLAcceptServerCertIssuer Property (AS3Sender Component)
The issuer of the certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertIssuer() (string, error)
Default Value
""
Remarks
The issuer of the certificate. This property contains a string representation of the name of the issuing authority for the certificate.
This property is read-only.
Data Type
string
SSLAcceptServerCertPrivateKey Property (AS3Sender Component)
The private key of the certificate (if available).
Syntax
func (obj *AS3Sender) SSLAcceptServerCertPrivateKey() (string, error)
Default Value
""
Remarks
The private key of the certificate (if available). The key is provided as PEM/Base64-encoded data.
NOTE: The SSLAcceptServerCertPrivateKey may be available but not exportable. In this case, SSLAcceptServerCertPrivateKey returns an empty string.
This property is read-only.
Data Type
string
SSLAcceptServerCertPrivateKeyAvailable Property (AS3Sender Component)
Whether a PrivateKey is available for the selected certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertPrivateKeyAvailable() (bool, error)
Default Value
false
Remarks
Whether a SSLAcceptServerCertPrivateKey is available for the selected certificate. If SSLAcceptServerCertPrivateKeyAvailable is True, the certificate may be used for authentication purposes (e.g., server authentication).
This property is read-only.
Data Type
bool
SSLAcceptServerCertPrivateKeyContainer Property (AS3Sender Component)
The name of the PrivateKey container for the certificate (if available).
Syntax
func (obj *AS3Sender) SSLAcceptServerCertPrivateKeyContainer() (string, error)
Default Value
""
Remarks
The name of the SSLAcceptServerCertPrivateKey container for the certificate (if available). This functionality is available only on Windows platforms.
This property is read-only.
Data Type
string
SSLAcceptServerCertPublicKey Property (AS3Sender Component)
The public key of the certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertPublicKey() (string, error)
Default Value
""
Remarks
The public key of the certificate. The key is provided as PEM/Base64-encoded data.
This property is read-only.
Data Type
string
SSLAcceptServerCertPublicKeyAlgorithm Property (AS3Sender Component)
The textual description of the certificate's public key algorithm.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertPublicKeyAlgorithm() (string, error)
Default Value
""
Remarks
The textual description of the certificate's public key algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_DH") or an object identifier (OID) string representing the algorithm.
This property is read-only.
Data Type
string
SSLAcceptServerCertPublicKeyLength Property (AS3Sender Component)
The length of the certificate's public key (in bits).
Syntax
func (obj *AS3Sender) SSLAcceptServerCertPublicKeyLength() (int32, error)
Default Value
0
Remarks
The length of the certificate's public key (in bits). Common values are 512, 1024, and 2048.
This property is read-only.
Data Type
int32
SSLAcceptServerCertSerialNumber Property (AS3Sender Component)
The serial number of the certificate encoded as a string.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertSerialNumber() (string, error)
Default Value
""
Remarks
The serial number of the certificate encoded as a string. The number is encoded as a series of hexadecimal digits, with each pair representing a byte of the serial number.
This property is read-only.
Data Type
string
SSLAcceptServerCertSignatureAlgorithm Property (AS3Sender Component)
The text description of the certificate's signature algorithm.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertSignatureAlgorithm() (string, error)
Default Value
""
Remarks
The text description of the certificate's signature algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_MD5RSA") or an object identifier (OID) string representing the algorithm.
This property is read-only.
Data Type
string
SSLAcceptServerCertStore Property (AS3Sender Component)
The name of the certificate store for the client certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertStore() ([]byte, error)
func (obj *AS3Sender) SetSSLAcceptServerCertStore(value []byte) error
Default Value
"MY"
Remarks
The name of the certificate store for the client certificate.
The SSLAcceptServerCertStoreType property denotes the type of the certificate store specified by SSLAcceptServerCertStore. If the store is password-protected, specify the password in SSLAcceptServerCertStorePassword.
SSLAcceptServerCertStore is used in conjunction with the SSLAcceptServerCertSubject property to specify client certificates. If SSLAcceptServerCertStore has a value, and SSLAcceptServerCertSubject or SSLAcceptServerCertEncoded is set, a search for a certificate is initiated. Please see the SSLAcceptServerCertSubject property for details.
Designations of certificate stores are platform dependent.
The following designations are the most common User and Machine certificate stores in Windows:
| MY | A certificate store holding personal certificates with their associated private keys. |
| CA | Certifying authority certificates. |
| ROOT | Root certificates. |
When the certificate store type is cstPFXFile, this property must be set to the name of the file. When the type is cstPFXBlob, the property must be set to the binary contents of a PFX file (i.e., PKCS#12 certificate store).
Data Type
[]byte
SSLAcceptServerCertStorePassword Property (AS3Sender Component)
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertStorePassword() (string, error)
func (obj *AS3Sender) SetSSLAcceptServerCertStorePassword(value string) error
Default Value
""
Remarks
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Data Type
string
SSLAcceptServerCertStoreType Property (AS3Sender Component)
The type of certificate store for this certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertStoreType() (int32, error)
func (obj *AS3Sender) SetSSLAcceptServerCertStoreType(value int32) error
Possible Values
0 // User
1 // Machine
2 // PFXFile
3 // PFXBlob
4 // JKSFile
5 // JKSBlob
6 // PEMKeyFile
7 // PEMKeyBlob
8 // PublicKeyFile
9 // PublicKeyBlob
10 // SSHPublicKeyBlob
11 // P7BFile
12 // P7BBlob
13 // SSHPublicKeyFile
14 // PPKFile
15 // PPKBlob
16 // XMLFile
17 // XMLBlob
18 // JWKFile
19 // JWKBlob
20 // SecurityKey
21 // BCFKSFile
22 // BCFKSBlob
23 // PKCS11
99 // Auto
Default Value
0
Remarks
The type of certificate store for this certificate.
The component supports both public and private keys in a variety of formats. When the cstAuto value is used, the component will automatically determine the type. This property can take one of the following values:
| 0 (cstUser - default) | For Windows, this specifies that the certificate store is a certificate store owned by the current user.
NOTE: This store type is not available in Java. |
| 1 (cstMachine) | For Windows, this specifies that the certificate store is a machine store.
NOTE: This store type is not available in Java. |
| 2 (cstPFXFile) | The certificate store is the name of a PFX (PKCS#12) file containing certificates. |
| 3 (cstPFXBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in PFX (PKCS#12) format. |
| 4 (cstJKSFile) | The certificate store is the name of a Java Key Store (JKS) file containing certificates.
NOTE: This store type is only available in Java. |
| 5 (cstJKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in Java Key Store (JKS) format.
NOTE: This store type is only available in Java. |
| 6 (cstPEMKeyFile) | The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate. |
| 7 (cstPEMKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a private key and an optional certificate. |
| 8 (cstPublicKeyFile) | The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate. |
| 9 (cstPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a PEM- or DER-encoded public key certificate. |
| 10 (cstSSHPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains an SSH-style public key. |
| 11 (cstP7BFile) | The certificate store is the name of a PKCS#7 file containing certificates. |
| 12 (cstP7BBlob) | The certificate store is a string (binary) representing a certificate store in PKCS#7 format. |
| 13 (cstSSHPublicKeyFile) | The certificate store is the name of a file that contains an SSH-style public key. |
| 14 (cstPPKFile) | The certificate store is the name of a file that contains a PPK (PuTTY Private Key). |
| 15 (cstPPKBlob) | The certificate store is a string (binary) that contains a PPK (PuTTY Private Key). |
| 16 (cstXMLFile) | The certificate store is the name of a file that contains a certificate in XML format. |
| 17 (cstXMLBlob) | The certificate store is a string that contains a certificate in XML format. |
| 18 (cstJWKFile) | The certificate store is the name of a file that contains a JWK (JSON Web Key). |
| 19 (cstJWKBlob) | The certificate store is a string that contains a JWK (JSON Web Key). |
| 21 (cstBCFKSFile) | The certificate store is the name of a file that contains a BCFKS (Bouncy Castle FIPS Key Store).
NOTE: This store type is only available in Java and .NET. |
| 22 (cstBCFKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in BCFKS (Bouncy Castle FIPS Key Store) format.
NOTE: This store type is only available in Java and .NET. |
| 23 (cstPKCS11) | The certificate is present on a physical security key accessible via a PKCS#11 interface.
To use a security key, create a new Certificate object and pass cstPKCS11 as the SSLAcceptServerCertStoreType, the full path of the PKCS#11 DLL as the SSLAcceptServerCertStore, and the PIN as the SSLAcceptServerCertStorePassword. Code Example. SSH Authentication with Security Key (without CertMgr):
Alternatively, collect the necessary data using the CertMgr component by calling the ListStoreCertificates method after setting the corresponding properties accordingly. The certificate information returned in the CertList event's CertEncoded parameter may be saved for later use. When using a certificate obtained with this approach, pass the previously saved security key information as the SSLAcceptServerCertStore and set SSLAcceptServerCertStorePassword to the PIN. Code Example. SSH Authentication with Security Key (with CertMgr):
|
| 99 (cstAuto) | The store type is automatically detected from the input data. This setting may be used with both public and private keys and can detect any of the supported formats automatically. |
Data Type
int32
SSLAcceptServerCertSubjectAltNames Property (AS3Sender Component)
Comma-separated lists of alternative subject names for the certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertSubjectAltNames() (string, error)
Default Value
""
Remarks
Comma-separated lists of alternative subject names for the certificate.
This property is read-only.
Data Type
string
SSLAcceptServerCertThumbprintMD5 Property (AS3Sender Component)
The MD5 hash of the certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertThumbprintMD5() (string, error)
Default Value
""
Remarks
The MD5 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SSLAcceptServerCertThumbprintSHA1 Property (AS3Sender Component)
The SHA-1 hash of the certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertThumbprintSHA1() (string, error)
Default Value
""
Remarks
The SHA-1 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SSLAcceptServerCertThumbprintSHA256 Property (AS3Sender Component)
The SHA-256 hash of the certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertThumbprintSHA256() (string, error)
Default Value
""
Remarks
The SHA-256 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SSLAcceptServerCertUsage Property (AS3Sender Component)
The text description of UsageFlags .
Syntax
func (obj *AS3Sender) SSLAcceptServerCertUsage() (string, error)
Default Value
""
Remarks
The text description of SSLAcceptServerCertUsageFlags.
This value will be one or more of the following strings and will be separated by commas:
- Digital Signature
- Non-Repudiation
- Key Encipherment
- Data Encipherment
- Key Agreement
- Certificate Signing
- CRL Signing
- Encipher Only
If the provider is OpenSSL, the value is a comma-separated list of X.509 certificate extension names.
This property is read-only.
Data Type
string
SSLAcceptServerCertUsageFlags Property (AS3Sender Component)
The flags that show intended use for the certificate.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertUsageFlags() (int32, error)
Default Value
0
Remarks
The flags that show intended use for the certificate. The value of SSLAcceptServerCertUsageFlags is a combination of the following flags:
| 0x80 | Digital Signature |
| 0x40 | Non-Repudiation |
| 0x20 | Key Encipherment |
| 0x10 | Data Encipherment |
| 0x08 | Key Agreement |
| 0x04 | Certificate Signing |
| 0x02 | CRL Signing |
| 0x01 | Encipher Only |
Please see the SSLAcceptServerCertUsage property for a text representation of SSLAcceptServerCertUsageFlags.
This functionality currently is not available when the provider is OpenSSL.
This property is read-only.
Data Type
int32
SSLAcceptServerCertVersion Property (AS3Sender Component)
The certificate's version number.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertVersion() (string, error)
Default Value
""
Remarks
The certificate's version number. The possible values are the strings "V1", "V2", and "V3".
This property is read-only.
Data Type
string
SSLAcceptServerCertSubject Property (AS3Sender Component)
The subject of the certificate used for client authentication.
Syntax
func (obj *AS3Sender) SSLAcceptServerCertSubject() (string, error)
func (obj *AS3Sender) SetSSLAcceptServerCertSubject(value string) error
Default Value
""
Remarks
The subject of the certificate used for client authentication.
This property must be set after all other certificate properties are set. When this property is set, a search is performed in the current certificate store to locate a certificate with a 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=example@email.com". Common fields and their meanings are as follows:
| Field | Meaning |
| CN | Common Name. This is commonly a hostname 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.
Data Type
string
SSLAcceptServerCertEncoded Property (AS3Sender Component)
The certificate (PEM/Base64 encoded).
Syntax
func (obj *AS3Sender) SSLAcceptServerCertEncoded() ([]byte, error)
func (obj *AS3Sender) SetSSLAcceptServerCertEncoded(value []byte) error
Default Value
""
Remarks
The certificate (PEM/Base64 encoded). This property is used to assign a specific certificate. The SSLAcceptServerCertStore and SSLAcceptServerCertSubject properties also may be used to specify a certificate.
When SSLAcceptServerCertEncoded is set, a search is initiated in the current SSLAcceptServerCertStore for the private key of the certificate. If the key is found, SSLAcceptServerCertSubject is updated to reflect the full subject of the selected certificate; otherwise, SSLAcceptServerCertSubject is set to an empty string.
Data Type
[]byte
SSLCertEffectiveDate Property (AS3Sender Component)
The date on which this certificate becomes valid.
Syntax
func (obj *AS3Sender) SSLCertEffectiveDate() (string, error)
Default Value
""
Remarks
The date on which this certificate becomes valid. Before this date, it is not valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2000 15:00:00.
This property is read-only.
Data Type
string
SSLCertExpirationDate Property (AS3Sender Component)
The date on which the certificate expires.
Syntax
func (obj *AS3Sender) SSLCertExpirationDate() (string, error)
Default Value
""
Remarks
The date on which the certificate expires. After this date, the certificate will no longer be valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2001 15:00:00.
This property is read-only.
Data Type
string
SSLCertExtendedKeyUsage Property (AS3Sender Component)
A comma-delimited list of extended key usage identifiers.
Syntax
func (obj *AS3Sender) SSLCertExtendedKeyUsage() (string, error)
Default Value
""
Remarks
A comma-delimited list of extended key usage identifiers. These are the same as ASN.1 object identifiers (OIDs).
This property is read-only.
Data Type
string
SSLCertFingerprint Property (AS3Sender Component)
The hex-encoded, 16-byte MD5 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SSLCertFingerprint() (string, error)
Default Value
""
Remarks
The hex-encoded, 16-byte MD5 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: bc:2a:72:af:fe:58:17:43:7a:5f:ba:5a:7c:90:f7:02
This property is read-only.
Data Type
string
SSLCertFingerprintSHA1 Property (AS3Sender Component)
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SSLCertFingerprintSHA1() (string, error)
Default Value
""
Remarks
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 30:7b:fa:38:65:83:ff:da:b4:4e:07:3f:17:b8:a4:ed:80:be:ff:84
This property is read-only.
Data Type
string
SSLCertFingerprintSHA256 Property (AS3Sender Component)
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SSLCertFingerprintSHA256() (string, error)
Default Value
""
Remarks
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 6a:80:5c:33:a9:43:ea:b0:96:12:8a:64:96:30:ef:4a:8a:96:86:ce:f4:c7:be:10:24:8e:2b:60:9e:f3:59:53
This property is read-only.
Data Type
string
SSLCertIssuer Property (AS3Sender Component)
The issuer of the certificate.
Syntax
func (obj *AS3Sender) SSLCertIssuer() (string, error)
Default Value
""
Remarks
The issuer of the certificate. This property contains a string representation of the name of the issuing authority for the certificate.
This property is read-only.
Data Type
string
SSLCertPrivateKey Property (AS3Sender Component)
The private key of the certificate (if available).
Syntax
func (obj *AS3Sender) SSLCertPrivateKey() (string, error)
Default Value
""
Remarks
The private key of the certificate (if available). The key is provided as PEM/Base64-encoded data.
NOTE: The SSLCertPrivateKey may be available but not exportable. In this case, SSLCertPrivateKey returns an empty string.
This property is read-only.
Data Type
string
SSLCertPrivateKeyAvailable Property (AS3Sender Component)
Whether a PrivateKey is available for the selected certificate.
Syntax
func (obj *AS3Sender) SSLCertPrivateKeyAvailable() (bool, error)
Default Value
false
Remarks
Whether a SSLCertPrivateKey is available for the selected certificate. If SSLCertPrivateKeyAvailable is True, the certificate may be used for authentication purposes (e.g., server authentication).
This property is read-only.
Data Type
bool
SSLCertPrivateKeyContainer Property (AS3Sender Component)
The name of the PrivateKey container for the certificate (if available).
Syntax
func (obj *AS3Sender) SSLCertPrivateKeyContainer() (string, error)
Default Value
""
Remarks
The name of the SSLCertPrivateKey container for the certificate (if available). This functionality is available only on Windows platforms.
This property is read-only.
Data Type
string
SSLCertPublicKey Property (AS3Sender Component)
The public key of the certificate.
Syntax
func (obj *AS3Sender) SSLCertPublicKey() (string, error)
Default Value
""
Remarks
The public key of the certificate. The key is provided as PEM/Base64-encoded data.
This property is read-only.
Data Type
string
SSLCertPublicKeyAlgorithm Property (AS3Sender Component)
The textual description of the certificate's public key algorithm.
Syntax
func (obj *AS3Sender) SSLCertPublicKeyAlgorithm() (string, error)
Default Value
""
Remarks
The textual description of the certificate's public key algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_DH") or an object identifier (OID) string representing the algorithm.
This property is read-only.
Data Type
string
SSLCertPublicKeyLength Property (AS3Sender Component)
The length of the certificate's public key (in bits).
Syntax
func (obj *AS3Sender) SSLCertPublicKeyLength() (int32, error)
Default Value
0
Remarks
The length of the certificate's public key (in bits). Common values are 512, 1024, and 2048.
This property is read-only.
Data Type
int32
SSLCertSerialNumber Property (AS3Sender Component)
The serial number of the certificate encoded as a string.
Syntax
func (obj *AS3Sender) SSLCertSerialNumber() (string, error)
Default Value
""
Remarks
The serial number of the certificate encoded as a string. The number is encoded as a series of hexadecimal digits, with each pair representing a byte of the serial number.
This property is read-only.
Data Type
string
SSLCertSignatureAlgorithm Property (AS3Sender Component)
The text description of the certificate's signature algorithm.
Syntax
func (obj *AS3Sender) SSLCertSignatureAlgorithm() (string, error)
Default Value
""
Remarks
The text description of the certificate's signature algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_MD5RSA") or an object identifier (OID) string representing the algorithm.
This property is read-only.
Data Type
string
SSLCertStore Property (AS3Sender Component)
The name of the certificate store for the client certificate.
Syntax
func (obj *AS3Sender) SSLCertStore() ([]byte, error)
func (obj *AS3Sender) SetSSLCertStore(value []byte) error
Default Value
"MY"
Remarks
The name of the certificate store for the client certificate.
The SSLCertStoreType property denotes the type of the certificate store specified by SSLCertStore. If the store is password-protected, specify the password in SSLCertStorePassword.
SSLCertStore is used in conjunction with the SSLCertSubject property to specify client certificates. If SSLCertStore has a value, and SSLCertSubject or SSLCertEncoded is set, a search for a certificate is initiated. Please see the SSLCertSubject property for details.
Designations of certificate stores are platform dependent.
The following designations are the most common User and Machine certificate stores in Windows:
| MY | A certificate store holding personal certificates with their associated private keys. |
| CA | Certifying authority certificates. |
| ROOT | Root certificates. |
When the certificate store type is cstPFXFile, this property must be set to the name of the file. When the type is cstPFXBlob, the property must be set to the binary contents of a PFX file (i.e., PKCS#12 certificate store).
Data Type
[]byte
SSLCertStorePassword Property (AS3Sender Component)
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Syntax
func (obj *AS3Sender) SSLCertStorePassword() (string, error)
func (obj *AS3Sender) SetSSLCertStorePassword(value string) error
Default Value
""
Remarks
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Data Type
string
SSLCertStoreType Property (AS3Sender Component)
The type of certificate store for this certificate.
Syntax
func (obj *AS3Sender) SSLCertStoreType() (int32, error)
func (obj *AS3Sender) SetSSLCertStoreType(value int32) error
Possible Values
0 // User
1 // Machine
2 // PFXFile
3 // PFXBlob
4 // JKSFile
5 // JKSBlob
6 // PEMKeyFile
7 // PEMKeyBlob
8 // PublicKeyFile
9 // PublicKeyBlob
10 // SSHPublicKeyBlob
11 // P7BFile
12 // P7BBlob
13 // SSHPublicKeyFile
14 // PPKFile
15 // PPKBlob
16 // XMLFile
17 // XMLBlob
18 // JWKFile
19 // JWKBlob
20 // SecurityKey
21 // BCFKSFile
22 // BCFKSBlob
23 // PKCS11
99 // Auto
Default Value
0
Remarks
The type of certificate store for this certificate.
The component supports both public and private keys in a variety of formats. When the cstAuto value is used, the component will automatically determine the type. This property can take one of the following values:
| 0 (cstUser - default) | For Windows, this specifies that the certificate store is a certificate store owned by the current user.
NOTE: This store type is not available in Java. |
| 1 (cstMachine) | For Windows, this specifies that the certificate store is a machine store.
NOTE: This store type is not available in Java. |
| 2 (cstPFXFile) | The certificate store is the name of a PFX (PKCS#12) file containing certificates. |
| 3 (cstPFXBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in PFX (PKCS#12) format. |
| 4 (cstJKSFile) | The certificate store is the name of a Java Key Store (JKS) file containing certificates.
NOTE: This store type is only available in Java. |
| 5 (cstJKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in Java Key Store (JKS) format.
NOTE: This store type is only available in Java. |
| 6 (cstPEMKeyFile) | The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate. |
| 7 (cstPEMKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a private key and an optional certificate. |
| 8 (cstPublicKeyFile) | The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate. |
| 9 (cstPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a PEM- or DER-encoded public key certificate. |
| 10 (cstSSHPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains an SSH-style public key. |
| 11 (cstP7BFile) | The certificate store is the name of a PKCS#7 file containing certificates. |
| 12 (cstP7BBlob) | The certificate store is a string (binary) representing a certificate store in PKCS#7 format. |
| 13 (cstSSHPublicKeyFile) | The certificate store is the name of a file that contains an SSH-style public key. |
| 14 (cstPPKFile) | The certificate store is the name of a file that contains a PPK (PuTTY Private Key). |
| 15 (cstPPKBlob) | The certificate store is a string (binary) that contains a PPK (PuTTY Private Key). |
| 16 (cstXMLFile) | The certificate store is the name of a file that contains a certificate in XML format. |
| 17 (cstXMLBlob) | The certificate store is a string that contains a certificate in XML format. |
| 18 (cstJWKFile) | The certificate store is the name of a file that contains a JWK (JSON Web Key). |
| 19 (cstJWKBlob) | The certificate store is a string that contains a JWK (JSON Web Key). |
| 21 (cstBCFKSFile) | The certificate store is the name of a file that contains a BCFKS (Bouncy Castle FIPS Key Store).
NOTE: This store type is only available in Java and .NET. |
| 22 (cstBCFKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in BCFKS (Bouncy Castle FIPS Key Store) format.
NOTE: This store type is only available in Java and .NET. |
| 23 (cstPKCS11) | The certificate is present on a physical security key accessible via a PKCS#11 interface.
To use a security key, create a new Certificate object and pass cstPKCS11 as the SSLCertStoreType, the full path of the PKCS#11 DLL as the SSLCertStore, and the PIN as the SSLCertStorePassword. Code Example. SSH Authentication with Security Key (without CertMgr):
Alternatively, collect the necessary data using the CertMgr component by calling the ListStoreCertificates method after setting the corresponding properties accordingly. The certificate information returned in the CertList event's CertEncoded parameter may be saved for later use. When using a certificate obtained with this approach, pass the previously saved security key information as the SSLCertStore and set SSLCertStorePassword to the PIN. Code Example. SSH Authentication with Security Key (with CertMgr):
|
| 99 (cstAuto) | The store type is automatically detected from the input data. This setting may be used with both public and private keys and can detect any of the supported formats automatically. |
Data Type
int32
SSLCertSubjectAltNames Property (AS3Sender Component)
Comma-separated lists of alternative subject names for the certificate.
Syntax
func (obj *AS3Sender) SSLCertSubjectAltNames() (string, error)
Default Value
""
Remarks
Comma-separated lists of alternative subject names for the certificate.
This property is read-only.
Data Type
string
SSLCertThumbprintMD5 Property (AS3Sender Component)
The MD5 hash of the certificate.
Syntax
func (obj *AS3Sender) SSLCertThumbprintMD5() (string, error)
Default Value
""
Remarks
The MD5 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SSLCertThumbprintSHA1 Property (AS3Sender Component)
The SHA-1 hash of the certificate.
Syntax
func (obj *AS3Sender) SSLCertThumbprintSHA1() (string, error)
Default Value
""
Remarks
The SHA-1 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SSLCertThumbprintSHA256 Property (AS3Sender Component)
The SHA-256 hash of the certificate.
Syntax
func (obj *AS3Sender) SSLCertThumbprintSHA256() (string, error)
Default Value
""
Remarks
The SHA-256 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SSLCertUsage Property (AS3Sender Component)
The text description of UsageFlags .
Syntax
func (obj *AS3Sender) SSLCertUsage() (string, error)
Default Value
""
Remarks
The text description of SSLCertUsageFlags.
This value will be one or more of the following strings and will be separated by commas:
- Digital Signature
- Non-Repudiation
- Key Encipherment
- Data Encipherment
- Key Agreement
- Certificate Signing
- CRL Signing
- Encipher Only
If the provider is OpenSSL, the value is a comma-separated list of X.509 certificate extension names.
This property is read-only.
Data Type
string
SSLCertUsageFlags Property (AS3Sender Component)
The flags that show intended use for the certificate.
Syntax
func (obj *AS3Sender) SSLCertUsageFlags() (int32, error)
Default Value
0
Remarks
The flags that show intended use for the certificate. The value of SSLCertUsageFlags is a combination of the following flags:
| 0x80 | Digital Signature |
| 0x40 | Non-Repudiation |
| 0x20 | Key Encipherment |
| 0x10 | Data Encipherment |
| 0x08 | Key Agreement |
| 0x04 | Certificate Signing |
| 0x02 | CRL Signing |
| 0x01 | Encipher Only |
Please see the SSLCertUsage property for a text representation of SSLCertUsageFlags.
This functionality currently is not available when the provider is OpenSSL.
This property is read-only.
Data Type
int32
SSLCertVersion Property (AS3Sender Component)
The certificate's version number.
Syntax
func (obj *AS3Sender) SSLCertVersion() (string, error)
Default Value
""
Remarks
The certificate's version number. The possible values are the strings "V1", "V2", and "V3".
This property is read-only.
Data Type
string
SSLCertSubject Property (AS3Sender Component)
The subject of the certificate used for client authentication.
Syntax
func (obj *AS3Sender) SSLCertSubject() (string, error)
func (obj *AS3Sender) SetSSLCertSubject(value string) error
Default Value
""
Remarks
The subject of the certificate used for client authentication.
This property must be set after all other certificate properties are set. When this property is set, a search is performed in the current certificate store to locate a certificate with a 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=example@email.com". Common fields and their meanings are as follows:
| Field | Meaning |
| CN | Common Name. This is commonly a hostname 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.
Data Type
string
SSLCertEncoded Property (AS3Sender Component)
The certificate (PEM/Base64 encoded).
Syntax
func (obj *AS3Sender) SSLCertEncoded() ([]byte, error)
func (obj *AS3Sender) SetSSLCertEncoded(value []byte) error
Default Value
""
Remarks
The certificate (PEM/Base64 encoded). This property is used to assign a specific certificate. The SSLCertStore and SSLCertSubject properties also may be used to specify a certificate.
When SSLCertEncoded is set, a search is initiated in the current SSLCertStore for the private key of the certificate. If the key is found, SSLCertSubject is updated to reflect the full subject of the selected certificate; otherwise, SSLCertSubject is set to an empty string.
Data Type
[]byte
SSLProvider Property (AS3Sender Component)
The Secure Sockets Layer/Transport Layer Security (SSL/TLS) implementation to use.
Syntax
func (obj *AS3Sender) SSLProvider() (int32, error)
func (obj *AS3Sender) SetSSLProvider(value int32) error
Possible Values
0 // Automatic
1 // Platform
2 // Internal
Default Value
0
Remarks
This property specifies the SSL/TLS implementation to use. In most cases the default value of 0 (Automatic) is recommended and should not be changed. When set to 0 (Automatic), the component will select whether to use the platform implementation or the internal implementation depending on the operating system as well as the TLS version being used.
Possible values are as follows:
| 0 (sslpAutomatic - default) | Automatically selects the appropriate implementation. |
| 1 (sslpPlatform) | Uses the platform/system implementation. |
| 2 (sslpInternal) | Uses the internal implementation. |
In most cases using the default value (Automatic) is recommended. The component will select a provider depending on the current platform.
When Automatic is selected, on Windows, the component will use the platform implementation. On Linux/macOS, the component will use the internal implementation. When TLS 1.3 is enabled via SSLEnabledProtocols, the component will always try and use the platform implementation. If the platform TLS 1.3 implementation is not available, the internal implementation will be used.
Data Type
int32
SSLServerCertEffectiveDate Property (AS3Sender Component)
The date on which this certificate becomes valid.
Syntax
func (obj *AS3Sender) SSLServerCertEffectiveDate() (string, error)
Default Value
""
Remarks
The date on which this certificate becomes valid. Before this date, it is not valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2000 15:00:00.
This property is read-only.
Data Type
string
SSLServerCertExpirationDate Property (AS3Sender Component)
The date on which the certificate expires.
Syntax
func (obj *AS3Sender) SSLServerCertExpirationDate() (string, error)
Default Value
""
Remarks
The date on which the certificate expires. After this date, the certificate will no longer be valid. The date is localized to the system's time zone. The following example illustrates the format of an encoded date:
23-Jan-2001 15:00:00.
This property is read-only.
Data Type
string
SSLServerCertExtendedKeyUsage Property (AS3Sender Component)
A comma-delimited list of extended key usage identifiers.
Syntax
func (obj *AS3Sender) SSLServerCertExtendedKeyUsage() (string, error)
Default Value
""
Remarks
A comma-delimited list of extended key usage identifiers. These are the same as ASN.1 object identifiers (OIDs).
This property is read-only.
Data Type
string
SSLServerCertFingerprint Property (AS3Sender Component)
The hex-encoded, 16-byte MD5 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SSLServerCertFingerprint() (string, error)
Default Value
""
Remarks
The hex-encoded, 16-byte MD5 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: bc:2a:72:af:fe:58:17:43:7a:5f:ba:5a:7c:90:f7:02
This property is read-only.
Data Type
string
SSLServerCertFingerprintSHA1 Property (AS3Sender Component)
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SSLServerCertFingerprintSHA1() (string, error)
Default Value
""
Remarks
The hex-encoded, 20-byte SHA-1 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 30:7b:fa:38:65:83:ff:da:b4:4e:07:3f:17:b8:a4:ed:80:be:ff:84
This property is read-only.
Data Type
string
SSLServerCertFingerprintSHA256 Property (AS3Sender Component)
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate.
Syntax
func (obj *AS3Sender) SSLServerCertFingerprintSHA256() (string, error)
Default Value
""
Remarks
The hex-encoded, 32-byte SHA-256 fingerprint of the certificate. This property is primarily used for keys which do not have a corresponding X.509 public certificate, such as PEM keys that only contain a private key. It is commonly used for SSH keys.
The following example illustrates the format: 6a:80:5c:33:a9:43:ea:b0:96:12:8a:64:96:30:ef:4a:8a:96:86:ce:f4:c7:be:10:24:8e:2b:60:9e:f3:59:53
This property is read-only.
Data Type
string
SSLServerCertIssuer Property (AS3Sender Component)
The issuer of the certificate.
Syntax
func (obj *AS3Sender) SSLServerCertIssuer() (string, error)
Default Value
""
Remarks
The issuer of the certificate. This property contains a string representation of the name of the issuing authority for the certificate.
This property is read-only.
Data Type
string
SSLServerCertPrivateKey Property (AS3Sender Component)
The private key of the certificate (if available).
Syntax
func (obj *AS3Sender) SSLServerCertPrivateKey() (string, error)
Default Value
""
Remarks
The private key of the certificate (if available). The key is provided as PEM/Base64-encoded data.
NOTE: The SSLServerCertPrivateKey may be available but not exportable. In this case, SSLServerCertPrivateKey returns an empty string.
This property is read-only.
Data Type
string
SSLServerCertPrivateKeyAvailable Property (AS3Sender Component)
Whether a PrivateKey is available for the selected certificate.
Syntax
func (obj *AS3Sender) SSLServerCertPrivateKeyAvailable() (bool, error)
Default Value
false
Remarks
Whether a SSLServerCertPrivateKey is available for the selected certificate. If SSLServerCertPrivateKeyAvailable is True, the certificate may be used for authentication purposes (e.g., server authentication).
This property is read-only.
Data Type
bool
SSLServerCertPrivateKeyContainer Property (AS3Sender Component)
The name of the PrivateKey container for the certificate (if available).
Syntax
func (obj *AS3Sender) SSLServerCertPrivateKeyContainer() (string, error)
Default Value
""
Remarks
The name of the SSLServerCertPrivateKey container for the certificate (if available). This functionality is available only on Windows platforms.
This property is read-only.
Data Type
string
SSLServerCertPublicKey Property (AS3Sender Component)
The public key of the certificate.
Syntax
func (obj *AS3Sender) SSLServerCertPublicKey() (string, error)
Default Value
""
Remarks
The public key of the certificate. The key is provided as PEM/Base64-encoded data.
This property is read-only.
Data Type
string
SSLServerCertPublicKeyAlgorithm Property (AS3Sender Component)
The textual description of the certificate's public key algorithm.
Syntax
func (obj *AS3Sender) SSLServerCertPublicKeyAlgorithm() (string, error)
Default Value
""
Remarks
The textual description of the certificate's public key algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_DH") or an object identifier (OID) string representing the algorithm.
This property is read-only.
Data Type
string
SSLServerCertPublicKeyLength Property (AS3Sender Component)
The length of the certificate's public key (in bits).
Syntax
func (obj *AS3Sender) SSLServerCertPublicKeyLength() (int32, error)
Default Value
0
Remarks
The length of the certificate's public key (in bits). Common values are 512, 1024, and 2048.
This property is read-only.
Data Type
int32
SSLServerCertSerialNumber Property (AS3Sender Component)
The serial number of the certificate encoded as a string.
Syntax
func (obj *AS3Sender) SSLServerCertSerialNumber() (string, error)
Default Value
""
Remarks
The serial number of the certificate encoded as a string. The number is encoded as a series of hexadecimal digits, with each pair representing a byte of the serial number.
This property is read-only.
Data Type
string
SSLServerCertSignatureAlgorithm Property (AS3Sender Component)
The text description of the certificate's signature algorithm.
Syntax
func (obj *AS3Sender) SSLServerCertSignatureAlgorithm() (string, error)
Default Value
""
Remarks
The text description of the certificate's signature algorithm. The property contains either the name of the algorithm (e.g., "RSA" or "RSA_MD5RSA") or an object identifier (OID) string representing the algorithm.
This property is read-only.
Data Type
string
SSLServerCertStore Property (AS3Sender Component)
The name of the certificate store for the client certificate.
Syntax
func (obj *AS3Sender) SSLServerCertStore() ([]byte, error)
Default Value
"MY"
Remarks
The name of the certificate store for the client certificate.
The SSLServerCertStoreType property denotes the type of the certificate store specified by SSLServerCertStore. If the store is password-protected, specify the password in SSLServerCertStorePassword.
SSLServerCertStore is used in conjunction with the SSLServerCertSubject property to specify client certificates. If SSLServerCertStore has a value, and SSLServerCertSubject or SSLServerCertEncoded is set, a search for a certificate is initiated. Please see the SSLServerCertSubject property for details.
Designations of certificate stores are platform dependent.
The following designations are the most common User and Machine certificate stores in Windows:
| MY | A certificate store holding personal certificates with their associated private keys. |
| CA | Certifying authority certificates. |
| ROOT | Root certificates. |
When the certificate store type is cstPFXFile, this property must be set to the name of the file. When the type is cstPFXBlob, the property must be set to the binary contents of a PFX file (i.e., PKCS#12 certificate store).
This property is read-only.
Data Type
[]byte
SSLServerCertStorePassword Property (AS3Sender Component)
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
Syntax
func (obj *AS3Sender) SSLServerCertStorePassword() (string, error)
Default Value
""
Remarks
If the type of certificate store requires a password, this property is used to specify the password needed to open the certificate store.
This property is read-only.
Data Type
string
SSLServerCertStoreType Property (AS3Sender Component)
The type of certificate store for this certificate.
Syntax
func (obj *AS3Sender) SSLServerCertStoreType() (int32, error)
Possible Values
0 // User
1 // Machine
2 // PFXFile
3 // PFXBlob
4 // JKSFile
5 // JKSBlob
6 // PEMKeyFile
7 // PEMKeyBlob
8 // PublicKeyFile
9 // PublicKeyBlob
10 // SSHPublicKeyBlob
11 // P7BFile
12 // P7BBlob
13 // SSHPublicKeyFile
14 // PPKFile
15 // PPKBlob
16 // XMLFile
17 // XMLBlob
18 // JWKFile
19 // JWKBlob
20 // SecurityKey
21 // BCFKSFile
22 // BCFKSBlob
23 // PKCS11
99 // Auto
Default Value
0
Remarks
The type of certificate store for this certificate.
The component supports both public and private keys in a variety of formats. When the cstAuto value is used, the component will automatically determine the type. This property can take one of the following values:
| 0 (cstUser - default) | For Windows, this specifies that the certificate store is a certificate store owned by the current user.
NOTE: This store type is not available in Java. |
| 1 (cstMachine) | For Windows, this specifies that the certificate store is a machine store.
NOTE: This store type is not available in Java. |
| 2 (cstPFXFile) | The certificate store is the name of a PFX (PKCS#12) file containing certificates. |
| 3 (cstPFXBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in PFX (PKCS#12) format. |
| 4 (cstJKSFile) | The certificate store is the name of a Java Key Store (JKS) file containing certificates.
NOTE: This store type is only available in Java. |
| 5 (cstJKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in Java Key Store (JKS) format.
NOTE: This store type is only available in Java. |
| 6 (cstPEMKeyFile) | The certificate store is the name of a PEM-encoded file that contains a private key and an optional certificate. |
| 7 (cstPEMKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a private key and an optional certificate. |
| 8 (cstPublicKeyFile) | The certificate store is the name of a file that contains a PEM- or DER-encoded public key certificate. |
| 9 (cstPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains a PEM- or DER-encoded public key certificate. |
| 10 (cstSSHPublicKeyBlob) | The certificate store is a string (binary or Base64-encoded) that contains an SSH-style public key. |
| 11 (cstP7BFile) | The certificate store is the name of a PKCS#7 file containing certificates. |
| 12 (cstP7BBlob) | The certificate store is a string (binary) representing a certificate store in PKCS#7 format. |
| 13 (cstSSHPublicKeyFile) | The certificate store is the name of a file that contains an SSH-style public key. |
| 14 (cstPPKFile) | The certificate store is the name of a file that contains a PPK (PuTTY Private Key). |
| 15 (cstPPKBlob) | The certificate store is a string (binary) that contains a PPK (PuTTY Private Key). |
| 16 (cstXMLFile) | The certificate store is the name of a file that contains a certificate in XML format. |
| 17 (cstXMLBlob) | The certificate store is a string that contains a certificate in XML format. |
| 18 (cstJWKFile) | The certificate store is the name of a file that contains a JWK (JSON Web Key). |
| 19 (cstJWKBlob) | The certificate store is a string that contains a JWK (JSON Web Key). |
| 21 (cstBCFKSFile) | The certificate store is the name of a file that contains a BCFKS (Bouncy Castle FIPS Key Store).
NOTE: This store type is only available in Java and .NET. |
| 22 (cstBCFKSBlob) | The certificate store is a string (binary or Base64-encoded) representing a certificate store in BCFKS (Bouncy Castle FIPS Key Store) format.
NOTE: This store type is only available in Java and .NET. |
| 23 (cstPKCS11) | The certificate is present on a physical security key accessible via a PKCS#11 interface.
To use a security key, create a new Certificate object and pass cstPKCS11 as the SSLServerCertStoreType, the full path of the PKCS#11 DLL as the SSLServerCertStore, and the PIN as the SSLServerCertStorePassword. Code Example. SSH Authentication with Security Key (without CertMgr):
Alternatively, collect the necessary data using the CertMgr component by calling the ListStoreCertificates method after setting the corresponding properties accordingly. The certificate information returned in the CertList event's CertEncoded parameter may be saved for later use. When using a certificate obtained with this approach, pass the previously saved security key information as the SSLServerCertStore and set SSLServerCertStorePassword to the PIN. Code Example. SSH Authentication with Security Key (with CertMgr):
|
| 99 (cstAuto) | The store type is automatically detected from the input data. This setting may be used with both public and private keys and can detect any of the supported formats automatically. |
This property is read-only.
Data Type
int32
SSLServerCertSubjectAltNames Property (AS3Sender Component)
Comma-separated lists of alternative subject names for the certificate.
Syntax
func (obj *AS3Sender) SSLServerCertSubjectAltNames() (string, error)
Default Value
""
Remarks
Comma-separated lists of alternative subject names for the certificate.
This property is read-only.
Data Type
string
SSLServerCertThumbprintMD5 Property (AS3Sender Component)
The MD5 hash of the certificate.
Syntax
func (obj *AS3Sender) SSLServerCertThumbprintMD5() (string, error)
Default Value
""
Remarks
The MD5 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SSLServerCertThumbprintSHA1 Property (AS3Sender Component)
The SHA-1 hash of the certificate.
Syntax
func (obj *AS3Sender) SSLServerCertThumbprintSHA1() (string, error)
Default Value
""
Remarks
The SHA-1 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SSLServerCertThumbprintSHA256 Property (AS3Sender Component)
The SHA-256 hash of the certificate.
Syntax
func (obj *AS3Sender) SSLServerCertThumbprintSHA256() (string, error)
Default Value
""
Remarks
The SHA-256 hash of the certificate. It is primarily used for X.509 certificates. If the hash does not already exist, it is automatically computed.
This property is read-only.
Data Type
string
SSLServerCertUsage Property (AS3Sender Component)
The text description of UsageFlags .
Syntax
func (obj *AS3Sender) SSLServerCertUsage() (string, error)
Default Value
""
Remarks
The text description of SSLServerCertUsageFlags.
This value will be one or more of the following strings and will be separated by commas:
- Digital Signature
- Non-Repudiation
- Key Encipherment
- Data Encipherment
- Key Agreement
- Certificate Signing
- CRL Signing
- Encipher Only
If the provider is OpenSSL, the value is a comma-separated list of X.509 certificate extension names.
This property is read-only.
Data Type
string
SSLServerCertUsageFlags Property (AS3Sender Component)
The flags that show intended use for the certificate.
Syntax
func (obj *AS3Sender) SSLServerCertUsageFlags() (int32, error)
Default Value
0
Remarks
The flags that show intended use for the certificate. The value of SSLServerCertUsageFlags is a combination of the following flags:
| 0x80 | Digital Signature |
| 0x40 | Non-Repudiation |
| 0x20 | Key Encipherment |
| 0x10 | Data Encipherment |
| 0x08 | Key Agreement |
| 0x04 | Certificate Signing |
| 0x02 | CRL Signing |
| 0x01 | Encipher Only |
Please see the SSLServerCertUsage property for a text representation of SSLServerCertUsageFlags.
This functionality currently is not available when the provider is OpenSSL.
This property is read-only.
Data Type
int32
SSLServerCertVersion Property (AS3Sender Component)
The certificate's version number.
Syntax
func (obj *AS3Sender) SSLServerCertVersion() (string, error)
Default Value
""
Remarks
The certificate's version number. The possible values are the strings "V1", "V2", and "V3".
This property is read-only.
Data Type
string
SSLServerCertSubject Property (AS3Sender Component)
The subject of the certificate used for client authentication.
Syntax
func (obj *AS3Sender) SSLServerCertSubject() (string, error)
Default Value
""
Remarks
The subject of the certificate used for client authentication.
This property must be set after all other certificate properties are set. When this property is set, a search is performed in the current certificate store to locate a certificate with a 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=example@email.com". Common fields and their meanings are as follows:
| Field | Meaning |
| CN | Common Name. This is commonly a hostname 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.
This property is read-only.
Data Type
string
SSLServerCertEncoded Property (AS3Sender Component)
The certificate (PEM/Base64 encoded).
Syntax
func (obj *AS3Sender) SSLServerCertEncoded() ([]byte, error)
Default Value
""
Remarks
The certificate (PEM/Base64 encoded). This property is used to assign a specific certificate. The SSLServerCertStore and SSLServerCertSubject properties also may be used to specify a certificate.
When SSLServerCertEncoded is set, a search is initiated in the current SSLServerCertStore for the private key of the certificate. If the key is found, SSLServerCertSubject is updated to reflect the full subject of the selected certificate; otherwise, SSLServerCertSubject is set to an empty string.
This property is read-only.
Data Type
[]byte
SSLStartMode Property (AS3Sender Component)
Determines how the class starts the SSL negotiation. By default, SSL will not be used.
Syntax
func (obj *AS3Sender) SSLStartMode() (int32, error)
func (obj *AS3Sender) SetSSLStartMode(value int32) error
Possible Values
0 // Automatic
1 // Implicit
2 // Explicit
3 // None
Default Value
3
Remarks
The SSLStartMode property may have one of the following values:
| 0 (sslAutomatic - default) | If the remote port is set to the standard plaintext port of the protocol (where applicable), the component will behave the same as if SSLStartMode is set to sslExplicit. In all other cases, SSL negotiation will be implicit (sslImplicit). |
| 1 (sslImplicit) | The SSL negotiation will start immediately after the connection is established. |
| 2 (sslExplicit) | The component will first connect in plaintext, and then explicitly start SSL negotiation through a protocol command such as STARTTLS. |
| 3 (sslNone) | No SSL negotiation, no SSL security. All communication will be in plaintext mode. |
Data Type
int32
Subject Property (AS3Sender Component)
The subject of the message.
Syntax
func (obj *AS3Sender) Subject() (string, error)
func (obj *AS3Sender) SetSubject(value string) error
Default Value
""
Remarks
The optional human-readable subject of the message. Some AS2 partners will use this field to send additional information about the transmission at the transport layer.
Data Type
string
Timeout Property (AS3Sender Component)
The timeout for the class.
Syntax
func (obj *AS3Sender) Timeout() (int32, error)
func (obj *AS3Sender) SetTimeout(value int32) error
Default Value
60
Remarks
If the Timeout property is set to 0, all operations will run uninterrupted until successful completion or an error condition is encountered.
If Timeout is set to a positive value, the component will wait for the operation to complete before returning control.
The component will use DoEvents to enter an efficient wait loop during any potential waiting period, making sure that all system events are processed immediately as they arrive. This ensures that the host application does not freeze and remains responsive.
If Timeout expires, and the operation is not yet complete, the component fails with an error.
NOTE: By default, all timeouts are inactivity timeouts, that is, the timeout period is extended by Timeout seconds when any amount of data is successfully sent or received.
The default value for the Timeout property is 60 seconds.
Data Type
int32
User Property (AS3Sender Component)
This property contains the user identifier to use to log in.
Syntax
func (obj *AS3Sender) User() (string, error)
func (obj *AS3Sender) SetUser(value string) error
Default Value
""
Remarks
This property contains the user identifier to be used when logging in. It must be set before the component connects to the FTP server.
Data Type
string
Abort Method (AS3Sender Component)
The method aborts the current upload or download.
Syntax
func (obj *AS3Sender) Abort() error
Remarks
This method sends an ABOR command to the FTP server. It is used to interrupt file uploads and downloads.
ChangeRemotePath Method (AS3Sender Component)
This method changes the current path on the FTP server.
Syntax
func (obj *AS3Sender) ChangeRemotePath(RemotePath string) error
Remarks
This method changes the current path on the FTP server to the specified RemotePath. When called, the component will issue a command to the server to change the directory. The RemotePath parameter may hold an absolute or relative path.
Absolute Paths
If the path begins with a /, it is considered an absolute path and must specify the entire path from the root of the server. For instance:
component.ChangeRemotePath("/home/testuser/myfolder");
Relative Paths
If the path does not begin with a /, it is considered a relative path and is resolved in relation to the current directory. For instance, a value of myfolder will indicate a subfolder of the current directory. The special value .. refers to the parent directory of the current path. For instance:
//Change to the 'myfolder' sub-directory
component.ChangeRemotePath("myfolder");
//Navigate up two levels and then into the 'another/folder' path.
component.ChangeRemotePath("../../another/folder");
Config Method (AS3Sender Component)
Sets or retrieves a configuration setting.
Syntax
func (obj *AS3Sender) Config(ConfigurationString string) (string, error)
Remarks
Config is a generic method available in every component. It is used to set and retrieve configuration settings for the component.
These settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the component, access to these internal properties is provided through the Config method.
To set a configuration setting named PROPERTY, you must call Config("PROPERTY=VALUE"), where VALUE is the value of the setting expressed as a string. For boolean values, use the strings "True", "False", "0", "1", "Yes", or "No" (case does not matter).
To read (query) the value of a configuration setting, you must call Config("PROPERTY"). The value will be returned as a string.
DeleteFile Method (AS3Sender Component)
This method removes a file specified by FileName from an FTP server.
Syntax
func (obj *AS3Sender) DeleteFile(FileName string) error
Remarks
This method is used to remove a file specified by FileName from an FTP server. The remote file or directory specified by FileName is deleted. FileName is either an absolute path on the server, or a path relative to remote path set by ChangeRemotePath. If no FTP session is in place, one is automatically created by first calling the Logon method.
GetFileSize Method (AS3Sender Component)
Gets the size of a file on the FTP server.
Syntax
func (obj *AS3Sender) GetFileSize(FileName string) error
Remarks
Gets the size of the file specified by FileName and RemotePath on the FTP server.
GetFileTime Method (AS3Sender Component)
Gets the last modification time of a file on the FTP server.
Syntax
func (obj *AS3Sender) GetFileTime(FileName string) error
Remarks
Gets the last modification time of the file specified by FileName and RemotePath on the FTP server.
ListDirectory Method (AS3Sender Component)
List the current directory on an FTP server.
Syntax
func (obj *AS3Sender) ListDirectory(FilesToList string) error
Remarks
A listing is requested for the directory or file mask specified in FilesToList. This can be an absolute path on the server, a path relative to RemotePath, or a file mask. The file listing is received through the DirList event.
Similar to ListDirectoryLong, except only file names are returned. If no FTP session is in place, one is automatically created by first calling the Logon method.
ListDirectoryLong Method (AS3Sender Component)
List the current directory on an FTP server.
Syntax
func (obj *AS3Sender) ListDirectoryLong(FilesToList string) error
Remarks
A listing is requested for the directory or file mask specified in FilesToList. This can be an absolute path on the server, a path relative to RemotePath, or a file mask. The file listing is received through the DirList event. Extended file information is returned.
If no FTP session is in place, one is automatically created by first calling the Logon method.
Logoff Method (AS3Sender Component)
This method is used to log off from the FTP server by posting a QUIT command.
Syntax
func (obj *AS3Sender) Logoff() error
Remarks
This method is used to log off from the FTP server by posting a QUIT command. If that fails, the connection is terminated by the local host.
Logon Method (AS3Sender Component)
Logon to the FTP RemoteHost using the current User and Password .
Syntax
func (obj *AS3Sender) Logon() error
Remarks
Logon to the FTP server using the current User and Password. If an SSL (TLS) connection is required, you should first set SSLStartMode.
Example (Logging On)
FTPControl.RemoteHost = "ftpserver"
FTPControl.User = "username"
FTPControl.Password = "password"
FTPControl.Logon()
QueryRemotePath Method (AS3Sender Component)
This queries the server for the current path.
Syntax
func (obj *AS3Sender) QueryRemotePath() (string, error)
Remarks
This method queries the server for the current path. When called, the component will issue a command to the server to retrieve the current path value. The return value of this method is the path returned by the server. For instance:
string remotePath = component.QueryRemotePath();
ReadReceipt Method (AS3Sender Component)
Reads and parses (but does not verify) an MDN receipt.
Syntax
func (obj *AS3Sender) ReadReceipt(FileName string) error
Remarks
ReadReceipt will retrieve the file specified by FileName from the FTP server, and attempt to parse it as an MDN receipt. If the file is a valid MDN receipt, the component will determine the originator of the receipt and the MessageId of the original message. The originator of the receipt will be stored in AS3To, the intended recipient (presumably your system) will be stored in AS3From, and the original message Id will be stored in MessageId.
Pass in an empty string to skip the FTP transfer, and process the receipt specified by the MDNReceipt property instead.
You should then look up the original message and set OriginalContentMIC to the value of OriginalContentMIC originally computed when the message was sent (you will need to save this information externally). You should also set RecipientCert based on the value of AS3To if necessary. Also, set MDNOptions to the value used when making the original request.
Finally, VerifyReceipt should be used to verify the receipt.
Reset Method (AS3Sender Component)
Resets the state of the control.
Syntax
func (obj *AS3Sender) Reset() error
Remarks
Reset resets the state of the component. All properties will be set to their default values.
Send Method (AS3Sender Component)
Prepares and sends the AS3 message.
Syntax
func (obj *AS3Sender) Send(FileName string) error
Remarks
Invoking Send will prepare and send the AS3 message. It will be signed if SigningCert is set, encrypted if RecipientCert is set, and compressed if CompressionFormat is set. A receipt will be requested if MDNTo is set.
Prior to sending, you may Logon to the FTP server and navigate to the desired RemotePath. If you have not created an FTP connection already then Send will attempt to establish one.
FileName should contain the name of the file that will be written on the AS3/FTP server. You may leave FileName blank to allow the component to determine an appropriate name.
SendFTPCommand Method (AS3Sender Component)
Sends the exact command directly to the server.
Syntax
func (obj *AS3Sender) SendFTPCommand(command string) error
Remarks
This method sends the command specified by Command to the server exactly as it is provided. Use this method to send additional or custom commands directly to the server.
After calling this method check the FTPLastReply property and/or monitor the PITrail event to obtain the server's response.
VerifyReceipt Method (AS3Sender Component)
Verifies an MDN receipt.
Syntax
func (obj *AS3Sender) VerifyReceipt() error
Remarks
VerifyReceipt verifies the receipt in MDNReceipt against the values of OriginalContentMIC and MessageId and the preferences specified in MDNOptions. The method operates similarly to Post: After the method finishes, the MDNReceipt, ReceiptSigningProtocol, and ReceiptSignerCert properties will be populated with the appropriate values.
The method operates synchronously, and will throw an exception if any errors or warnings occur. Errors might include a failure to decrypt or authenticate the receipt, the absence of an MDN when one was requested, TCP/IP errors, or any errors reported by the server in the MDN. Warnings might include the return of an unsigned receipt when a signed receipt was requested, or other warnings reported by the server in the MDN.
If an exception is thrown the error code will correspond to the severity of the warning or error, allowing client software to determine whether or not to accept the reply. If multiple errors occur, the exception will return a special error code, and the error message will contain a line for each error's code and description; i.e. "423: Failed to authenticate sender". If the error(s) is/are not fatal processing will not be interrupted, and the relevant properties will be populated as normal.
You should first invoke ReadReceipt when it is not known which message the receipt is in response to. This will allow you to determine the original MessageId and originator of the receipt before trying to verify it.
ConnectionStatus Event (AS3Sender Component)
Fired to indicate changes in the connection state.
Syntax
// AS3SenderConnectionStatusEventArgs carries the AS3Sender ConnectionStatus event's parameters.
type AS3SenderConnectionStatusEventArgs struct {...}
func (args *AS3SenderConnectionStatusEventArgs) ConnectionEvent() string
func (args *AS3SenderConnectionStatusEventArgs) StatusCode() int32
func (args *AS3SenderConnectionStatusEventArgs) Description() string
// AS3SenderConnectionStatusEvent defines the signature of the AS3Sender ConnectionStatus event's handler function.
type AS3SenderConnectionStatusEvent func(sender *AS3Sender, args *AS3SenderConnectionStatusEventArgs)
func (obj *AS3Sender) GetOnConnectionStatusHandler() AS3SenderConnectionStatusEvent
func (obj *AS3Sender) SetOnConnectionStatusHandler(handlerFunc AS3SenderConnectionStatusEvent)
Remarks
This event is fired when the connection state changes: for example, completion of a firewall or proxy connection or completion of a security handshake.
The ConnectionEvent parameter indicates the type of connection event. Values may include the following:
| Firewall connection complete. | |
| Secure Sockets Layer (SSL) or S/Shell handshake complete (where applicable). | |
| Remote host connection complete. | |
| Remote host disconnected. | |
| SSL or S/Shell connection broken. | |
| Firewall host disconnected. |
DirList Event (AS3Sender Component)
This event is fired when a directory entry is received.
Syntax
// AS3SenderDirListEventArgs carries the AS3Sender DirList event's parameters.
type AS3SenderDirListEventArgs struct {...}
func (args *AS3SenderDirListEventArgs) DirEntry() string
func (args *AS3SenderDirListEventArgs) FileName() string
func (args *AS3SenderDirListEventArgs) IsDir() bool
func (args *AS3SenderDirListEventArgs) FileSize() int64
func (args *AS3SenderDirListEventArgs) FileTime() string
// AS3SenderDirListEvent defines the signature of the AS3Sender DirList event's handler function.
type AS3SenderDirListEvent func(sender *AS3Sender, args *AS3SenderDirListEventArgs)
func (obj *AS3Sender) GetOnDirListHandler() AS3SenderDirListEvent
func (obj *AS3Sender) SetOnDirListHandler(handlerFunc AS3SenderDirListEvent)
Remarks
The DirList events are fired when a directory listing is received as a response to a ListDirectory or ListDirectoryLong call.
The StartTransfer and EndTransfer events mark the beginning and end of the event stream.
The DirEntry parameter contains the filename when ListDirectory is called and includes extended file information when ListDirectoryLong is called.
The component tries to fill out the FileName, IsDir, FileSize, and FileTime parameters when calling the ListDirectoryLong method. Except for FileName, these parameters are empty when a short "List Directory" is performed.
In Unix systems, the date is given in two types of formats: If the date is in the past 12 months the exact time is specified and the year is omitted. Otherwise, only the date and the year, but not hours or minutes, are given.
EndTransfer Event (AS3Sender Component)
This event is fired when a file finishes downloading or uploading.
Syntax
// AS3SenderEndTransferEventArgs carries the AS3Sender EndTransfer event's parameters.
type AS3SenderEndTransferEventArgs struct {...}
func (args *AS3SenderEndTransferEventArgs) Direction() int32
// AS3SenderEndTransferEvent defines the signature of the AS3Sender EndTransfer event's handler function.
type AS3SenderEndTransferEvent func(sender *AS3Sender, args *AS3SenderEndTransferEventArgs)
func (obj *AS3Sender) GetOnEndTransferHandler() AS3SenderEndTransferEvent
func (obj *AS3Sender) SetOnEndTransferHandler(handlerFunc AS3SenderEndTransferEvent)
Remarks
The EndTransfer event fires when a Data Interface connection is closed. This occurs when the file finishes transferring or a directory listing is finished.
The Direction parameter shows whether the client (0) or the server (1) is sending the data.
Error Event (AS3Sender Component)
Fired when information is available about errors during data delivery.
Syntax
// AS3SenderErrorEventArgs carries the AS3Sender Error event's parameters.
type AS3SenderErrorEventArgs struct {...}
func (args *AS3SenderErrorEventArgs) ErrorCode() int32
func (args *AS3SenderErrorEventArgs) Description() string
// AS3SenderErrorEvent defines the signature of the AS3Sender Error event's handler function.
type AS3SenderErrorEvent func(sender *AS3Sender, args *AS3SenderErrorEventArgs)
func (obj *AS3Sender) GetOnErrorHandler() AS3SenderErrorEvent
func (obj *AS3Sender) SetOnErrorHandler(handlerFunc AS3SenderErrorEvent)
Remarks
The Error event is fired in case of exceptional conditions during message processing. Normally the component fails with an error.
The ErrorCode parameter contains an error code, and the Description parameter contains a textual description of the error. For a list of valid error codes and their descriptions, please refer to the Error Codes section.
Log Event (AS3Sender Component)
Fired with log information while processing a message.
Syntax
// AS3SenderLogEventArgs carries the AS3Sender Log event's parameters.
type AS3SenderLogEventArgs struct {...}
func (args *AS3SenderLogEventArgs) LogType() string
func (args *AS3SenderLogEventArgs) LogMessage() []byte
// AS3SenderLogEvent defines the signature of the AS3Sender Log event's handler function.
type AS3SenderLogEvent func(sender *AS3Sender, args *AS3SenderLogEventArgs)
func (obj *AS3Sender) GetOnLogHandler() AS3SenderLogEvent
func (obj *AS3Sender) SetOnLogHandler(handlerFunc AS3SenderLogEvent)
Remarks
This event fires once for each log message generated by the component. The verbosity is controlled by the LogLevel setting.
Log messages available through this event correspond to log files written to LogDirectory. This event provides a way to obtain log messages without relying on files on disk. This event fires regardless of the value of LogDirectory (i.e. when LogDirectory is empty the event will still fire).
The LogMessage event parameter holds the raw log data.
The LogType event parameter indicates the type of log. Possible values are:
| "LOG" | Information about the status of the process. |
| "ERR" | An error was encountered. |
| "DAT" | The EDI payload. |
| "REQ" | The raw request |
| "MDN" | The MDN response. |
| "DEBUG" | Debug information. |
| "DAT.INPUT" | Debug information when processing payload. Only applicable when LogDebug is True. |
| "DAT.ENCRYPT" | Debug information when processing payload. Only applicable when LogDebug is True. |
| "DAT.COMPRESS" | Debug information when processing payload. Only applicable when LogDebug is True. |
| "DAT.SIGN" | Debug information when processing payload. Only applicable when LogDebug is True. |
| "DAT.DECRYPT" | Debug information when processing payload. Only applicable when LogDebug is True. |
| "DAT.DECOMPRESS" | Debug information when processing payload. Only applicable when LogDebug is True. |
| "DAT.VERIFY" | Debug information when processing payload. Only applicable when LogDebug is True. |
| "DAT.DEBUG" | Debug information when processing payload. Only applicable when LogDebug is True. |
PITrail Event (AS3Sender Component)
This event traces the commands sent to the server, and the respective replies.
Syntax
// AS3SenderPITrailEventArgs carries the AS3Sender PITrail event's parameters.
type AS3SenderPITrailEventArgs struct {...}
func (args *AS3SenderPITrailEventArgs) Direction() int32
func (args *AS3SenderPITrailEventArgs) Message() string
// AS3SenderPITrailEvent defines the signature of the AS3Sender PITrail event's handler function.
type AS3SenderPITrailEvent func(sender *AS3Sender, args *AS3SenderPITrailEventArgs)
func (obj *AS3Sender) GetOnPITrailHandler() AS3SenderPITrailEvent
func (obj *AS3Sender) SetOnPITrailHandler(handlerFunc AS3SenderPITrailEvent)
Remarks
The PITrail event is useful for debugging purposes. It shows all of the interactions between the client and the server, line by line.
The Message parameter contains the full text of the message. The Direction parameter shows the originator of the message:
| 0 (Client) | The Message originates from the client. |
| 1 (Server) | The Message originates from the server. |
| 2 (Info) | The Message is an informative message originating from the client software (the component code). |
SSLServerAuthentication Event (AS3Sender Component)
Fired after the server presents its certificate to the client.
Syntax
// AS3SenderSSLServerAuthenticationEventArgs carries the AS3Sender SSLServerAuthentication event's parameters.
type AS3SenderSSLServerAuthenticationEventArgs struct {...}
func (args *AS3SenderSSLServerAuthenticationEventArgs) CertEncoded() []byte
func (args *AS3SenderSSLServerAuthenticationEventArgs) CertSubject() string
func (args *AS3SenderSSLServerAuthenticationEventArgs) CertIssuer() string
func (args *AS3SenderSSLServerAuthenticationEventArgs) Status() string
func (args *AS3SenderSSLServerAuthenticationEventArgs) Accept() bool
func (args *AS3SenderSSLServerAuthenticationEventArgs) SetAccept(value bool)
// AS3SenderSSLServerAuthenticationEvent defines the signature of the AS3Sender SSLServerAuthentication event's handler function.
type AS3SenderSSLServerAuthenticationEvent func(sender *AS3Sender, args *AS3SenderSSLServerAuthenticationEventArgs)
func (obj *AS3Sender) GetOnSSLServerAuthenticationHandler() AS3SenderSSLServerAuthenticationEvent
func (obj *AS3Sender) SetOnSSLServerAuthenticationHandler(handlerFunc AS3SenderSSLServerAuthenticationEvent)
Remarks
During this event, the client can decide whether or not to continue with the connection process. The Accept parameter is a recommendation on whether to continue or close the connection. This is just a suggestion: application software must use its own logic to determine whether or not to continue.
When Accept is False, Status shows why the verification failed (otherwise, Status contains the string OK). If it is decided to continue, you can override and accept the certificate by setting the Accept parameter to True.
SSLStatus Event (AS3Sender Component)
Fired when secure connection progress messages are available.
Syntax
// AS3SenderSSLStatusEventArgs carries the AS3Sender SSLStatus event's parameters.
type AS3SenderSSLStatusEventArgs struct {...}
func (args *AS3SenderSSLStatusEventArgs) Message() string
// AS3SenderSSLStatusEvent defines the signature of the AS3Sender SSLStatus event's handler function.
type AS3SenderSSLStatusEvent func(sender *AS3Sender, args *AS3SenderSSLStatusEventArgs)
func (obj *AS3Sender) GetOnSSLStatusHandler() AS3SenderSSLStatusEvent
func (obj *AS3Sender) SetOnSSLStatusHandler(handlerFunc AS3SenderSSLStatusEvent)
Remarks
The event is fired for informational and logging purposes only. This event tracks the progress of the connection.
StartTransfer Event (AS3Sender Component)
This event fires when a file starts downloading or uploading.
Syntax
// AS3SenderStartTransferEventArgs carries the AS3Sender StartTransfer event's parameters.
type AS3SenderStartTransferEventArgs struct {...}
func (args *AS3SenderStartTransferEventArgs) Direction() int32
// AS3SenderStartTransferEvent defines the signature of the AS3Sender StartTransfer event's handler function.
type AS3SenderStartTransferEvent func(sender *AS3Sender, args *AS3SenderStartTransferEventArgs)
func (obj *AS3Sender) GetOnStartTransferHandler() AS3SenderStartTransferEvent
func (obj *AS3Sender) SetOnStartTransferHandler(handlerFunc AS3SenderStartTransferEvent)
Remarks
The StartTransfer event fires when a Data Interface connection is created. This is when the file starts transferring or a directory listing is started.
The Direction parameter shows whether the client (0) or the server (1) is sending the data.
Transfer Event (AS3Sender Component)
This event is fired during the file download or upload.
Syntax
// AS3SenderTransferEventArgs carries the AS3Sender Transfer event's parameters.
type AS3SenderTransferEventArgs struct {...}
func (args *AS3SenderTransferEventArgs) Direction() int32
func (args *AS3SenderTransferEventArgs) BytesTransferred() int64
func (args *AS3SenderTransferEventArgs) PercentDone() int32
func (args *AS3SenderTransferEventArgs) Text() []byte
// AS3SenderTransferEvent defines the signature of the AS3Sender Transfer event's handler function.
type AS3SenderTransferEvent func(sender *AS3Sender, args *AS3SenderTransferEventArgs)
func (obj *AS3Sender) GetOnTransferHandler() AS3SenderTransferEvent
func (obj *AS3Sender) SetOnTransferHandler(handlerFunc AS3SenderTransferEvent)
Remarks
One or more Transfer events are fired during file transfer. The BytesTransferred parameter shows the number of bytes transferred since the beginning of the transfer.
Text contains the portion of the file data being delivered.
The Direction parameter shows whether the client (0) or the server (1) is sending the data.
The PercentDone parameter shows the progress of the transfer in the corresponding direction. If PercentDone can not be calculated the value will be -1.
NOTE: Events are not re-entrant. Performing time-consuming operations within this event will prevent it from firing again in a timely manner and may affect overall performance.
Config Settings (AS3Sender Component)
The component accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the component, access to these internal properties is provided through the Config method.AS3Sender Config Settings
Note that only the base name should be specified as the component will append the appropriate file extension.
FTP Config Settings
NOTE: This configuration setting will be ignored if ActiveModePORTAddress is also specified.
This configuration setting must be used in conjunction with PortRange to ensure that the correct port is used by the client.
In many cases, FTP servers are not configured to return a valid public IP in the PASV response. When Secure Sockets Layer/Transport Layer Security (SSL/TLS) is used any network address translation (NAT) done by the firewall cannot occur. The result is the client may receive an IP that is not accessible.
This setting is designed to allow the connection to succeed in as many cases as possible. When the IP for the data connection is received from the server, the component will inspect the value. If the received value is not within the known private IP ranges, the component will use it, assuming it is a valid public IP. If the received value is a private IP, the component will instead assume the data connection should be established to the same IP as the command connection (true in almost all cases).
When this setting is False, the component will not perform any checks on the received value. When set to False, UseRemoteHostAddressForPassive is applicable.
In the case that DILinger is True (default), follow two scenarios to determine how long the connection will linger. In the first scenario, if DILingerTime is 0 (default), the system will attempt to send pending data for a connection until the default IP timeout expires.
In the second scenario, DILingerTime is a positive value, the system will attempt to send pending data until the specified DILingerTime is reached. If this attempt fails, then the system will reset the connection.
The default behavior (which is also the default mode for stream sockets) might result in a long delay in closing the connection. Although the component returns control immediately, the system could hold system resources until all pending data are sent (even after your application closes).
Setting this property to False forces an immediate disconnection. If you know that the other side has received all the data you sent (by a client acknowledgment, for example), setting this property to False might be the appropriate course of action.
This setting applies only when calling QueryFileTime. It does not apply to the FileTime parameter of the DirList event.
The range is provided as start-end, for instance: "1024-" stands for anything higher than 1024, "1024-2048" stands for ports between 1024 and 2048 inclusive, "4000-4010, 50000-50010" stands for ports between 4000 and 4010 or between 50000 and 50010.
When set to True, set RemoteFile to the filemask and call either ListDirectory or ListDirectoryLong. There is no difference between the two methods when this setting is enabled.
When set to True, set RemoteFile to the file or folder you wish to get information about and call either ListDirectory or ListDirectoryLong. There is no difference between the two methods when this setting is enabled. When both UseMLSD and UseMLST are set, UseMLSD takes precedence.
NOTE: Using AUTH SSL instead of AUTH TLS is strongly discouraged because of potential security vulnerabilities. If you must use this configuration setting, please do so very carefully.
When this setting is False (default) and AutoSelectDataIP is also False, the component will use the IP address returned by the server when establishing a data connection.
This setting is not applicable when Passive is set to False (Active mode).
TCPClient Config Settings
This setting is a convenient alternative to setting UseIPv6 to 3.
Note that when this setting is enabled, LocalPort must be 0 and LocalHost must be empty or "localhost"; the component fails with an error if either is set to another value.
The default value is false.
If the FirewallHost setting is set to a Domain Name, a DNS request is initiated. Upon successful termination of the request, the FirewallHost setting is set to the corresponding address. If the search is not successful, an error is returned.
NOTE: This setting is provided for use by components that do not directly expose Firewall properties.
NOTE: This setting is provided for use by components that do not directly expose Firewall properties.
NOTE: This configuration setting is provided for use by components that do not directly expose Firewall properties.
| 1 | AuthDigest |
| 3 | AuthNone |
| 4 | AuthNTLM |
| 5 | AuthNegotiate |
| 0 | No firewall (default setting). |
| 1 | Connect through a tunneling proxy. FirewallPort is set to 80. |
| 2 | Connect through a SOCKS4 Proxy. FirewallPort is set to 1080. |
| 3 | Connect through a SOCKS5 Proxy. FirewallPort is set to 1080. |
| 10 | Connect through a SOCKS4A Proxy. FirewallPort is set to 1080. |
NOTE: This setting is provided for use by components that do not directly expose Firewall properties.
NOTE: This setting is provided for use by components that do not directly expose Firewall properties.
The default value is 250.
NOTE: This value is not applicable in macOS.
In the case that Linger is True (default), two scenarios determine how long the connection will linger. In the first, if LingerTime is 0 (default), the system will attempt to send pending data for a connection until the default IP timeout expires.
In the second scenario, if LingerTime is a positive value, the system will attempt to send pending data until the specified LingerTime is reached. If this attempt fails, then the system will reset the connection.
The default behavior (which is also the default mode for stream sockets) might result in a long delay in closing the connection. Although the component returns control immediately, the system could hold system resources until all pending data are sent (even after your application closes).
Setting this property to False forces an immediate disconnection. If you know that the other side has received all the data you sent (e.g., by a client acknowledgment), setting this property to False might be the appropriate course of action.
In multihomed hosts (machines with more than one IP interface), setting LocalHost to the value of an interface will make the component initiate connections (or accept in the case of server components) only through that interface.
If the component is connected, the LocalHost setting shows the IP address of the interface through which the connection is made in internet dotted format (aaa.bbb.ccc.ddd). In most cases, this is the address of the local host, except for multihomed hosts (machines with more than one IP interface).
Setting this to 0 (default) enables the system to choose a port at random. The chosen port will be shown by LocalPort after the connection is established.
LocalPort cannot be changed once a connection is made. Any attempt to set this when a connection is active will generate an error.
This configuration setting is useful when trying to connect to services that require a trusted port on the client side. An example is the remote shell (rsh) service in UNIX systems.
If an EOL string is found in the input stream before MaxLineLength bytes are received, the DataIn event is fired with the EOL parameter set to True, and the buffer is reset.
If no EOL is found, and MaxLineLength bytes are accumulated in the buffer, the DataIn event is fired with the EOL parameter set to False, and the buffer is reset.
The minimum value for MaxLineLength is 256 bytes. The default value is 2048 bytes.
www.google.com;www.example.com
NOTE: This value is not applicable in Java.
By default, this configuration setting is set to False.
| 0 | IPv4 only |
| 1 | IPv6 only |
| 2 | IPv6 with IPv4 fallback |
| 3 | Happy Eyeballs (the component will attempt to connect to IPv4 and IPv6 addresses concurrently and use whichever connects first) |
Setting this configuration setting to 3 is equivalent to enabling the EnableHappyEyeballs setting. See EnableHappyEyeballs and HappyEyeballsDelay for more details.
SSL Config Settings
When enabled, SSL packet logs are output using the SSLStatus event, which will fire each time an SSL packet is sent or received.
Enabling this configuration setting has no effect if SSLProvider is set to Platform.
The path set by this property should point to a directory containing CA certificates in PEM format. The files each contain one CA certificate. The files are looked up by the CA subject name hash value, which must hence be available. If more than one CA certificate with the same name hash value exist, the extension must be different (e.g., 9d66eef0.0, 9d66eef0.1). OpenSSL recommends the use of the c_rehash utility to create the necessary links. Please refer to the OpenSSL man page SSL_CTX_load_verify_locations(3) for details.
The file set by this property should contain a list of CA certificates in PEM format. The file can contain several CA certificates identified by the following sequences:
-----BEGIN CERTIFICATE-----
... (CA certificate in base64 encoding) ...
-----END CERTIFICATE-----
Before, between, and after the certificate text is allowed, which can be used, for example, for descriptions of the certificates. Refer to the OpenSSL man page SSL_CTX_load_verify_locations(3) for details.
The format of this string is described in the OpenSSL man page ciphers(1) section "CIPHER LIST FORMAT". Please refer to it for details. The default string "DEFAULT" is determined at compile time and is normally equivalent to "ALL:!ADH:RC4+RSA:+SSLv2:@STRENGTH".
By default, OpenSSL uses the device file "/dev/urandom" to seed the PRNG, and setting OpenSSLPrngSeedData is not required. If set, the string specified is used to seed the PRNG.
If set to True, the component will reuse the context if and only if the following criteria are met:
- The target host name is the same.
- The system cache entry has not expired (default timeout is 10 hours).
- The application process that calls the function is the same.
- The logon session is the same.
- The instance of the component is the same.
-----BEGIN CERTIFICATE----- MIIEKzCCAxOgAwIBAgIRANTET4LIkxdH6P+CFIiHvTowDQYJKoZIhvcNAQELBQAw ... Intermediate Cert ... eWHV5OW1K53o/atv59sOiW5K3crjFhsBOd5Q+cJJnU+SWinPKtANXMht+EDvYY2w F0I1XhM+pKj7FjDr+XNj -----END CERTIFICATE----- \r \n -----BEGIN CERTIFICATE----- MIIEFjCCAv6gAwIBAgIQetu1SMxpnENAnnOz1P+PtTANBgkqhkiG9w0BAQUFADBp ... Root Cert ... d8q23djXZbVYiIfE9ebr4g3152BlVCHZ2GyPdjhIuLeH21VbT/dyEHHA -----END CERTIFICATE-----
When set to 0 (default), the CRL check will not be performed by the component. When set to 1, it will attempt to perform the CRL check, but it will continue without an error if the server's certificate does not support CRL. When set to 2, it will perform the CRL check and will throw an error if CRL is not supported.
This configuration setting is supported only in the Java, C#, and C++ editions. In the C++ edition, it is supported only on Windows operating systems.
When set to 0 (default), the component will not perform an OCSP check. When set to 1, it will attempt to perform the OCSP check, but it will continue without an error if the server's certificate does not support OCSP. When set to 2, it will perform the OCSP check and will throw an error if OCSP is not supported.
This configuration setting is supported only in the Java, C#, and C++ editions. In the C++ edition, it is supported only on Windows operating systems.
NOTE: This configuration setting contains the minimum cipher strength requested from the security library. The actual cipher strength used for the connection is shown by the SSLStatus event.
Use this configuration setting with caution. Requesting a lower cipher strength than necessary could potentially cause serious security vulnerabilities in your application.
When the provider is OpenSSL, SSLCipherStrength is currently not supported. This functionality is instead made available through the OpenSSLCipherList configuration setting.
The value of this configuration setting is a newline-separated (CR/LF) list of certificates. For instance:
-----BEGIN CERTIFICATE----- MIIEKzCCAxOgAwIBAgIRANTET4LIkxdH6P+CFIiHvTowDQYJKoZIhvcNAQELBQAw ... Intermediate Cert ... eWHV5OW1K53o/atv59sOiW5K3crjFhsBOd5Q+cJJnU+SWinPKtANXMht+EDvYY2w F0I1XhM+pKj7FjDr+XNj -----END CERTIFICATE----- \r \n -----BEGIN CERTIFICATE----- MIIEFjCCAv6gAwIBAgIQetu1SMxpnENAnnOz1P+PtTANBgkqhkiG9w0BAQUFADBp ... Root Cert ... d8q23djXZbVYiIfE9ebr4g3152BlVCHZ2GyPdjhIuLeH21VbT/dyEHHA -----END CERTIFICATE-----
By default, the enabled cipher suites will include all available ciphers ("*").
The special value "*" means that the component will pick all of the supported cipher suites. If SSLEnabledCipherSuites is set to any other value, only the specified cipher suites will be considered.
Multiple cipher suites are separated by semicolons.
Example values when SSLProvider is set to Platform include the following:
obj.config("SSLEnabledCipherSuites=*");
obj.config("SSLEnabledCipherSuites=CALG_AES_256");
obj.config("SSLEnabledCipherSuites=CALG_AES_256;CALG_3DES");
Possible values when SSLProvider is set to Platform include the following:
- CALG_3DES
- CALG_3DES_112
- CALG_AES
- CALG_AES_128
- CALG_AES_192
- CALG_AES_256
- CALG_AGREEDKEY_ANY
- CALG_CYLINK_MEK
- CALG_DES
- CALG_DESX
- CALG_DH_EPHEM
- CALG_DH_SF
- CALG_DSS_SIGN
- CALG_ECDH
- CALG_ECDH_EPHEM
- CALG_ECDSA
- CALG_ECMQV
- CALG_HASH_REPLACE_OWF
- CALG_HUGHES_MD5
- CALG_HMAC
- CALG_KEA_KEYX
- CALG_MAC
- CALG_MD2
- CALG_MD4
- CALG_MD5
- CALG_NO_SIGN
- CALG_OID_INFO_CNG_ONLY
- CALG_OID_INFO_PARAMETERS
- CALG_PCT1_MASTER
- CALG_RC2
- CALG_RC4
- CALG_RC5
- CALG_RSA_KEYX
- CALG_RSA_SIGN
- CALG_SCHANNEL_ENC_KEY
- CALG_SCHANNEL_MAC_KEY
- CALG_SCHANNEL_MASTER_HASH
- CALG_SEAL
- CALG_SHA
- CALG_SHA1
- CALG_SHA_256
- CALG_SHA_384
- CALG_SHA_512
- CALG_SKIPJACK
- CALG_SSL2_MASTER
- CALG_SSL3_MASTER
- CALG_SSL3_SHAMD5
- CALG_TEK
- CALG_TLS1_MASTER
- CALG_TLS1PRF
obj.config("SSLEnabledCipherSuites=*");
obj.config("SSLEnabledCipherSuites=TLS_DHE_DSS_WITH_AES_128_CBC_SHA");
obj.config("SSLEnabledCipherSuites=TLS_DHE_DSS_WITH_AES_128_CBC_SHA;TLS_ECDH_RSA_WITH_AES_128_CBC_SHA");
Possible values when SSLProvider is set to Internal include the following:
- TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
- TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
- TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384
- TLS_RSA_WITH_AES_256_GCM_SHA384
- TLS_RSA_WITH_AES_128_GCM_SHA256
- TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256
- TLS_DHE_DSS_WITH_AES_256_GCM_SHA384
- TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
- TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384
- TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256
- TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
- TLS_DHE_DSS_WITH_AES_128_GCM_SHA256
- TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
- TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
- TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
- TLS_DHE_DSS_WITH_AES_256_CBC_SHA256
- TLS_RSA_WITH_AES_256_CBC_SHA256
- TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
- TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
- TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
- TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
- TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
- TLS_RSA_WITH_AES_128_CBC_SHA256
- TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
- TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
- TLS_DHE_DSS_WITH_AES_128_CBC_SHA256
- TLS_RSA_WITH_AES_256_CBC_SHA
- TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
- TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
- TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
- TLS_DHE_RSA_WITH_AES_256_CBC_SHA
- TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
- TLS_DHE_DSS_WITH_AES_256_CBC_SHA
- TLS_RSA_WITH_AES_128_CBC_SHA
- TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
- TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
- TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
- TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
- TLS_DHE_RSA_WITH_AES_128_CBC_SHA
- TLS_DHE_DSS_WITH_AES_128_CBC_SHA
- TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
- TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
- TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
- TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
- TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
- TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
- TLS_RSA_WITH_3DES_EDE_CBC_SHA
- TLS_RSA_WITH_DES_CBC_SHA
- TLS_DHE_RSA_WITH_DES_CBC_SHA
- TLS_DHE_DSS_WITH_DES_CBC_SHA
- TLS_RSA_WITH_RC4_128_MD5
- TLS_RSA_WITH_RC4_128_SHA
When TLS 1.3 is negotiated (see SSLEnabledProtocols), only the following cipher suites are supported:
- TLS_AES_256_GCM_SHA384
- TLS_CHACHA20_POLY1305_SHA256
- TLS_AES_128_GCM_SHA256
SSLEnabledCipherSuites is used together with SSLCipherStrength.
Not all supported protocols are enabled by default. The default value is 4032 for client components, and 3072 for server components. To specify a combination of enabled protocol versions set this config to the binary OR of one or more of the following values:
| TLS1.3 | 12288 (Hex 3000) |
| TLS1.2 | 3072 (Hex C00) (Default - Client and Server) |
| TLS1.1 | 768 (Hex 300) (Default - Client) |
| TLS1 | 192 (Hex C0) (Default - Client) |
| SSL3 | 48 (Hex 30) |
| SSL2 | 12 (Hex 0C) |
Note that only TLS 1.2 is enabled for server components that accept incoming connections. This adheres to industry standards to ensure a secure connection. Client components enable TLS 1.0, TLS 1.1, and TLS 1.2 by default and will negotiate the highest mutually supported version when connecting to a server, which should be TLS 1.2 in most cases.
SSLEnabledProtocols: Transport Layer Security (TLS) 1.3 Notes:
By default when TLS 1.3 is enabled, the component will first try to use the platform TLS 1.3 implementation when the SSLProvider is set to Automatic for all editions. If the platform TLS 1.3 implementation is not available, the internal implementation will be used.
In editions that are designed to run on Windows, SSLProvider can be set to Platform to use the platform implementation instead of the internal implementation. When configured in this manner, please note that the platform provider is supported only on Windows 11/Windows Server 2022 and up. The default internal provider is available on all platforms and is not restricted to any specific OS version.
If set to 1 (Platform provider), please be aware of the following notes:
- The platform provider is available only on Windows 11/Windows Server 2022 and up.
- SSLEnabledCipherSuites and other similar SSL configuration settings are not supported.
- If SSLEnabledProtocols includes both TLS 1.3 and TLS 1.2, these restrictions are still applicable even if TLS 1.2 is negotiated. Enabling TLS 1.3 with the platform provider changes the implementation used for all TLS versions.
SSLEnabledProtocols: SSL2 and SSL3 Notes:
SSL 2.0 and 3.0 are not supported by the component when the SSLProvider is set to internal. To use SSL 2.0 or SSL 3.0, the platform security API must have the protocols enabled and SSLProvider needs to be set to platform.
This configuration setting is applicable only when SSLProvider is set to Internal.
If set to True, all certificates returned by the server will be present in the Encoded parameter of the SSLServerAuthentication event. This includes the leaf certificate, any intermediate certificate, and the root certificate.
When set, the component will save the session secrets in the same format as the SSLKEYLOGFILE environment variable functionality used by most major browsers and tools, such as Chrome, Firefox, and cURL. This file can then be used in tools such as Wireshark to decrypt TLS traffic for debugging purposes. When writing to this file, the component will only append, it will not overwrite previous values.
NOTE: This configuration setting is applicable only when SSLProvider is set to Internal.
NOTE: For server components (e.g., TCPServer), this is a per-connection configuration setting accessed by passing the ConnectionId. For example:
server.Config("SSLNegotiatedCipher[connId]");
NOTE: For server components (e.g., TCPServer), this is a per-connection configuration setting accessed by passing the ConnectionId. For example:
server.Config("SSLNegotiatedCipherStrength[connId]");
NOTE: For server components (e.g., TCPServer), this is a per-connection configuration setting accessed by passing the ConnectionId. For example:
server.Config("SSLNegotiatedCipherSuite[connId]");
NOTE: For server components (e.g., TCPServer), this is a per-connection configuration setting accessed by passing the ConnectionId. For example:
server.Config("SSLNegotiatedKeyExchange[connId]");
NOTE: For server components (e.g., TCPServer), this is a per-connection configuration setting accessed by passing the ConnectionId. For example:
server.Config("SSLNegotiatedKeyExchangeStrength[connId]");
NOTE: For server components (e.g., TCPServer), this is a per-connection configuration setting accessed by passing the ConnectionId. For example:
server.Config("SSLNegotiatedVersion[connId]");
| 0x00000001 | Ignore time validity status of certificate. |
| 0x00000002 | Ignore time validity status of CTL. |
| 0x00000004 | Ignore non-nested certificate times. |
| 0x00000010 | Allow unknown certificate authority. |
| 0x00000020 | Ignore wrong certificate usage. |
| 0x00000100 | Ignore unknown certificate revocation status. |
| 0x00000200 | Ignore unknown CTL signer revocation status. |
| 0x00000400 | Ignore unknown certificate authority revocation status. |
| 0x00000800 | Ignore unknown root revocation status. |
| 0x00008000 | Allow test root certificate. |
| 0x00004000 | Trust test root certificate. |
| 0x80000000 | Ignore non-matching CN (certificate CN non-matching server name). |
This functionality is currently not available when the provider is OpenSSL.
The value of this configuration setting is a newline-separated (CR/LF) list of certificates. For instance:
-----BEGIN CERTIFICATE----- MIIEKzCCAxOgAwIBAgIRANTET4LIkxdH6P+CFIiHvTowDQYJKoZIhvcNAQELBQAw ... Intermediate Cert... eWHV5OW1K53o/atv59sOiW5K3crjFhsBOd5Q+cJJnU+SWinPKtANXMht+EDvYY2w F0I1XhM+pKj7FjDr+XNj -----END CERTIFICATE----- \r \n -----BEGIN CERTIFICATE----- MIIEFjCCAv6gAwIBAgIQetu1SMxpnENAnnOz1P+PtTANBgkqhkiG9w0BAQUFADBp ... Root Cert... d8q23djXZbVYiIfE9ebr4g3152BlVCHZ2GyPdjhIuLeH21VbT/dyEHHA -----END CERTIFICATE-----
When specified the component will verify that the server certificate signature algorithm is among the values specified in this configuration setting. If the server certificate signature algorithm is unsupported, the component fails with an error.
The format of this value is a comma-separated list of hash-signature combinations. For instance:
component.SSLProvider = TCPClientSSLProviders.sslpInternal;
component.Config("SSLEnabledProtocols=3072"); //TLS 1.2
component.Config("TLS12SignatureAlgorithms=sha256-rsa,sha256-dsa,sha1-rsa,sha1-dsa");
The default value for this configuration setting is sha512-ecdsa,sha512-rsa,sha512-dsa,sha384-ecdsa,sha384-rsa,sha384-dsa,sha256-ecdsa,sha256-rsa,sha256-dsa,sha224-ecdsa,sha224-rsa,sha224-dsa,sha1-ecdsa,sha1-rsa,sha1-dsa.
To not restrict the server's certificate signature algorithm, specify an empty string as the value for this configuration setting, which will cause the signature_algorithms TLS 1.2 extension to not be sent.
The default value is ecdhe_secp256r1,ecdhe_secp384r1,ecdhe_secp521r1.
When using TLS 1.2 and SSLProvider is set to Internal, the values refer to the supported groups for ECC. The following values are supported:
- "ecdhe_secp256r1" (default)
- "ecdhe_secp384r1" (default)
- "ecdhe_secp521r1" (default)
The default value is set to balance common supported groups and the computational resources required to generate key shares. As a result, only some groups are included by default in this configuration setting.
NOTE: All supported groups can always be used during the handshake even if not listed here, but if a group is used that is not present in this list, it will incur an additional roundtrip and time to generate the key share for that group.
In most cases, this configuration setting does not need to be modified. This should be modified only if there is a specific reason to do so.
The default value is ecdhe_x25519,ecdhe_secp256r1,ecdhe_secp384r1,ffdhe_2048,ffdhe_3072
The values are ordered from most preferred to least preferred. The following values are supported:
- "ecdhe_x25519" (default)
- "ecdhe_x448"
- "ecdhe_secp256r1" (default)
- "ecdhe_secp384r1" (default)
- "ecdhe_secp521r1"
- "ffdhe_2048" (default)
- "ffdhe_3072" (default)
- "ffdhe_4096"
- "ffdhe_6144"
- "ffdhe_8192"
- "ed25519" (default)
- "ed448" (default)
- "ecdsa_secp256r1_sha256" (default)
- "ecdsa_secp384r1_sha384" (default)
- "ecdsa_secp521r1_sha512" (default)
- "rsa_pkcs1_sha256" (default)
- "rsa_pkcs1_sha384" (default)
- "rsa_pkcs1_sha512" (default)
- "rsa_pss_sha256" (default)
- "rsa_pss_sha384" (default)
- "rsa_pss_sha512" (default)
The default value is ecdhe_x25519,ecdhe_x448,ecdhe_secp256r1,ecdhe_secp384r1,ecdhe_secp521r1,ffdhe_2048,ffdhe_3072,ffdhe_4096,ffdhe_6144,ffdhe_8192,mlkem_512,mlkem_768,mlkem_1024,x25519_mlkem_768,secp256r1_mlkem_768
The values are ordered from most preferred to least preferred. The following values are supported:
- "ecdhe_x25519" (default)
- "ecdhe_x448" (default)
- "ecdhe_secp256r1" (default)
- "ecdhe_secp384r1" (default)
- "ecdhe_secp521r1" (default)
- "ffdhe_2048" (default)
- "ffdhe_3072" (default)
- "ffdhe_4096" (default)
- "ffdhe_6144" (default)
- "ffdhe_8192" (default)
- "mlkem_512" (default)
- "mlkem_768" (default)
- "mlkem_1024" (default)
- "x25519_mlkem_768" (default)
- "secp256r1_mlkem_768" (default)
Post-quantum algorithms (mlkem_512,mlkem_768,mlkem_1024,x25519_mlkem_768,secp256r1_mlkem_768) in our components rely on the operating system's underlying cryptographic primitives. The following platforms are currently supported:
- Windows Server 2025
- Windows 11 24H2
- Windows 11 25H2
Socket Config Settings
NOTE: This option is not valid for User Datagram Protocol (UDP) ports.
Some TCP/IP implementations do not support variable buffer sizes. If that is the case, when the component is activated the InBufferSize reverts to its defined size. The same happens if you attempt to make it too large or too small.
Some TCP/IP implementations do not support variable buffer sizes. If that is the case, when the component is activated the OutBufferSize reverts to its defined size. The same happens if you attempt to make it too large or too small.
Base Config Settings
The following is a list of valid code page identifiers:
| Identifier | Name |
| 037 | IBM EBCDIC - U.S./Canada |
| 437 | OEM - United States |
| 500 | IBM EBCDIC - International |
| 708 | Arabic - ASMO 708 |
| 709 | Arabic - ASMO 449+, BCON V4 |
| 710 | Arabic - Transparent Arabic |
| 720 | Arabic - Transparent ASMO |
| 737 | OEM - Greek (formerly 437G) |
| 775 | OEM - Baltic |
| 850 | OEM - Multilingual Latin I |
| 852 | OEM - Latin II |
| 855 | OEM - Cyrillic (primarily Russian) |
| 857 | OEM - Turkish |
| 858 | OEM - Multilingual Latin I + Euro symbol |
| 860 | OEM - Portuguese |
| 861 | OEM - Icelandic |
| 862 | OEM - Hebrew |
| 863 | OEM - Canadian-French |
| 864 | OEM - Arabic |
| 865 | OEM - Nordic |
| 866 | OEM - Russian |
| 869 | OEM - Modern Greek |
| 870 | IBM EBCDIC - Multilingual/ROECE (Latin-2) |
| 874 | ANSI/OEM - Thai (same as 28605, ISO 8859-15) |
| 875 | IBM EBCDIC - Modern Greek |
| 932 | ANSI/OEM - Japanese, Shift-JIS |
| 936 | ANSI/OEM - Simplified Chinese (PRC, Singapore) |
| 949 | ANSI/OEM - Korean (Unified Hangul Code) |
| 950 | ANSI/OEM - Traditional Chinese (Taiwan; Hong Kong SAR, PRC) |
| 1026 | IBM EBCDIC - Turkish (Latin-5) |
| 1047 | IBM EBCDIC - Latin 1/Open System |
| 1140 | IBM EBCDIC - U.S./Canada (037 + Euro symbol) |
| 1141 | IBM EBCDIC - Germany (20273 + Euro symbol) |
| 1142 | IBM EBCDIC - Denmark/Norway (20277 + Euro symbol) |
| 1143 | IBM EBCDIC - Finland/Sweden (20278 + Euro symbol) |
| 1144 | IBM EBCDIC - Italy (20280 + Euro symbol) |
| 1145 | IBM EBCDIC - Latin America/Spain (20284 + Euro symbol) |
| 1146 | IBM EBCDIC - United Kingdom (20285 + Euro symbol) |
| 1147 | IBM EBCDIC - France (20297 + Euro symbol) |
| 1148 | IBM EBCDIC - International (500 + Euro symbol) |
| 1149 | IBM EBCDIC - Icelandic (20871 + Euro symbol) |
| 1200 | Unicode UCS-2 Little-Endian (BMP of ISO 10646) |
| 1201 | Unicode UCS-2 Big-Endian |
| 1250 | ANSI - Central European |
| 1251 | ANSI - Cyrillic |
| 1252 | ANSI - Latin I |
| 1253 | ANSI - Greek |
| 1254 | ANSI - Turkish |
| 1255 | ANSI - Hebrew |
| 1256 | ANSI - Arabic |
| 1257 | ANSI - Baltic |
| 1258 | ANSI/OEM - Vietnamese |
| 1361 | Korean (Johab) |
| 10000 | MAC - Roman |
| 10001 | MAC - Japanese |
| 10002 | MAC - Traditional Chinese (Big5) |
| 10003 | MAC - Korean |
| 10004 | MAC - Arabic |
| 10005 | MAC - Hebrew |
| 10006 | MAC - Greek I |
| 10007 | MAC - Cyrillic |
| 10008 | MAC - Simplified Chinese (GB 2312) |
| 10010 | MAC - Romania |
| 10017 | MAC - Ukraine |
| 10021 | MAC - Thai |
| 10029 | MAC - Latin II |
| 10079 | MAC - Icelandic |
| 10081 | MAC - Turkish |
| 10082 | MAC - Croatia |
| 12000 | Unicode UCS-4 Little-Endian |
| 12001 | Unicode UCS-4 Big-Endian |
| 20000 | CNS - Taiwan |
| 20001 | TCA - Taiwan |
| 20002 | Eten - Taiwan |
| 20003 | IBM5550 - Taiwan |
| 20004 | TeleText - Taiwan |
| 20005 | Wang - Taiwan |
| 20105 | IA5 IRV International Alphabet No. 5 (7-bit) |
| 20106 | IA5 German (7-bit) |
| 20107 | IA5 Swedish (7-bit) |
| 20108 | IA5 Norwegian (7-bit) |
| 20127 | US-ASCII (7-bit) |
| 20261 | T.61 |
| 20269 | ISO 6937 Non-Spacing Accent |
| 20273 | IBM EBCDIC - Germany |
| 20277 | IBM EBCDIC - Denmark/Norway |
| 20278 | IBM EBCDIC - Finland/Sweden |
| 20280 | IBM EBCDIC - Italy |
| 20284 | IBM EBCDIC - Latin America/Spain |
| 20285 | IBM EBCDIC - United Kingdom |
| 20290 | IBM EBCDIC - Japanese Katakana Extended |
| 20297 | IBM EBCDIC - France |
| 20420 | IBM EBCDIC - Arabic |
| 20423 | IBM EBCDIC - Greek |
| 20424 | IBM EBCDIC - Hebrew |
| 20833 | IBM EBCDIC - Korean Extended |
| 20838 | IBM EBCDIC - Thai |
| 20866 | Russian - KOI8-R |
| 20871 | IBM EBCDIC - Icelandic |
| 20880 | IBM EBCDIC - Cyrillic (Russian) |
| 20905 | IBM EBCDIC - Turkish |
| 20924 | IBM EBCDIC - Latin-1/Open System (1047 + Euro symbol) |
| 20932 | JIS X 0208-1990 & 0121-1990 |
| 20936 | Simplified Chinese (GB2312) |
| 21025 | IBM EBCDIC - Cyrillic (Serbian, Bulgarian) |
| 21027 | Extended Alpha Lowercase |
| 21866 | Ukrainian (KOI8-U) |
| 28591 | ISO 8859-1 Latin I |
| 28592 | ISO 8859-2 Central Europe |
| 28593 | ISO 8859-3 Latin 3 |
| 28594 | ISO 8859-4 Baltic |
| 28595 | ISO 8859-5 Cyrillic |
| 28596 | ISO 8859-6 Arabic |
| 28597 | ISO 8859-7 Greek |
| 28598 | ISO 8859-8 Hebrew |
| 28599 | ISO 8859-9 Latin 5 |
| 28605 | ISO 8859-15 Latin 9 |
| 29001 | Europa 3 |
| 38598 | ISO 8859-8 Hebrew |
| 50220 | ISO 2022 Japanese with no halfwidth Katakana |
| 50221 | ISO 2022 Japanese with halfwidth Katakana |
| 50222 | ISO 2022 Japanese JIS X 0201-1989 |
| 50225 | ISO 2022 Korean |
| 50227 | ISO 2022 Simplified Chinese |
| 50229 | ISO 2022 Traditional Chinese |
| 50930 | Japanese (Katakana) Extended |
| 50931 | US/Canada and Japanese |
| 50933 | Korean Extended and Korean |
| 50935 | Simplified Chinese Extended and Simplified Chinese |
| 50936 | Simplified Chinese |
| 50937 | US/Canada and Traditional Chinese |
| 50939 | Japanese (Latin) Extended and Japanese |
| 51932 | EUC - Japanese |
| 51936 | EUC - Simplified Chinese |
| 51949 | EUC - Korean |
| 51950 | EUC - Traditional Chinese |
| 52936 | HZ-GB2312 Simplified Chinese |
| 54936 | Windows XP: GB18030 Simplified Chinese (4 Byte) |
| 57002 | ISCII Devanagari |
| 57003 | ISCII Bengali |
| 57004 | ISCII Tamil |
| 57005 | ISCII Telugu |
| 57006 | ISCII Assamese |
| 57007 | ISCII Oriya |
| 57008 | ISCII Kannada |
| 57009 | ISCII Malayalam |
| 57010 | ISCII Gujarati |
| 57011 | ISCII Punjabi |
| 65000 | Unicode UTF-7 |
| 65001 | Unicode UTF-8 |
| Identifier | Name |
| 1 | ASCII |
| 2 | NEXTSTEP |
| 3 | JapaneseEUC |
| 4 | UTF8 |
| 5 | ISOLatin1 |
| 6 | Symbol |
| 7 | NonLossyASCII |
| 8 | ShiftJIS |
| 9 | ISOLatin2 |
| 10 | Unicode |
| 11 | WindowsCP1251 |
| 12 | WindowsCP1252 |
| 13 | WindowsCP1253 |
| 14 | WindowsCP1254 |
| 15 | WindowsCP1250 |
| 21 | ISO2022JP |
| 30 | MacOSRoman |
| 10 | UTF16String |
| 0x90000100 | UTF16BigEndian |
| 0x94000100 | UTF16LittleEndian |
| 0x8c000100 | UTF32String |
| 0x98000100 | UTF32BigEndian |
| 0x9c000100 | UTF32LittleEndian |
| 65536 | Proprietary |
- Product: The product the license is for.
- Product Key: The key the license was generated from.
- License Source: Where the license was found (e.g., RuntimeLicense, License File).
- License Type: The type of license installed (e.g., Royalty Free, Single Server).
- Last Valid Build: The last valid build number for which the license will work.
Setting this configuration setting to true tells the component to use the internal implementation instead of using the system security libraries.
On Windows, this setting is set to false by default. On Linux/macOS, this setting is set to true by default.
To use the system security libraries for Linux, OpenSSL support must be enabled. For more information on how to enable OpenSSL, please refer to the OpenSSL Notes section.
Trappable Errors (AS3Sender Component)
AS3Sender Errors
| 901 | You must specify ReceiptContent or a filename. |
| 903 | You must specify the remote filename. |
| 501 | Unable to verify receipt signature. |
| 502 | Incorrect Received-Content-MIC in receipt. |
| 504 | Bad or unsupported receipt format. Error description contains detailed message. |
| 601 | Unsupported signature algorithm. |
| 602 | Warning: Error description contains detailed message. |
FTP Errors
| 118 | Firewall error. The error description contains detailed information. |
| 141 | FTP error. The error message contains the server reply. |
| 142 | Communication error. The error message contains the description. |
| 143 | Busy executing current method. |
| 144 | Local file error. The error description contains detailed information. |
| 145 | Can't open LocalFile for reading. |
| 146 | No RemoteFile specified while uploading. |
| 147 | Data interface error. The error description contains detailed information. |
| 148 | LocalFile already exists and overwrite is False. |
| 149 | Windows message queue dropped a message (typically due to heavy load). |
| 301 | Operation is interrupted. |
| 302 | Can't open local file. |
| 311 | Accept failed for data connection. |
| 312 | Asynchronous select failed for data connection. |
The class may also return one of the following error codes, which are inherited from other classes.
TCPClient Errors
| 100 | You cannot change the RemotePort at this time. A connection is in progress. |
| 101 | You cannot change the RemoteHost (Server) at this time. A connection is in progress. |
| 102 | The RemoteHost address is invalid (0.0.0.0). |
| 104 | Already connected. If you want to reconnect, close the current connection first. |
| 106 | You cannot change the LocalPort at this time. A connection is in progress. |
| 107 | You cannot change the LocalHost at this time. A connection is in progress. |
| 112 | You cannot change MaxLineLength at this time. A connection is in progress. |
| 116 | RemotePort cannot be zero. Please specify a valid service port number. |
| 117 | You cannot change the UseConnection option while the component is active. |
| 135 | Operation would block. |
| 201 | Timeout. |
| 211 | Action impossible in control's present state. |
| 212 | Action impossible while not connected. |
| 213 | Action impossible while listening. |
| 301 | Timeout. |
| 302 | Could not open file. |
| 434 | Unable to convert string to selected CodePage. |
| 1105 | Already connecting. If you want to reconnect, close the current connection first. |
| 1117 | You need to connect first. |
| 1119 | You cannot change the LocalHost at this time. A connection is in progress. |
| 1120 | Connection dropped by remote host. |
TCP/IP Errors
| 10004 | [10004] Interrupted system call. |
| 10009 | [10009] Bad file number. |
| 10013 | [10013] Access denied. |
| 10014 | [10014] Bad address. |
| 10022 | [10022] Invalid argument. |
| 10024 | [10024] Too many open files. |
| 10035 | [10035] Operation would block. |
| 10036 | [10036] Operation now in progress. |
| 10037 | [10037] Operation already in progress. |
| 10038 | [10038] Socket operation on nonsocket. |
| 10039 | [10039] Destination address required. |
| 10040 | [10040] Message is too long. |
| 10041 | [10041] Protocol wrong type for socket. |
| 10042 | [10042] Bad protocol option. |
| 10043 | [10043] Protocol is not supported. |
| 10044 | [10044] Socket type is not supported. |
| 10045 | [10045] Operation is not supported on socket. |
| 10046 | [10046] Protocol family is not supported. |
| 10047 | [10047] Address family is not supported by protocol family. |
| 10048 | [10048] Address already in use. |
| 10049 | [10049] Cannot assign requested address. |
| 10050 | [10050] Network is down. |
| 10051 | [10051] Network is unreachable. |
| 10052 | [10052] Net dropped connection or reset. |
| 10053 | [10053] Software caused connection abort. |
| 10054 | [10054] Connection reset by peer. |
| 10055 | [10055] No buffer space available. |
| 10056 | [10056] Socket is already connected. |
| 10057 | [10057] Socket is not connected. |
| 10058 | [10058] Cannot send after socket shutdown. |
| 10059 | [10059] Too many references, cannot splice. |
| 10060 | [10060] Connection timed out. |
| 10061 | [10061] Connection refused. |
| 10062 | [10062] Too many levels of symbolic links. |
| 10063 | [10063] File name is too long. |
| 10064 | [10064] Host is down. |
| 10065 | [10065] No route to host. |
| 10066 | [10066] Directory is not empty |
| 10067 | [10067] Too many processes. |
| 10068 | [10068] Too many users. |
| 10069 | [10069] Disc Quota Exceeded. |
| 10070 | [10070] Stale NFS file handle. |
| 10071 | [10071] Too many levels of remote in path. |
| 10091 | [10091] Network subsystem is unavailable. |
| 10092 | [10092] WINSOCK DLL Version out of range. |
| 10093 | [10093] Winsock is not loaded yet. |
| 11001 | [11001] Host not found. |
| 11002 | [11002] Nonauthoritative 'Host not found' (try again or check DNS setup). |
| 11003 | [11003] Nonrecoverable errors: FORMERR, REFUSED, NOTIMP. |
| 11004 | [11004] Valid name, no data record (check DNS setup). |
SMIME Errors
| 10191 | Invalid index (RecipientIndex). |
| 10192 | Message decoding error (code). |
| 10193 | Unexpected message type. |
| 10194 | Unsupported hashing/signing algorithm. |
| 10195 | The message does not have any signers. |
| 10196 | The message signature could not be verified. |
| 10197 | Could not locate a suitable decryption certificate. |
| 10198 | The signer certificate could not be found. |
| 10199 | No signing certificate was supplied for signing the message. |
| 10201 | The specified certificate was not the one required. |
| 10202 | The specified certificate could not be found. |
| 10221 | Could not acquire CSP. |
| 10222 | Type validation error. |
| 10223 | Unsupported key size. |
| 10224 | Unrecognized Content-Type object identifier. |
| 10225 | Unrecognized public key format. |
| 10226 | No choices specified. |
| 10228 | Must specify output stream. |
| 10280 | Error decoding certificate. |
| 10281 | Unknown MIME type. |
| 10283 | No MIME-boundary found. |