Git Product home page Git Product logo

ca_setup's Introduction

ca_setup

Simple setup to create your own CA This code sets up a simple Certificate Authority (CA) for generating SSL/TLS certificates:

  1. It initializes the CA setup by executing bootstrap.sh, which sets up the necessary directory structure and configuration files.
  2. It creates the CA root certificate chain by running create_cachain.sh.
  3. It generates a server certificate for the current machine (identified by hostname -f) using gen_server_cert.sh. This script generates a private key, a certificate signing request (CSR), and then signs the CSR to create the server certificate.
  4. Finally, it exports the generated certificate and its private key to the specified destination folder (/home in this case) using export.sh. If the -k option is provided, it also exports the private key.
echo "Welcome" > passfile
bash bootstrap.sh

bash create_cachain.sh
bash gen_server_cert.sh `hostname -f`
bash export.sh -i intermediate -c `hostname -f` -d /home -k

ca_setup's People

Contributors

bhagadepravin avatar raykrist 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.