wuchangming / node-mitmproxy

node-mitmproxy is an extensible man-in-the-middle(MITM) proxy server for HTTP/HTTPS base on Node.js.
MIT License
280 stars 62 forks source link

证书在哪里呢 #33

Open Arichy opened 2 years ago

Arichy commented 2 years ago

install -g 之后到处都没有找到证书 node-mitmproxy createCA 命令也报错,好像并没有这个命令

RikaShiro commented 2 years ago

同问。win10环境中createCA报错 createCA

chenxqiyu commented 1 year ago

同问。win10环境中createCA报错 createCA

  1. 进入node控制台
  2. var mitmproxy = require('node-mitmproxy');
  3. mitmproxy.createCA();

    PS C:\Users\chenx\AppData\Roaming\npm> node Welcome to Node.js v18.12.1. Type ".help" for more information.

    var mitmproxy = require('node-mitmproxy'); undefined

    mitmproxy.createCA(); { caCertPath: 'C:\Users\chenx\node-mitmproxy\node-mitmproxy.ca.crt', caKeyPath: 'C:\Users\chenx\node-mitmproxy\node-mitmproxy.ca.key.pem', create: true }

chenxqiyu commented 1 year ago

install -g 之后到处都没有找到证书 node-mitmproxy createCA 命令也报错,好像并没有这个命令

进入node控制台 var mitmproxy = require('node-mitmproxy'); mitmproxy.createCA();


PS C:\Users\chenx\AppData\Roaming\npm> node Welcome to Node.js v18.12.1. Type ".help" for more information.

var mitmproxy = require('node-mitmproxy'); undefined

mitmproxy.createCA(); { caCertPath: 'C:\Users\chenx\node-mitmproxy\node-mitmproxy.ca.crt', caKeyPath: 'C:\Users\chenx\node-mitmproxy\node-mitmproxy.ca.key.pem', create: true }