Coder Social home page Coder Social logo

ethrgeist / dev-ca Goto Github PK

View Code? Open in Web Editor NEW

This project forked from realmq/dev-ca

0.0 0.0 0.0 17 KB

๐Ÿ” A docker image :whale: and CLI tool :computer: that makes it easy to generate, manage and use self signed root and leaf certificates for local development.

License: MIT License

Shell 92.54% Dockerfile 7.46%

dev-ca's Introduction

๐Ÿ” RealMQ Dev CA - Local Development Certificates

MIT License realmq/dev-ca on docker hub

dev-ca is a docker image for generating self signed root and leaf certificates for local development, making it easy to manage and use local dev certificates.

  • Manage generation of local root certificate.
  • Trusted once, you can use any domain locally with TLS enabled.
  • Supporting wild-card domains
  • Also supporting IP addresses.
  • Dev certs won't expire in a lifetime
  • Build with/for docker
  • Use anywhere via convenient CLI tool

๐Ÿ”ฅ Generate certificates

  • Dev certificates are generated for a main domain (DOMAIN defaults to localhost).
  • They can be issued for any number of alternative domains and ip addresses (SAN defaults to 127.0.0.1)

๐Ÿณ Use with docker

Generate dev certificates to local directory via docker:

mkdir -p certificates
docker run --rm \
    -v "${PWD}/certificates:/data/certificates" \
    -u $(id -u ${user}):$(id -g ${user}) \
    -e DOMAIN="my-org.local" \
    realmq/dev-ca
  • -u $(id -u ${user}):$(id -g ${user}) makes sure your certificates are accessible by current user. If you omit this option certificates are owned by root:root.
  • You can include additional domains and ip-addresses by passing them via -e SAN="another.tld 10.10.0.1"

๐Ÿ’ป Use convenient CLI tool

Install our cli wrapper:

sudo curl -L https://raw.githubusercontent.com/realmq/dev-ca/master/dev-ca.sh -o /usr/local/bin/dev-ca
sudo chmod a+rx /usr/local/bin/dev-ca

Use the CLI tool to generate local dev certificates:

dev-ca --domain="my-org.local"
  • Specify main domain via -d|--domain parameter. (Defaults to localhost)
  • Pass alternative names via -s|--san parameter. (Defaults to ${HOSTNAME} 127.0.0.1)
  • Set destination directory via -v|--volume parameter. (Defaults to ${CWD}/certificates)
  • Set owning user via -u|--user parameter. (Defaults to ${USER})

๐Ÿš€ Roadmap

  • Add documentation on how to install/trust self-signed root certificates
  • Add docker compose setup example for nginx tls termination

๐Ÿ“ƒ License

Copyright (c) 2019 RealMQ GmbH.
The files in this archive are released under the MIT License.

dev-ca's People

Contributors

alrik 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.