Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于node-mitmproxy在Android手机端访问https的问题 #13

Open
zimo2013 opened this issue Mar 2, 2018 · 3 comments
Open

关于node-mitmproxy在Android手机端访问https的问题 #13

zimo2013 opened this issue Mar 2, 2018 · 3 comments

Comments

@zimo2013
Copy link

zimo2013 commented Mar 2, 2018

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

@wuchangming
Copy link
Owner

@stackzhang ,会报错的https请求不用代理时用浏览器能否正常打开?

@zimo2013
Copy link
Author

zimo2013 commented Mar 2, 2018

@wuchangming 源生App里嵌套一个网页,这个网页中会有ajax网络请求,这个请求是https的,不知道是否可以拦截到。
我使用charles是看到了这个请求

我的需求,就是使用代理,获取部分接口的数据(http/https的),不修改任何数据。

@wuchangming
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants