Charles Proxy is a desktop app that sits between your device and the internet and shows every request and response. To read HTTPS traffic you have to do two things: trust the Charles root certificate, and turn on SSL Proxying for the sites you want to see. It is a debugging tool, so it does not change your location. For that you send Charles through another proxy, such as ISP proxies, which we cover at the end.
Charles runs on Windows, macOS and Linux. It is paid software with a 30-day trial, and the steps below follow its own documentation for version 5.
1. Install Charles and check it records
Start Charles and let it configure your system proxy when it asks. Open any website. You should see hosts appear in the list on the left. HTTPS sites show up too, but their contents are still encrypted at this point.
If nothing appears, look in the Proxy menu and make sure the system proxy option is on. A VPN or another proxy app running at the same time can take its place.
2. Trust the Charles certificate
Charles creates its own certificate for each site and signs it with a root certificate that is unique to your installation. Until your device trusts that root, you get security warnings.
| Device | Steps |
|---|---|
| macOS | Help > SSL Proxying > Install Charles Root Certificate. In Keychain Access open the Charles entry, expand Trust, and choose Always Trust. |
| Windows | Help > SSL Proxying > Install Charles Root Certificate. Choose the Trusted Root Certification Authorities store yourself instead of the automatic choice. |
| Firefox | With Firefox connected to Charles, open https://chls.pro/ssl and tick “Trust this CA to identify websites”. |
| iPhone and iPad | Set Charles as the HTTP proxy in the Wi-Fi settings, open https://chls.pro/ssl in Safari and install the profile. Then go to General > About > Certificate Trust Settings and switch it on. |
People often search for this page as “chls pro ssl”. The address only works while the device is using Charles as its proxy.
iPhone users often miss the last step. Installing the profile is not enough on iOS 10.3 or later: the certificate also has to be switched on in Certificate Trust Settings.
Android is different. Since Android N, apps do not trust certificates you add yourself unless the app’s developer allows it. In practice you can read the HTTPS traffic of your own apps, after adding a Network Security Configuration file, but not of most others.
3. Turn on SSL Proxying
Charles decrypts only the hosts you name. There are two ways to add one:
- Right-click the host in the structure view and turn on SSL Proxying.
- Open the proxy settings, go to the SSL tab and add the host name.
You can enter * to include every host, but a short list is easier to read and keeps your banking and email out of the recording. Reload the page afterwards. If it still shows encrypted data, restart the browser, because existing connections may need to close first.
4. Send Charles through another proxy
Sometimes you need to see what a site returns to a visitor in another place. Charles can pass its own traffic to a second proxy. In its settings this is called External Proxies, and it takes separate addresses for HTTP, HTTPS and SOCKS, with Basic or NTLM authentication.
Enter your provider’s host and port for both HTTP and HTTPS, then the username and password. Charles uses a SOCKS proxy only for traffic that is not HTTP or HTTPS, so for websites fill in the first two. You can list hosts that should skip the second proxy.
If the second proxy rejects the login, our guide to 407 proxy authentication errors lists the usual causes.
Problems and fixes
| Problem | Likely cause |
|---|---|
| Certificate warning in the browser | The root certificate is not trusted on that device |
| Contents unreadable | SSL Proxying is off for that host |
| One app fails while others work | The app pins its own certificate and refuses Charles |
| Nothing recorded from a phone | The phone is on another network, or its proxy address or port is wrong |
| Internet stops after closing Charles | The device is still set to use it as a proxy |
For the last one, remove the proxy from the Wi-Fi settings. Our guide to proxy settings on iPhone and Android shows where they are.
Clean up when you finish
A trusted root certificate is powerful. Anyone who has the private key could read your HTTPS traffic, so remove the Charles certificate from devices you no longer debug, and never install someone else’s. Only inspect traffic from your own devices and from apps you are allowed to test.