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.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certipy-0.0.1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file certipy-0.0.1.tar.gz.

File metadata

  • Download URL: certipy-0.0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for certipy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c19e373737961e18aa7e09e324e3a3938ccf09ba6c028923144999f6d3d6b847
MD5 f4b16221a01cafbc4149150bc339bb5f
BLAKE2b-256 c418b43aa5208f6007941f5e6698c9fe573df2954faa64e6b203b7fbe210f80f

See more details on using hashes here.

File details

Details for the file certipy-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for certipy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c408b14c681d65e8820e24c407b9a9bf963e8c9018c368a004f42ac234dbed0c
MD5 6b50e38f7d587d8a862239c9f57825b0
BLAKE2b-256 b3e8374ffb8b98e4c8a3201f350405225f088e5465a8b770d21ea0ff0272bac5

See more details on using hashes here.

Supported by

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