GithubHelp home page GithubHelp logo

fza / nodepki-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aditosoftware/nodepki-client

0.0 1.0 0.0 37 KB

A CLI client for NodePKI server

License: MIT License

JavaScript 100.00%

nodepki-client's Introduction

NodePKI CLI Client

A simple command-line client for the NodePKI server

Dependencies

  • NodeJS
  • NPM
  • OpenSSL

Setup

git clone https://github.com/ThomasLeister/nodepki-client.git
cd nodepki-client
npm install

Configure

Copy config.default.yml to config/config.yml and set the settings according to your environment.

Usage

Display subcommand overview:

nodejs client help

Display subcommand usage help:

nodejs client request --help

Request new certificate

Create new key + certificate from scratch and store both in out/ directory. Lifetime: 7 days.

nodejs client request --lifetime 7 --out out/

Create new key + certificate from scratch, add intermediate cert to cert and store in out/ directory

nodejs client request --out out/ --fullchain

Create new certificate via existing .csr file and write certificate to out/cert.pem:

nodejs client request --csr certificate.csr --out out/cert.pem

Lifetime defaults to cert_lifetime_default setting in config.yml

Create a new client certificate:

nodejs client request --type client --out out/

Get list of issued certificates

nodejs client list --state all

... to list all issued certificates.

Valid states:

  • all
  • valid
  • expired
  • revoked

Get certificate by serial number

... and store certificate to out/cert.pem

nodejs client get --serialnumber 324786EA --out out/cert.pem

Revoke issued certificate

nodejs client revoke --cert cert.pem

Get CA certificates

Get root certificate:

nodejs client getcacert --ca root

Write root certificate to file:

nodejs client getcacert --ca root --out out/root.cert.pem

Get intermediate certificate:

nodejs client getcacert --ca intermediate

Get intermediate certificate + root certificate (=cert chain) and write to file:

nodejs client getcacert --ca intermediate --chain --out out/ca-chain.cert.pem

nodepki-client's People

Contributors

jboesl avatar thomasleister avatar

Watchers

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.