Search⌘ K
AI Features

Testing the Secure FTP Service

Explore how to test a secure FTP service implemented with gRPC using TLS authentication. Learn to start the gRPC server and client, perform secure file transfers, and handle file deletions with verification steps. Understand the behavior of secure versus insecure connections in this hands-on lesson focusing on real-world secure communication.

We added certificates to two modules of the grpc-ftp-project:

  1. The server key and certificates were added to ftp-service

  2. The client key and certificates were added to ftp-service-cli-client

The last three lessons discussed the changes made to the ftp-service, ftp-service-client and ftp-service-cli-client to use TLS credentials for communication. We need to recompile the project. This can be done from the Terminal in the IDE by executing the following command:

mvn clean install
Recompiling the project

This command will first remove the previous build files and then trigger the build process again to compile the project’s source code. After running this command, you will find a target folder within each module of your project. The target folder contains the recompiled classes, JAR files, and other artifacts generated during the build process.

Start the gRPC server

To start the server, we will run the commands from the target folder in the ftp-service project. We will navigate to grpc-ftp-project/ftp-service/target directory and execute the following ...