Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jandd/python-pkiutils
Pure Python Public Key Infrastructure Utilities
https://github.com/jandd/python-pkiutils
Last synced: about 1 month ago
JSON representation
Pure Python Public Key Infrastructure Utilities
- Host: GitHub
- URL: https://github.com/jandd/python-pkiutils
- Owner: jandd
- License: mit
- Created: 2014-01-19T17:18:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T16:25:17.000Z (over 3 years ago)
- Last Synced: 2024-10-10T18:47:31.567Z (2 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 18
- Watchers: 5
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-starz - jandd/python-pkiutils - Pure Python Public Key Infrastructure Utilities (Python)
README
==============================================
pkiutils - Public Key Infrastructure Utilities
==============================================This is a set of pycrypto_ and pyasn1_ based tools to create, load and verify
public key infrastructure material like:* RSA keys
* `PKCS#10`_ certificate signing requests.. * X.509 certificates
.. * X.509 certificate bundles from files or directories.. _pycrypto: https://www.dlitz.net/software/pycrypto/
.. _pyasn1: http://pyasn1.sourceforge.net/
.. _PKCS#10: http://tools.ietf.org/html/rfc2986This library can be used to produce RSA key pairs and corresponding certificate signing requests that can be used to request a new SSL certificate for your domain/server.
Installation Methods
====================1. From source cloned from Github
::
$python setup.py install2. Using pip or easy_install
::
$pip install pkiutilsExample Usage
=============When you need a 3rd party SSL certificate you will be asked for a CSR
(certificate signing request). The following commands will generate your
personal key and the CSR file required and output them to /root.. code-block:: python
import pkiutils
key = pkiutils.create_rsa_key(2048, keyfile='/root/www.example.com.key')
pkiutils.create_csr(key,
dn="/C=GB/ST=STATENAME/L=LOCAILITY/O=COMPANY/OU=DEPT/CN=www.example.com",
csrfilename='/root/www.example.com.csr')From here you would provide your certification authority the contents of '/root/www.example.com.csr'
Documentation
=============Pkiutils is documented using `Sphinx`_, you can read the documentation at
``_... _Sphinx: http://sphinx-doc.org/
License
=======The pkiutils package is licensed under the terms of the MIT license.