charles https

charles抓包https时遇到的问题

在使用charles抓包https时,尽管在证书配置完成后,在抓shopify网站的时候却发现无法抓取;可是连google和自建的网站都可以正确抓取,为什么shopify的不行呢?

在抓取时提示

1
handshake_failure (40) - Unable to negotiate an acceptable set of security parameters, this probably means there are no cipher suites in common

导致页面无法正常加载、或提示其它证书不正确等信息

这是因为shopify是采用http2协议和更安全的证书策略,Charles对http2协议支持不是很好

解决办法

1,临时禁用chrome http2请求
在windows中,桌面找到chrome右键属性–快捷方式–目标;在引号后边追加 –disable-http2 重启chrome发现所有请求都使用http1.1访问

2,使用proxyman来代理charles抓包