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')
>>> mycorp = ca.issue_certificate('www.mycorp.com', dns_names=['www.mycorp.com', 'w3.mycorp.com')
Basically in this three lines steps:
- Imported the ownca Certificate Authority library
- Created a new CA named as Corp CA that uses
/opt/CA
as CA storage for certificates, keys etc. - Create a signed certificates by Corp CA server www.mycorp.com,
the files are also stored in
/opt/CA/certs/mycorp.com
.
More detailed usage can be found in http://ownca.readthedocs.org
pip install ownca