GithubHelp home page GithubHelp logo

kiwi-crate / kiwica Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

Containerized Certificate Authority

Dockerfile 15.97% Shell 84.03%
certificate-authority docker-compose rootca ssl-certificates

kiwica's Introduction

Certificate Authority Container

Note:
This is intended to be offline at all times except for when issuing new certificates.

  • build the image with docker build -t <img-name>:<tag> ./

This compose project has two functions:

  1. Generate a rootCA pair (private key + certificate):

    • run with ROOTCA_BIND="/bind/path" docker compose -f compose-rootCA.yaml up
      • this is a one-shot run which will generate a CA private key and certificate
      • ROOTCA_BIND path must contain the two files found in dummy/rootCA (don't forget to adjust their contents accordingly)
        • point variable ROOTCA_BIND to a secure path where to write the rootCA private key and certificate (preferably a USB stick that will be unmounted and stored somewhere when not using the CA)
  2. Generate ssl certificate for a client (user/server):

    • run with ROOTCA_BIND="/rootCA/bind/path" CLIENT_BIND="/client/bind/location" docker compose -f compose-client.yaml up
      • this is a one-shot run which will generate a client private key, csr and certificate which will be signed with previously generated rootCA
      • ROOTCA_BIND see point 1 -CLIENT_BINDpath must contain the two files found indummy/client` (don't forget to adjust their contents accordingly)
        • for security use this variable the same way as ROOTCA_BIND

Exit Codes:

  • 10: A private key file called rootCA.key is already present in the ROOTCA_BIND path. RootCA Key+Cert generation interrupted.

kiwica's People

Contributors

f1uff3h avatar

Watchers

 avatar

kiwica's Issues

KiwiCA

For our self-hosted environment we will need to create a containerized Certificate Authority (CA) which will act as the SSL Certificates issuing body.

The container should be able to:

Questions to be answered:

Update README

README file has to be updated to reflect repo being part of the KiwiCrate fleet.
Requirements:

  • logo

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.