A Full PKCS#11 wrapper for Python


Keywords
crypto, pki, pkcs11, c++, pkcs, python, python-lib, smartcard, swig, wrapper
License
GPL-2.0+
Install
pip install PyKCS11==1.5.5

Documentation

PyKCS11 - PKCS#11 Wrapper for Python - Project Overview

Authors

  • Copyright (C) 2004 Midori (midori -- a-t -- paipai dot net)
  • Copyright (C) 2006-2018 Ludovic Rousseau (ludovic.rousseau@free.fr)

Licence

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Status

Build Status

Coverage Status

Build status

API

The API documentation is available at http://pkcs11wrap.sourceforge.net/api/

Unix Howto

To install::

$ make build
$ make install (or make install DESTDIR=/foo/bar)

Windows Howto

Prerequisites

  • Install python3 (and add "C:\Python34;C:\Python34\Scripts" to PATH environment variable)
  • Install swig (and add swig install folder to PATH environment variable)
  • Install Visual studio 2010 SDK

To install:

Open "Visual Studio command prompt (2010)"

cd to PyKCS11 folder and run::

> nmake -f Makefile.win32 build
> nmake -f Makefile.win32 install

Windows binaries

You can get (untested) Windows binaries from https://ci.appveyor.com/project/LudovicRousseau/pykcs11 in "artifacts".