Skip to main content

Python Own Certificate Authority

Project description

Build Status Documentation Status codecov pypi pypi

Python Own Certificate Authority (ownca)

OwnCA makes easy handle Certificate Authority (CA) and manage certificates for hosts, servers or clients.

An example of high level usage:

>>> from ownca import CertificateAuthority
>>> ca = CertificateAuthority(ca_storage='/opt/CA', common_name='MyCorp CA')
>>> example_com = ca.issue_certificate('www.example.com', dns_names=['www.example.com', 'w3.example.com')

Basically in this three lines steps:

  1. Imported the ownca Certificate Authority library

  2. Created a new CA named as Corp CA that uses /opt/CA as CA storage for certificates, keys etc.

  3. Create a signed certificates by Corp CA server www.mycorp.com, the files are also stored in /opt/CA/certs/www.example.com.

     >>> example_com.cert
     <Certificate(subject=<Name(CN=www.example.com)>, ...)>
    

More detailed usage can be found in http://ownca.readthedocs.org

Installation

pip install ownca

Documentation

Visit http://ownca.readthedocs.org

Project details


Download files

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

Source Distribution

ownca-0.0.2.tar.gz (28.6 kB view hashes)

Uploaded Source

Built Distributions

ownca-0.0.2-py3.7.egg (13.4 kB view hashes)

Uploaded Source

ownca-0.0.2-py2.py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page