Experimental OpenSSL wrapper for Python 3.7+ and SSLyze.
Alternatives To Nassl
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Openssl21,311208a day ago34July 11, 20222,068apache-2.0C
TLS/SSL and crypto library
20 hours ago229gpl-2.0Shell
Testing TLS/SSL encryption anywhere on any port
11 days ago169bsl-1.0C++
HTTP and WebSocket built on Boost.Asio in C++11
a day ago7January 01, 190087gpl-2.0C
The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3!
a year ago67otherC
Transparent SSL/TLS interception
Mesalink1,430112 years ago4August 16, 20194otherRust
OpenSSL compatibility layer for the Rust SSL/TLS stack
2 months ago11January 13, 2020195otherC++
QuickFIX C++ Fix Engine Library
Pyopenssl80814,1881,035a day ago27January 29, 202296apache-2.0Python
A Python wrapper around the OpenSSL library
Golang Tls788
2 years ago2cc0-1.0
Simple Golang HTTPS/TLS Examples
Php Openid73787132 years ago5November 20, 202047apache-2.0PHP
OpenID library for PHP5
Alternatives To Nassl
Select To Compare

Alternative Project Comparisons


Build Wheels PyPI version PyPI wheel PyPI version

Experimental OpenSSL wrapper for Python 3.7+ and SSLyze.

Do NOT use for anything serious. This code has not been properly tested/reviewed and is not production ready.

Quick Start

Nassl can be installed directly via pip:

pip install nassl

Development environment

To setup a development environment:

$ pip install --upgrade pip setuptools wheel
$ pip install -r requirements-dev.txt

Nassl relies on a C extension to call into OpenSSL; you can compile everything using:

$ invoke build.all

Then, the tests can be run using:

$ invoke test

Project structure


Classes implemented in Python are part of the nassl namespace; they are designed to provide a simpler, higher-level interface to perform SSL connections.


Classes implemented in C are part of the nassl._nassl namespace; they try to stay as close as possible to OpenSSL's API. In most cases, Python methods of such objects directly match the OpenSSL function with same name. For example the Python method matches OpenSSL's SSL_read() function.

These classes should be considered internal.

Why another SSL library?

I'm the author of SSLyze, an SSL scanner written in Python. Scanning SSL servers requires access to low-level SSL functions within the OpenSSL API, for example to test for things like insecure renegotiation or session resumption.

None of the existing OpenSSL wrappers for Python (including ssl, M2Crypto and pyOpenSSL) expose the APIs that I need for SSLyze, so I had to write my own wrapper.


See ./LICENSE.txt

Please contact me if this license doesn't work for you.


Alban Diquet - @nabla_c0d3 -

Popular Openssl Projects
Popular Ssl Projects
Popular Security Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.