NetBurner 3.5.0
PDF Version
 
FTPS Server

This example will create a simple FTPS Server running on the NetBurner device. The server will start and wait for a FTPS client connection on port 990. The goal of this example is strictly the encryption aspect; it can be extended to use the file systemZby combining it with the Embedded Flash File System (EFFS) examples, EFFS-FAT or EFFS-STD.

The server provides two functions:

  1. Allows the FTPS Client to download a single file named ReadFile.txt
  2. Allows the FTPS Client to upload a text file named WriteFile.txt, which will be displayed on the serial port. It is not stored since this simple examle does not use the file system.

The server uses a built in self-signed certificate and key. Status messages, including sockets in use, are displayed on the serial port.

To run the example:

  • Run MTTTY and connect to the debug serial port
  • Run a program such as WinSCP that supports FTPS (not SFTP)
  • Connect to the FTPS Server on the NetBurner device
  • Select the ReadFile.txt file to download or view it
  • Select the WriteFile.txt file in the FTPS Client and send it to the FTPS Server on the NetBurner device. It will be displayed on the serial port