GithubHelp home page GithubHelp logo

infrapki's Introduction

infrapki

Exploration of the Python Cryptography package.

Usage

Install

Git clone and Python setup:

git clone github.com/oko/infrapki
pipenv install -d
pipenv run -- python3 setup.py install

Build PEX

Outside the shell:

pipenv shell

Inside the subshell:

make pex
exit

Root CAs

Create a demonstrator root CA:

# creates a root CA in `path/to/dir`
pipenv run -- infrapki ca new path/to/dir example/root.infrapki.conf.toml

Root CAs are generated without a basic constraint path length. The path length used during signing of an intermediate is determined by the config file's ca.ca_path_length option.

Intermediate CAs

See scripts/testint.sh for a demonstration of intermediate CAs. This script also demonstrates server and client cert signing with intermediate CAs.

Server Certs

Currently the infrapki ca sign command selects the signing mode based whether the CA in use is a root or intermediate:

  • If it's a root CA, sign the CSR as if it's an intermediate CA
  • If it's an intermediate CA, sign the CSR as if it's a server certificate

External CSRs

InfraPKI can sign external CSRs (i.e. those created by Vault) with:

infrapki ca sign <ca-dir> <csr-path> <cert-output-path>

Things to Implement

  • CA certificate databases
  • CA CRL generation

infrapki's People

Contributors

oko avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.