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
    // }
})

/cert-cli/

    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