Giter Site home page Giter Site logo

devca's Introduction

devca

devca is a keytool frontend for development, because I can't be bothered to remember keytool's arcane syntax.

Description

devca allows you to quickly create a self-signed JKS certificate authority keystore and sub-keystores/truststores for development without remembering the moon runes necessary to get keytool to do what you want. Do not use this in any production scenario.

The default password on all keystores/truststores is password. This can be changed with the --password flag.

The default CN on all keystores is the name given. This can be changed with the --cn flag.

The default certificate expiry is 90 days. This can be changed with the --expiry_days and --expiry_seconds flags.

devca operates in your current directory by default. This can be changed with the --root flag.

The raw keystore commands can be printed with --verbose if you want to see them.

Installation

Python 3.10+ is required to use devca. Copy it to any directory in $PATH and give it executable permission. Alternatively, on Linux, you can

sudo make install

This will install it to /usr/local/bin. You can uninstall it with

sudo make uninstall

Examples

Create a new root keystore called ca.jks in the current directory.

devca new root ca

Create a new root keystore called ca.jks with CN=big bad root cert.

devca new root ca --cn="big bad root cert"

Create a child of ca.jks called server.jks with CN=localhost.

devca new child server ca --cn=localhost

Create a child of ca.jks called client.jks expiring in 30 seconds.

devca new child client ca --expiry_seconds=30 

Create a truststore called client.truststore.jks trusting ca.jks and ca2.jks.

devca new truststore client.truststore ca ca2

Trust ca2.jks in server.jks. Note: this does not sign server.jks with ca2.jks.

devca trust server ca2

Wipe out all keystores/truststores in the current directory.

devca nuke

devca's People

Contributors

jonathan-lemos avatar

Watchers

James Cloos 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.