http没有问题,部分https返回正常,但部分https会报错,错误如下
(node:19245) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot read public key. OID is not RSA.
//js 配置如下
sslConnectInterceptor: (req, cltSocket, head) => true,
caCertPath: '/Users/mac/node-mitmproxy/node-mitmproxy.ca.crt',
caKeyPath: '/Users/mac/node-mitmproxy/node-mitmproxy.ca.key.pem',
Android手机已经安装了对应的证书crt