Introduction to the Python SSL Module

The SSL module in Python is a set of classes, functions and constants that provide cryptographic and authentication services for stream based network sockets.

Ssl Module Updated 31 Mar 2020 1 min read

Overview

  • The SSL module in Python provides functions and classes to support TLS - Transport Layer Security(or the old and still interchangeably used name SSL).

  • The TLS specification defines requirements for secure communication between connection oriented sockets.

  • The Python SSL module enables Python programs that use connection based sockets with the following

    • Privacy (Through Cryptography)
    • Integrity (Through Message Digests)
    • Authentication (Through Digital Certificates)
  • To provide these services the Python SSL module relies on the OpenSSL library (pre)installed in the Operating System.