Giter Site home page Giter Site logo

requester's Introduction

requester

This script sets up the config requred to request tls certs from the specified cfssl issuing server
This script uses cfssl and cfssljson packages from Cloudflare's cfssl library

Designed to be used alongside issuer

Usage: requester.sh [OPTIONS]

This script sets up the config requred to request tls certs from the specified cfssl issuing server
This script uses cfssl and cfssljson packages from Cloudflare's cfssl library

Options:

--target-dir            The Directory where to install the configs and the cert files. Defaults to "."
--requester-cn          The CN of the requested certificates. Required
--issuer-host           DNS name or the IP address and the port of the hosts where the issuer can be accessed. Defaults to "https://localhost:8888"
--api-pass              The Passowrd for the issuer API. Should be a 16 byte hex string. Can be generated using https://www.browserling.com/tools/random-hex. Required
-h, --help              Show this message and exit
--hostname              The Hostname for the Certificate. Required.
--cert-name             The Name of the certificate. Defaults to \"cert\"
--issuer-pem            The Location of the issuer server pem. Required
--out-dir               The Location where to export the Cert and Key. Defaults to the target-dir

Example:
  requester.sh --target-dir requester --issuer-host "https://issuer.example.com:8888" --api-pass "7be2e3fda569b88b" --requester-cn "Requester CN" --hostname "requester.example.com" --issuer-pem ../issuer.pem

In Case tls is used by the issuing server, its tls-cert needs to be copied into this machine
A new Certificate can be rqeusted as follows

  cfssl gencert -config=requester.config.json -hostname="requester.example.com" -profile="default" -tls-remote-ca issuer.pem requester.config.json | cfssljson -bare requester

For more information, please consult the cfssl documentation

TODO

  • Check if binaries are present
  • Download binaries if required
  • Use the script to actually request the CA

requester's People

Contributors

mrityunjaygr8 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

requester's Issues

Use the script to actually request the CA

Currently, the script only setup up the stage for requesting the actual CA, but leaves that process for the user.
We should automate that as well, so that user can just run this script with the correct arguments and get the final certs

Incorrect and Incomplete Documentation

The Documentation currently contains an error in the api-pass argument, where it contains a = instead of a blank space.
Further, on running the script as per the documentation, an error occurs saying that the --requester-cn cannot be blank

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.