myca-cli
TypeScript icon, indicating that this package has built-in type declarations

5.1.0 • Public • Published

myca

Create my CA center, generate a self signed x509 certificate, issue server certificate from node.js via openssl. Multiple center supported. RSA, EC(P-256, P-384) supported.

GitHub tag License ci codecov Conventional Commits lerna

Installing

npm install --save myca

CLI

  • myca-cli

  • Installing by npm i -g myca-cli

  • Command help

    • myca
    • myca initca -h
    • myca issue -h
  • Example

    myca initca --days=10950 --alg=ec --pass=capass \
      --cn="Root CA" --ou="waitingsong.com" --o="waitingsong" --l="CD" --c=CN \
    myca issue --kind=server --days=3650 --pass=mypass \
      --cn="waitingsong.com" --o="waitingsong" --c=CN --caKeyPass=capass \
      --centerName=default --alg=ec \
      --ips="127.0.0.1, 192.168.0.1" \
      --SAN="localhost" 
    myca issue --kind=client --days=3650 --pass=mypass \
      --cn="client" --o="it" --c=CN --caKeyPass=capss \
      --centerName=default --alg=ec 

Usage

  • Initialize default center
    import { initDefaultCenter } from 'myca'
    
    await initDefaultCenter()

Packages

Package Version
myca main-svg
myca-cli cli-svg

License

MIT

Languages


/myca-cli/

    Package Sidebar

    Install

    npm i myca-cli

    Weekly Downloads

    2

    Version

    5.1.0

    License

    MIT

    Unpacked Size

    64.2 kB

    Total Files

    44

    Last publish

    Collaborators

    • waiting