This project demonstrates a basic implementation of Transport Layer Security (TLS) and Secure Socket Layer (SSL) communication using Python scripts. It includes scripts for both a TLS server (server-tls.py
) and a TLS client (client-tls.py
), as well as a Makefile (Makefile
) for automating SSL/TLS certificate management with OpenSSL.
-
Install Requirements: Ensure all dependencies are installed using
pip
:pip install -r requirements.txt
-
Generate Certificates: Use the Makefile to generate SSL/TLS certificates. Replace with the desired certificate name:
make generate_cert NAME=<name>
-
Start Server and Client: Execute the Python scripts for the TLS server and client:
python src/server-tls.py python src/client-tls.py
-
Clean Certificates: Remove generated certificates for a specific name:
make clean NAME=<name>
-
Clean All: Remove all generated certificates and files:
make clean-all