Giter Club home page Giter Club logo

capy's Introduction

Certificate Authority

Description

This is a REST API tool to mimic a Certificate Authority that runs on TCP port 25050, to generate (Root Certificates, Intermediate Certificates, End-Entity Certificates, Certificate Signing Request).

Every end-point will return a JSON-object

Git

Docker

  • If image already exists, and you want to delete it

    $ docker rm capy
    $ docker rmi -f capy:1.0
  • Goto project folder

    $ cd capy
  • Build docker image

    $ docker build --tag capy:1.0 .
  • Run container

    $ docker run -p 25050:25050 --name capy capy:1.0

How to use

1. Web access

2. REST API
method end-point parameters body action output (json)
GET http://localhost:25050/ca/gen-csr CN, O, OU, C, ST, L Generate a CSR type, data, private_key, public_key
GET http://localhost:25050/ca/gen-cert-root CN, O, OU, C, ST, L,
days, path_length
Generate a root certificate type, data, private_key, public_key
POST http://localhost:25050/ca/gen-cert-interm CN, O, OU, C, ST, L,
days, path_length,
issuer_private_key, issuer_cert
Generate an intermediate certificate type, data, private_key, public_key
POST http://localhost:25050/ca/gen-cert-end issuer_private_key, issuer_cert, csr_data Generate an end-entity certificate type, data

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.