GithubHelp home page GithubHelp logo

tls-gen-bash's Introduction

Generate TLS Certificate Authority, Server Certs and Client Certs.

Based off the guide for Rabbit MQ, but with bash scripts to make it easier to create a simple CA that can generate multiple server and client certs via a simple script. Simalar to tls-gen but with no dependencies other than bash and openssl.

Generate self-signed root CA, clone this repo and run the following from the directory.

./bin/generate-ca-key-and-cert

This will create the following files:

  • ca/cacert.pem
  • ca/private/root.key

Those can then be used to create new certs.

Server

./bin/generate-server-cert HOSTNAME

This will create the following files:

  • server-HOSTNAME/cert.pem
  • server-HOSTNAME/key.pem

Client

./bin/generate-client-cert NAME

This will create the following files:

  • client-NAME/cert.pem
  • client-NAME/key.pem

Both options will but the name in the CN (common name) field in the cert subject.

If you want to change the orgnization you can set the env variable ORGNIZATION:

ORGNIZATION=MyOtherOrg ./bin/generate-client-cert NAME

tls-gen-bash's People

Contributors

csexton avatar

Watchers

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