GithubHelp home page GithubHelp logo

edwardt / nassl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nabla-c0d3/nassl

0.0 1.0 0.0 2.6 MB

Experimental OpenSSL wrapper for Python 3.7+ and SSLyze.

License: GNU Affero General Public License v3.0

C 43.65% Python 55.95% Shell 0.40%

nassl's Introduction

nassl

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

Dev environment

If you want to setup a local environment where you can work on SSLyze, you will first need to install pipenv. Then, the environment can initialized using:

$ cd nassl
$ pipenv install --dev
$ pipenv shell

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

nassl/

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

nassl/_nassl/

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 _nassl.SSL.read() 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.

License

See ./LICENSE.txt

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

Author

Alban Diquet - @nabla_c0d3 - https://nabla-c0d3.github.io

nassl's People

Contributors

bcyrill avatar bluec0re avatar c0r0n3r avatar dependabot[bot] avatar droptableuser avatar duongkai avatar elvanderb avatar fabian-hk avatar fwinterborn avatar fwinterbornbb avatar fxcoudert avatar gregorg avatar jsf9k avatar kyprizel avatar makinj avatar moyaldror avatar mrcage avatar nabla-c0d3 avatar protocall7 avatar ralphdolmans avatar schinkelg avatar stefanb avatar tuxlife avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.