Skip to content

Lucho00Cuba/py-mtls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proof of Concept: TLS/SSL with Python

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.

Usage

Setting Up the Environment

  1. Install Requirements: Ensure all dependencies are installed using pip:

    pip install -r requirements.txt
  2. Generate Certificates: Use the Makefile to generate SSL/TLS certificates. Replace with the desired certificate name:

    make generate_cert NAME=<name>
  3. Start Server and Client: Execute the Python scripts for the TLS server and client:

    python src/server-tls.py
    python src/client-tls.py

Cleaning Up

  • Clean Certificates: Remove generated certificates for a specific name:

    make clean NAME=<name>
  • Clean All: Remove all generated certificates and files:

    make clean-all

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published