ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.51k stars 181 forks source link

Cannot install Proxyman CA root certificate to iOS 14.5 (beta3) simulator #806

Open kcome opened 3 years ago

kcome commented 3 years ago

Proxyman version? (Ex. Proxyman 1.4.3)

2.18.0

macOS Version? (Ex. mac 10.14)

11.2.2 (20D80)

Steps to reproduce

In "Certificate - Install Certificate on iOS - Simulators..." Complete Step 2 "Install to iOS Simulators"

Expected behavior

iOS Simulator has Proxyman CA root certificate installed simulator_screenshot_65B412E6-196E-4976-8C34-3B8D293576E1

Screenshots (optional)

root ca cert not installed on 14.5 beta 3 simulator. (the same applies beta 2 simulator)

NghiaTranUIT commented 3 years ago

Hey @kcome just wondering: Does it work with non-beta iOS Simulator? (E.g. iOS 14.4) 🤔

NghiaTranUIT commented 3 years ago

Hey @kcome

Steps to reproduce

In "Certificate - Install Certificate on iOS - Simulators..." Complete Step 2 "Install to iOS Simulators"

Look like you forgot to restart the Simulator?

Please try again, and restart the simulator by clicking on the 3rd button. I tested with iOS Simulator 14.4 and it works fine.

I'm downloading the Xcode beta, so I can test your beta simulator 👍

Screen Shot 2021-03-05 at 08 29 10 Screen Shot 2021-03-05 at 08 28 56
kcome commented 3 years ago

@NghiaTranUIT , thanks for your timely reply. I did restart simulator, and the simulator still doesn't have the root CA cert. I also have 14.4 simulator, it works fine. Actually the screenshot I sent was taken from 14.4 simulator.

NghiaTranUIT commented 3 years ago

@kcome please open the iOS Simulator and run this CLI on your Terminal app

xcrun simctl keychain booted add-root-cert ~/.proxyman/proxyman-ca.pem

It will add and trust the certificate

I will improve the Simulator in the next release #807

NghiaTranUIT commented 3 years ago

I tested on iOS 14.4, and one great thing is that I don't need to restart the simulator 😄

NghiaTranUIT commented 3 years ago

@kcome Confirmed that iOS 14.5 beta doesn't work if I install the certificate by using the Proxyman app.

However, it works fine if I execute the above script 👍 I'm fixing it now

Screen Shot 2021-03-05 at 09 12 24
kcome commented 3 years ago

The command works well. Thanks @NghiaTranUIT :)

NghiaTranUIT commented 3 years ago

Hey @kcome I've fixed your bug by using simctl. Let check out this beta build https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.18.0_Better_iOS_Simulator_With_simctl.dmg 👍

kcome commented 3 years ago

@NghiaTranUIT This version's in-app root CA cert installation works very well, just like the production version works on 14.4 simulator. Thanks again for your help. This issue could be closed now.

NghiaTranUIT commented 3 years ago

Glad to know it works 😄