charles抓包https

配置

  • Proxy -> Windows Proxy: uncheck
  • Help -> SSL Proxying -> Install Charles Root CA: 本机安装根证书
  • Help -> SSL Proxying -> Install Charles Root CA on a Mobile Device
    • 手机Wifi-> Manual Proxy: 设置代理
    • 手机浏览器打开https://chls.pro/ssl, 下载并安装根证书
  • Proxy -> SSL Proxying Settings:
    • Enable SSL Proxying: check
    • Location: 添加需要proxy的地址,如: githug.com:443, *.github.com:443

测试:

手机浏览器访问并登录github
URL: https://github.com/session

解密后的内容为:

utf8=%E2%9C%93&authenticity_token=tWwiY8z9B5Ap%2F8sY5tf1urH5qg1diMzqSO4L37kjIy3e8hV8l56pXtf2roNFbnopEM9eA08eRXufY%2FcXbSgeuw%3D%3D&login=ff&password=guufff&return_to=%2Fcfig