cert-cli

0.0.1-3 • Public • Published

create-self-signed

使用

命令行

npm install create-self-signed -g
self-signed --help

api调用

npm install create-self-signed --save
const { obtainSelfSigned } = require('create-self-signed')
const hosts = ['local.m.taobao.com'] // 本地https服务要使用的host
obtainSelfSigned(hosts).then(result => {
    // result
    // {
    //     success: true,
    //     sslKeyPath: '/Users/xxx/.self-signed-cert/ssl.key',
    //     sslCrtPath: '/Users/xxx/.self-signed-cert/ssl.crt',
    //     certTrusted: true
    // }
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1-3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1-3
    2

Package Sidebar

Install

npm i cert-cli

Weekly Downloads

2

Version

0.0.1-3

License

none

Unpacked Size

18.7 kB

Total Files

4

Last publish

Collaborators

  • sprying