Giter Site home page Giter Site logo

easyopensslca's Introduction

EasyOpenSSLCA

A dead simple command line CA using openssl and make.

This project leverages the bootstrap CA that is bundled with FreeRADIUS.
For now, it just generates a very basic PKI heirarchy 
(root CA + subCA for issuing client certs). In the future, it will be
expanded to add support for different heirarchies, cross certs for
bridge CAs, and possible MofN support for root CA private key
protection.

To create issuing certs, simply type:
make all SKI=<hash value to use as SKI>

To use the configuration file contents to create a hash for the SKI, use this command:
make all SKI=`sha256sum subca.cnf | awk '{print $1}'`

This will generate the root CA cert (cert.pem) along with it's private 
key (protected with password from ca.cnf) as well as a subCA cert
(subca.pem) and it's private key.

To make a tls server certificate, type
make client SUBJECT=<subject to include in server certificate's CN and SAN extension>

There are other targets, right now only 'make all', 'make index.txt',
'make serial', 'make ca', 'make client' and 'make subca' work. 

It's best to just use make all.

If you want to clean up everything, use 'make destroycerts'.

Prerequisites:
make
openssl (any version will do)

test

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.