ftps2_compressed.mp4
Ensure the following libraries are installed:
sudo apt-get install openssl libssl-dev
sudo apt install zlib1g zlib1g-dev
sudo apt install sqlite3 libsqlite3-dev
sudo apt install build-essential
sudo apt install cmake
-
Navigate to the
/security
directory inside the server folder:cd server/security
-
Generate a self-signed SSL certificate and private key:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ -keyout server.key -out server.crt -config openssl.cnf
-
Copy the generated certificate (
server.crt
) to the client’s/security
directory:cp server.crt ../../client/security
-
Navigate to the server directory:
cd server
-
Create a build directory and compile:
mkdir -p build cd build cmake .. cmake --build .
-
Run the server:
sudo ./bin/server <server_portno>
Example:
sudo ./bin/server 8000
-
Navigate to the client directory:
cd client
-
Create a build directory and compile:
mkdir -p build cd build cmake .. cmake --build .
-
Run the client:
./bin/client <server_ipaddress> <server_portno>
Example:
./bin/client 127.0.0.1 8000
Valgrind can be used to check memory leaks and runtime errors.
sudo valgrind --leak-check=full --track-origins=yes ./bin/server <server_portno>
valgrind --leak-check=full --track-origins=yes ./bin/client <server_ipaddress> <server_portno>
sudo ./bin/server 8000
./bin/client 127.0.0.1 8000