Skip to main content

Certificate-authority test harness.

Project description

Overview

The purpose of this tiny project is just to package the logic needed to:

  • Build a CA certificates

  • Build a regular certificate

  • Sign the regular certificate with the CA certificate

  • Verify that the regular certificate is signed with the CA certificate

I find that I often need to do this, and/or need to do this as part of other projects to prove a design. This project assumes some defaults, and makes it ridiculously easy to establish a CA and build certificates. You can pass parameters to change the name of the output files, and the path that they are written to.

The include scripts are largely Python. So, for those who’d like a quick tutorial on how to do these tasks via Python, they might also use this project as a roadmap.

Scripts

This project encapsulates four executable scripts, three of them Python:

Name

Description

ck_create_ca

Create CA keys and certificate

ck_create

Create normal keys

ck_sign

Create a signed certificate using the CA identity

ck_verify_ca

Verify that the signed certificate was issued by the CA

The Python scripts use M2Crypto to manipulate the keys/certificates.

Installation

This project can not be installed. Clone it from the GitHub project, and run the following to install the dependencies:

$ sudo pip install -r requirements.txt

Usage

To specify a directory, use the “-o” parameter. If none is given, you will be prompted to confirm.

  1. Create the CA:

    $ ck_create_ca
    Please confirm output directory []: output

    This generates:

    • ca.crt.pem

    • ca.csr.pem

    • ca.key.pem

    • ca.public.pem

  2. Create the normal keys:

    $ ck_create
    Please confirm output directory []: output

    This generates:

    • normal.csr.pem

    • normal.key.pem

    • normal.public.pem

  3. Sign the identity:

    $ ck_sign
    Please confirm output directory []: output

    This generates:

    • normal.crt.pem

  4. You can also verify that the identity was signed by our CA:

    $ ck_verify_ca
    Please confirm input directory []: output
    Verified.

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

ca_kit-0.2.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

ca_kit-0.2.0-py2-none-any.whl (13.3 kB view details)

Uploaded Python 2

File details

Details for the file ca_kit-0.2.0.tar.gz.

File metadata

  • Download URL: ca_kit-0.2.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ca_kit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 54ca74b44eeeb2ce934ff0baef3711ef575c32d24bfb63f43e4460f0f3322590
MD5 2d30d87de5063744d9930adaab30ca03
BLAKE2b-256 3e544f6e45f09639e6361d7bc187a08b9d80fc83564fd1d66b64266b44afffea

See more details on using hashes here.

File details

Details for the file ca_kit-0.2.0-py2-none-any.whl.

File metadata

File hashes

Hashes for ca_kit-0.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 0e9f3aac9cf2bfae19ddbe18dcf9fee47bcb9d8cb397fe222ada6c543b86b53d
MD5 6b1cac55af8da4716b1337b2460f5678
BLAKE2b-256 ebb72c92e891a993a8c1fe810a80fd75c5b14f392b6f52e0faffa1a98bea6c86

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