spy-debugger 不能访问https地址
首先: 1、mac,安装spy-debugger; 2、Android与iphone X扫描安装证书成功; 3、在电脑搭建nginx配置域名 www.xxxx.com,并且chrome可以访问; 4、创建https证书,证书为openSSL自建证书;
同一个wifi网络下,手机已设置代理,本机ip与端口为9888 手机访问 https://www.xxxx.com/index.html 不能访问; 手机访问 http://www.xxxx.com/index.html 正常;
但访问https://www.baidu.com 正常;
关闭spy-debugger
使用Charles代理,设置本机ip与端口 手机访问 https://www.xxxx.com/index.html 正常; 手机访问 http://www.xxxx.com/index.html 正常;
目前只能用weinre + charles来进行调试自己开发的页面,感觉是AnyProxy证书的问题;
@xuanjinliang ,
如果没有单独安装过anproxy,spy-debugger和anyproxy用的应该是同一个证书。
本机信任下spy-debugger的证书呢?证书是在你安装spy-debugger的时候生成在你MAC的上,路径~/node-mitmproxy/node-mitmproxy.ca.crt
@wuchangming 没有安装过anproxy;
证书安装这里,并且已设置信任,如下图所以,ios与Android一样,安装成功,已信任

@xuanjinliang Mac 本身也信任了这个证书? 另外就是你自签名的www.xxxx.com 的证书 Mac 是否也已信任?
@wuchangming 一样是打不开的
自签名的也是信任的,因为 chrome能正常访问https://www.xxxx.com/index.html
https的现在还是访问不了,还有关注吗?
我也是遇到这个问题。https 无法打开
有如下错误:
(node:76704) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(node:76704) UnhandledPromiseRejectionWarning: ---------------------------------------------------------
error: Error: Cannot read public key. OID is not RSA.
---------------------------------------------------------
stack:
x509.js:1274 - pki.certificateFromAsn1()
tlsUtils.js:68 - pki.certificateFromAsn1()
tlsUtils.js:148 - pki.certificateFromAsn1()
CertAndKeyContainer.js:78 - pki.certificateFromAsn1()
events.js:273 - pki.certificateFromAsn1()
events.js:187 - pki.certificateFromAsn1()
domain.js:459 - pki.certificateFromAsn1()
_http_client.js:562 - pki.certificateFromAsn1()
_http_common.js:109 - pki.certificateFromAsn1()
_http_client.js:449 - pki.certificateFromAsn1()
(node:76704) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:76704) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:76704) UnhandledPromiseRejectionWarning: ---------------------------------------------------------
error: Error: Cannot read public key. OID is not RSA.
---------------------------------------------------------