Skip to main content

Python module that encapsulates wolfSSL's C SSL/TLS library.

Project description

Welcome

wolfssl Python is a Python module that encapsulates wolfssl C, a lightweight C-language-based SSL/TLS library targeted for embedded, RTOS, or resource-constrained environments primarily because of its small size, speed, and portability.

Installation

In order to use wolfssl Python, you’ll also need to install wolfssl C.

Mac OSX

Installing from homebrew and pip package managers:

# wolfssl C installation
brew install wolfssl

# wolfssl Python installation
sudo -H pip install wolfssl

Installing from source code:

# wolfssl C installation
git clone https://github.com/wolfssl/wolfssl.git
cd wolfssl/
./autogen.sh
./configure --enable-sha512
make
sudo make install

# wolfssl Python installation
cd wrapper/python/wolfssl
sudo make install

Linux

# dependencies installation
sudo apt-get update
sudo apt-get install -y git autoconf libtool
sudo apt-get install -y python-dev python3-dev python-pip libffi-dev

# wolfssl C installation
git clone https://github.com/wolfssl/wolfssl.git
cd wolfssl/
./autogen.sh
./configure --enable-sha512
make
sudo make install

sudo ldconfig

# wolfssl Python installation
sudo -H pip install wolfssl

Testing

To run the tox tests in the source code, you’ll need tox and a few other requirements. The source code relies at WOLFSSL_DIR/wrapper/python/wolfssl where WOLFSSL_DIR is the path of wolfssl C’s source code.

  1. Make sure that the testing requirements are installed:
sudo -H pip install -r requirements-testing.txt
  1. Run make check:
$ make check
...
_________________________________ summary _________________________________
py27: commands succeeded
SKIPPED: py34: InterpreterNotFound: python3.4
py35: commands succeeded
py36: commands succeeded
congratulations :)

Note: the test is performed using multiple versions of python. If you are missing a version the test will be skipped with an InterpreterNotFound error.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wolfssl, version 3.12.2.post0
Filename, size File type Python version Upload date Hashes
Filename, size wolfssl-3.12.2.post0-cp27-cp27m-macosx_10_6_intel.whl (199.1 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size wolfssl-3.12.2.post0-cp27-cp27m-manylinux1_x86_64.whl (206.6 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size wolfssl-3.12.2.post0-cp27-cp27mu-manylinux1_x86_64.whl (206.6 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size wolfssl-3.12.2.post0-cp34-cp34m-macosx_10_6_intel.whl (199.2 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size wolfssl-3.12.2.post0-cp34-cp34m-manylinux1_x86_64.whl (203.7 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size wolfssl-3.12.2.post0-cp35-cp35m-macosx_10_6_intel.whl (199.2 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size wolfssl-3.12.2.post0-cp35-cp35m-manylinux1_x86_64.whl (203.7 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size wolfssl-3.12.2.post0-cp36-cp36m-macosx_10_6_intel.whl (199.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size wolfssl-3.12.2.post0-cp36-cp36m-manylinux1_x86_64.whl (203.7 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size wolfssl-3.12.2.post0.tar.gz (33.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page