Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trust Root Certificate in iOS 11 Simulator

I am having trouble getting Charles Proxy to work with my iOS 11 simulator. It appears that I cannot get the simulator to trust the certificate. I go into General -> Settings -> About -> Certificate section and click the button to trust the cert. Then when I exit the settings and come back the switch is reset to untrusted. I can't get the setting to stick. Is anyone else having this issue?

like image 250
Cliff Avatar asked Oct 07 '17 16:10

Cliff


People also ask

How do I add a trusted root certificate to my iPhone?

If you want to turn on SSL/TLS trust for that certificate, go to Settings > General > About > Certificate Trust Settings. Under "Enable full trust for root certificates," turn on trust for the certificate. Apple recommends deploying certificates via Apple Configurator or Mobile Device Management (MDM).

How do I install certificates on iPhone 11?

On your iOS device, go to: http://cert.incommon.org/InCommonRSAStandardAssuranceClientCA.crt. On the Install Profile screen, you will see the "Trusted" certificate file to install. Tap Install. A notice will inform you that installing this profile will change settings on your device; tap "Install Now".

What are trusted root certificates in iOS?

Trusted certificates establish a chain of trust that verifies other certificates signed by the trusted roots — for example, to establish a secure connection to a web server. When IT administrators create Configuration Profiles, these trusted root certificates don't need to be included.


Video Answer


1 Answers

I had this problem too. I'd toggle the checkbox in my iOS Simulator's Settings.app but it wouldn't stay toggled on.

I found that the Charles Proxy certificate was not trusted on my Mac. Trusting it on my Mac, quitting Xcode and iOS Simulator and relaunching fixed my problem.

Open Keychain Access, choose "login" on left hand pane. Right click the Charles Proxy CA entry and select Get Info.

enter image description here

In the screen that pops up, expand Trust, and select "Always Trust".

Quit relaunch Xcode and iOS Simulator and all should be well.

like image 64
awolf Avatar answered Oct 14 '22 21:10

awolf