Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet. This includes requests, responses and the HTTP headers (which contain the cookies and caching information).
1. SSL PROXYING
man-in-the-middle
- MAC OS X上添加Charles证书
Help > SSL Proxying > Install Charles Root Certificate
In Charles go to the Help menu and choose "SSL Proxying > Install Charles Root Certificate".
Keychain Access will open, and prompt you about the certificate. Click the "Always Trust" button.
You will then be prompted for your Administrator password to update the system trust settings.You may need to quit and reopen Safari to see the change.
- 移动设备上添加Charles证书
手机上先设置Charles代理,再访问 http://charlesproxy.com/getssl 下载安装证书。
-
SSL代理设置
Proxy > SSL Proxying Settings- 首先勾选Enable SSL Proxying
- 把需要代理的域名添加到Locations列表中(也可以在Structure视图中右键添加)
- 如果希望对所有域名都进行SSL代理,可以在设置的Host一栏填*****