Secure FTP connections with conzept 16

Access from conzept 16 to FTP servers is possible on the basis of socket commands; a corresponding example can be found in the code library. Encrypted transmission is only possible with FTP servers with implicit SSL encryption (FTPS on port 990), which are rarely encountered in practice. SFTP (based on SSH) and FTP/SSL (with explicit SSL) cannot be realized on the basis of the socket functions.


How can data be transmitted in encrypted form?

The required functions can be added to conzept 16 using a DLL. The following protocols are available:

  • FTP (File Transfer Protocol)
  • FTP/SSL (FTP with SSL 3.0 or TLS 1.0 authentication)
  • FTPS (FTP with implicit SSL encryption)
  • SFTP (Secure File Transfer Protocol), is based on the SSH protocol

Although the SFTP and FTP protocols are technically very different, the same DLL functions can be used for both types.

What functions does the DLL offer?

Once the DLL has been initialized, a connection to a server can be established. With FTP-based protocols, this is done with a user name and password. This option can also be used with SFTP. Alternatively, SFTP can be authenticated by user plus client certificate with an optional password.
After authentication, the following options are available:

  • Determine directory contents as Cte list
  • Create directories
  • Rename and delete files and directories
  • Check whether files exist
  • Upload and download files with the option to resume

A callback function can also be specified when uploading and downloading files. The current percentage of data transferred so far is regularly transferred to this function. The return value of the function can be used to decide whether the upload or download should be aborted.

Application example – Upload a file

// Initialize FTP module (mode = Secure File Transfer Protocol)
tErr # MdlFtp:Init('C:\conzept 16\c16_ftp_w32.dll', sModeSFTP);
if (tErr = _ErrOK)
{
  // Establish connection
  tErr # MdlFtp:Connect('myftp.de', 22, 'myuser', 'mypassword');
  if (tErr = _ErrOK)
  {
    // Upload file ‘C:\Readme.txt’ to the root directory
    tErr # MdlFtp:FileUpload('C:\Readme.txt', '/Readme.txt');

    // Disconnect
    MdlFtp:Disconnect();
  }

  // Terminate FTP module
  MdlFtp:Term();
}

For which systems is the DLL available?

The DLL is available for Windows clients as a 32- and 64-bit version. It can therefore be used by the Standard and Advanced client as well as the SOA service on 32- and 64-bit systems. A version for the SOA service under Linux is also available as a 32- and 64-bit shared library.

How can you obtain the DLL?

A test version of the DLL, as well as a database with the interface and an application example, is available from vectorsoft support on request. All functions are included in the test version and can be tried out for 30 days.

Do you have any questions or suggestions?

Then don’t hesitate to leave them here as a comment.

Klicken Sie hier, um die Nutzungsbedingungen für unseren Blog zu lesen.

Leave a Reply

Your email address will not be published. Required fields are marked *

Leave the field below empty!

Requests, questions or feedback are welcome:

Terms of use of the comment function in the blog

1. General information

Vectorsoft AG (‘Provider’) provides a public blog for Internet users (‘Users’) on the vectorsoft.de website. The public blog is intended for the exchange of information and ideas. Users who participate with contributions and comments undertake to comply with the blog terms of use and are responsible for the accuracy, appropriateness and freedom from legal infringements of their contributions. By using the comment function in our blog, you accept these terms of use.

2. Netiquette

We ask you to refrain from personal attacks and provocations based on other opinions. Please argue objectively and maintain a constructive discussion culture. Your comment should always be related to the topic in question in order to avoid digressions into other topics. Posting the same comment or several similar comments more than once is not permitted.

3. Prohibition of illegal content

By submitting your comment, you confirm that you are not violating any copyrights or other rights of third parties. Inciting, racist statements, instructions for criminal offences and their glorification, depictions of violence, pornographic content and statements that violate personal rights are prohibited.

4. No advertising

The use of the comment function is not permitted for commercial or party-political purposes. Advertising contributions of any kind will be deleted immediately.

5. Details of the name

When entering your name, pay attention to the principles mentioned above.

6. Source references

If you intend to publish quotes or contributions from third parties, please indicate the respective sources and explain how they relate to the blog post.

7. Violation of the terms of use

Posts that violate this policy will be deleted immediately. If you notice any violations yourself, please send us the link to the comment in question by e-mail to . We expressly point out that we will exclude individual users in the event of repeated or serious violations of these terms of use.

As of: Sept. 2024

Get your Trial Version now!

Test yeet free of charge

IHRE EVALUIERUNGSLIZENZ - JETZT ANFORDERN!

TESTEN SIE DIE CONZEPT 16 VOLLVERSION - UNVERBINDLICH und KOSTENFREI

Subscribe to our newsletter

[cleverreach_signup]
WordPress Cookie Notice by Real Cookie Banner