-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't automatically trust installed cert #12
Comments
Just tested on Proxyman, which use a this script for installing Proxyman CA to iOS Simulators, and it does install & enable the Trust Setting in iOS Simulator 13.2.2 (Xcode 11.2.1). Which version are you using? |
Look like iOS Simulator 13.3 change the way how to enabled it. Let me test it |
Just tested on Xcode 11.3 and iOS 13.3 Simulator and the script is work well with no extra arguments. Work with Proxyman. Here is the minimal version of this script: https://gist.github.com/NghiaTranUIT/114e50e327888ff447f96fb7ef541db2 |
I tend to wipe my simulators, boot them, wait 60 seconds to make sure they are booted and then run the script. I'm starting to suspect that doing so prevents new certs from being trusted in some way. I've read somewhere that the TrustStore db doesn't exist until the sim tries to make an https connection, but I've not found that to be true, nor does making the sim navigate to an https page seem to alleviate the problem of the cert not being trusted on installation. |
Also, I don't think this issue is limited to me. it looks like 2 other users are experiencing this same issue but they describe it differently: #11 |
Hi, I have similar issue. The only difference is the cert is selected as trusted(on Certificate Trust Settings screen) but it doesn't work. I need to flip the toggle to non-trust then switch to trust again to make it work. I use iPhone 11 simulator - 13.3. Installation steps:
I use a self-signed cert, can it be a problem? |
FYI: Tested on Xcode 12.2 and iOS 14.2 Simulator. The script which @NghiaTranUIT provided, works well with the mitmproxy. -- update 2020/12/11 |
Running
./iosCertTrustManager.py -a cert_authority.pem
correctly installs my cert but I have to manually visit the General -> About -> Certificate Trust Settings page on each simulator and flip the switch to trust the installed cert.Somehow Charles'
install-charles-ca-cert-for-iphone-simulator.sh
script is able to both install and trust their cert on my simulators and they seem to use the same basic mechanism (writing to ls ~/Library/Developer/CoreSimulator/Devices/*/data/Library/Keychains/TrustStore.sqlite3) so I feel like I must be missing something.Any advice?
The text was updated successfully, but these errors were encountered: