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.
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.
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.
Disclaimer: I develop Proxyman app. Hope that it helps you.
You can try this (for any new simulator). This process still work with simulator 14.5 and iOS 15
Open charles and configure it as its Proxy. In Charles see that, Proxy-> macOS Proxy is enabled.
From the iDevice, open https://chls.pro/ssl with Safari Browser.
It will ask to download the certificate. Just download it. The certificate will be ready to be installed
Open Settings/General/Profile/Download Profile to install the certificate (Profile link in settings appear only after downloading profile from https://chls.pro/ssl). In iOS 15, the profile can be found under Settings/General/Device Management.
Open Settings/General/About/Certificate Trust Settings to accept the newly installed certificate
No need for a workaround anymore.
Just update Charles to 4.6.2 version.
You can download it from the link above:
https://www.charlesproxy.com/download/
Related
I use the cool feature in Apple Shortcut to request some HTTP REST commands of my Smarthome via my Webserver. I use an apache2 with Lets Encrypt certificates.
This is working fine on my iPad and on my iPhone but unfortunately not on my Apple Watch. I get always: The certificate for this server is invalid. You might connecting to a server that is pretending to be "my.domain.com" which could put your confidential information at risk.
I use the "URL" command in Apple shortcuts with "Network".
I am not sure how to handle this. On all my Apple devices the short cuts are working but not on the Apple Watch. I restarted the watch already.
Thanks
I found the solution on myself.
First I tested the certificate with https://ssllabs.com from Qualys. This site tests the certificate. The result showed that the chainfile will not be downloaded from the apache2. The mistake was that I forgot to add the "SSLCertificateChainFile" to the configuration.
Now my apache2 SSL configuration is rate A+ and the shortcuts are working again with the Apple Watch.
Why the error only occured on the apple watch and not on the other apple devices too I don't know.
Thanks
All,
I am a first time iMac user. Yesterday I installed Flutter.
I used my iCloud ID to create app signing, as I am only interested in experimenting with my iPhone.
By fooling around by trying to fix another issue ("Codesign wants to access key 'access' in your keychain"), I deleted my Xcode certificate. The net result is that I can neither recover nor re-create the certificate.
How can I fix this issue? Many of the StackOverflow related posts don't appear to apply to me as I don't have a developer account and I am not interested in distribution
I am using Mojave 10.14.6, Xcode 11.3.1
I see you commented, but have you actually opened the keychain app? most of the settings for Mac is, once the application is selected, in the upper left of the screen there are preferences and options in the keychain app to delete the keychain, which would allow a fresh start. Keychain can break easily in my experience
Everything seems to be working ...
I decided to check for firmware updates, and the Mac updated from Mojave to Catalina. For reasons I don't understand, but won't complain about, that fixed the certificate issue. The certificate was automatically regenerated/fixed (?) and Xcode stopped complaining
Using Xcode, I then tried to install the app on my iPhone. I had the following error dyld: Library not loaded which apparently was due to the fact that I was using a non-developer ID. The post recommended upgrading the iPhone to iOS 13.4.
Once I did that, however, Xcode (on the laptop) was out of sync with the iPhone. I upgraded Xcode to the latest version
Xcode successfully managed to install the app on my iPhone
Flutter successfully managed to install the app on my iPhone.
#Daniel and #Gordon, thank you for your assistance
i installed xcode(6.3.1 beta) for unity ios app in Yosemite and was working fine when in upgrade to sierra and upgrade to xcode(8.1) xcode was not working and after checking in forms i found that it is OS issue i inatlled xlion .The problem i have another mac with Yosemite and installed the xcode(6.3.1) and was messed up with key chain and other certificated for provision and distribution.Now i totally messed with xcode and distribution in developer account certificates and i was totally working with it for past two days and clueless what to do,How can i clear all developer certificates and key chain certificates from xcode like development and distribution i want to reset all things in xcode and developer account and start from starch and setup again everything .Please what are the things we needed to delete in the developer account and xcode and key chains and setup again to start as a new.
Got to https://developer.apple.com/account/ios/certificate/
then revoke you certificate..
then go to xcode. add a certificate to your project using your account xcode then will create certificate for you.... cheers...
I have installed Charles Root Certificate on my iOS device and my MacBook. However, when i use iPhone proxing by Charles, Charles fails to get HTTPS requests. It shows that
SSLHandshake: Received fatal alert: unknown_ca
My Charles version is 4.0.2 and I have installed certificate on my mac and trusted.
My iOS version is 10.3.1 and I have also installed certificate on iphone.
Can anyone help my on this? Thanks a lot.
iOS 10.3+ introduced a new setting to grant permission for certificates. Since you have the Charles certificate installed, then all you need to do is go to Settings > General > About > Certificate Trust Settings > Toggle the cert to on. Hope this helps you.
My iOS 8 Simulator is not using my proxy settings anymore (I want to debug with Charles). The rest of the system does. The simulator somehow seems to get direct internet access. Have I missed some new setting?
Caution: this is NO dup of How to use Charles Proxy on the Xcode 6 (iOS 8) Simulator?. I´m not trying to use SSL on the simulator in the first place. My simulator doesn´t even start to use the proxy.
Charles:
System:
Restart the simulator between proxy changes
This is correct. Proxy settings that are setup on the host are not necessarily usable by the simulated runtime. If your proxy server requires authentication, you will not be able to use it in the iOS Simulator due to the simulator and host not sharing the same keychain. If you rely on this functionality, please file a radar at http://bugreport.apple.com and request an alternative.
Also note that this is discussed in the Xcode 6 Release Notes:
iOS Simulator does not support the use of network proxy servers that require authentication. (14889876)
Do not forget the HTTPS:
Set Web Proxy (HTTP) and Secure Web Proxy (HTTPS)
Restart the simulator after proxy changes