Skip to main content

Utility to create and sign CAs and certificates

Project description

A simple python tool for creating certificate authorities and certificates on the fly.

Usage

Command line

Creating a certificate authority:

Certipy defaults to writing certs and store.json into a folder called out in your current directory.

$ certipy foo
No store file at out/store.json. Creating a new one.
KeyCertPair(name='foo', dir_name='/tmp/out/foo', key_file='/tmp/out/foo/foo.key', cert_file='/tmp/out/foo/foo.crt', ca_file='/tmp/out/foo/foo.crt')

Creating and signing a key cert pair:

$ certipy bar --ca-name foo
KeyCertPair(name='bar', dir_name='/tmp/out/bar', key_file='/tmp/out/bar/bar.key', cert_file='/tmp/out/bar/bar.crt', ca_file='/tmp/out/foo/foo.crt')

Code

Creating a certificate authority:

from certipy import Certipy

store = Certipy(store_dir='/tmp')
store.create_ca('foo')
cert_info = store.get('foo') # KeyCertPair

Creating and signing a key cert pair:

from certipy import Certipy

store = Certipy(store_dir='/tmp')
store.create_signed_pair('bar', 'foo')
cert_info = store.get('bar') # KeyCertPair

Release

Certipy is released under BSD license. For more details see the LICENSE file.

LLNL-CODE-754897

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

certipy-0.0.2.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

certipy-0.0.2-py3-none-any.whl (15.0 kB view hashes)

Uploaded 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