Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
863 views
in Technique[技术] by (71.8m points)

proxy - Unable to install Charles root certificate on iOS Simulator 14.5

On Charles mac app, if I go to

Help > SSL Proxying > Install Charles Root Certificate on iOS Simulators

and then run any Simulator from Xcode I don't see Charles certificates installed on simulator.

I am using Charles v4.6.1. This was working fine on iOS Simulator 14.4. If you have any solutions please let me know.

question from:https://stackoverflow.com/questions/67283763/unable-to-install-charles-root-certificate-on-ios-simulator-14-5

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It's a bug from Charles Proxy. You should wait until Charles Proxy fixes it.

To work around, you might manually export the certificate from Help Menu -> SSL Proxying -> Save Charles Proxy Root Certificate.

Then drag the file to iOS Simulator. Then trusting it by Going to Settings app -> General -> About -> Certificate Trust Settings.

enter image description here

Or You can install and trust the certificate by using simctl CLI

xcrun simctl keychain booted add-root-cert <your_certificate>

If you prefer automation work, do it with one-click, you might checkout Proxyman, which is a modern version of Charles Proxy.

It also fully supports Xcode 12.5, iOS 14.5 Simulators, Big Sur, and M1 Macbook.

proxyman-ios-14.5-simulator

Disclaimer: I develop Proxyman app. Hope that it helps you.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...