Reputation: 29
I'm trying to use Charles Proxy to do testing for some app builds for iOS. However, as soon as I enter the server and port information, the phone I'm using for testing can no longer connect to any web pages.
Here are the steps I'm using:
After doing this, the WiFi no longer works so I'm unable to access "chls.pro/ssl" to download the Charles certificate. Anyone have any idea why this could be happening?
Upvotes: 1
Views: 3831
Reputation: 1
So, I encountered this issue and tried using ChatGPT, Gemini, Google, and Stack Overflow. After some searching, I came back to this post, and finally, it worked!
The solution involved a combination of suggestions here:
Delete the certificate and reinstall it. However, I ran into a problem where typing "chls.pro/ssl" or "charlesproxy.com/getssl [invalid URL removed]" in Safari didn't do anything. So, I went to Charles on Windows and navigated to Help > SSL Proxying > Save Charles Root Certificate. Then, I sent the certificate to my phone using a messaging app.
On my iPhone, I went to Settings > General > About > Certificate Trust Settings and enabled full trust for the root certificate.
This was the key step: In Windows, I went to Wi-Fi settings > Windows Firewall > Allow an app through firewall > Change settings. I found Charles Web Debugging Proxy and checked both the Private and Public boxes in the checkbox column. After pressing OK, Safari started working with Charles! Thank you everyone for your collective help!
Upvotes: 0
Reputation: 1
Might be relevant for someone. Go to computer settings >> network and internet >> Wi-Fi >> Windows Firewall >> allow applications through firewall >> change settings >> find Charles and select private checkbox. Sorry for my English
Upvotes: 0
Reputation: 3594
There are various reasons why you could not access to http://chls.pro/ssl after setting HTTP Proxy on your iPhone.
The following list is all steps you need to double-check:
Verify your IP and Port that you enter in the Wifi Proxy is matched with the IP/Port from Charles
Turn OFF all VPN apps on your iOS devices. If you're connecting to the VPN -> All traffic does not go through the Proxy Server
Firewall setting: System Preference -> Security & Privacy -> Firewall tab -> Option Verify that:
Or simply turn OFF all Firewall setting.
You can read more at https://docs.proxyman.io/troubleshooting/my-ios-devices-couldnt-connect-to-proxyman-via-proxy
Disclaimer: I run Proxyman, an alternative tool for Charles, many users encountered this problem a lot, so I collect all possible reasons and try to fix it. Hopefully, the blog could help you.
Upvotes: 1
Reputation: 318
You MUST trust Charles Proxy in your iOS Simulators or Real devices.
Setttings -> General -> About -> Certificate Trust Settings -> Switch On
Upvotes: 0