Coder Social home page Coder Social logo

oscarzhou / gentls Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 10.7 MB

Aim to generate self-signed mTLS certificates for both server and client with one click

Dockerfile 5.80% Makefile 29.53% Shell 64.67%
amd64 arm64 docker easy-to-use mtls self-signed

gentls's Introduction

Introduction

A docker image used to generate self-signed mTLS CA, Server and Client Certificates.

Supported platforms

  • linux/amd64
  • linux/arm64

How to use?

  1. Mount your local directory to /data in the container.
  2. Set the CN environment variable to your domain or ip address. If you use for localhost, you can set CN to your private ip address. If you use for your domain, you can set CN to your domain. If you want to add multiple domains, you can use comma to separate them.
  3. Run the container.
  4. The certificates and key files will be generated in the mounted directory.
mkdir -p certs
docker run -v $(pwd)/certs:/data -e CN="example.com,182.12.23.144" --name gentls oscarzhou/gentls:latest

Available ENV

If you want to add certificate for your localhsot domain, you can use the following ENVs:

-e CN="192.168.0.10" # your private ip address

If you want to add certificate for your domain, you can use the following ENVs:

-e CN="example.com" # your domain

If you want to add multiple domains, you can use the following ENVs:

-e CN="example.com,example2.com" # multiple domains

Thanks

The TLS certificate and key files are generated by cfssl

gentls's People

Contributors

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