Allow for Silent Install of Wifi Profile - #837
Conversation
The result of GetCloudConfiguration is a nested map with single key CloudConfiguration. The IsSupervised key is contained inside this nested map. This was causing supervised devices to report being unsupervised.
The wifi command did not allow specifying a p12 certificate with a password, meaning that the supervised silent install path would not work. Add p12file and p12password options to wifi command. Should the device in question be supervised and a p12file + password is given, add the wifi profile with AddProfileSupervised to silently install.
|
/test-devices |
|
❌ Real-device tests failed — see run. |
|
From what I can tell, the failing tests are unrelated to changes in these commits. Those being: and |
|
You're right, @outcast36 — those two are unrelated to your change. Both Thanks for digging into it 🙏 — I'll follow up with a couple of tiny review notes on the code itself shortly. |
|
Thanks again @outcast36 — the security side of this is solid (reuses the vetted 1.
|
The
ios wificommand would previously only install the generated profile as if the device were unsupervised. Additionally, even if this was used with a supervised device, the check for supervision would always fail.Updates wifi command to take a
--p12fileand a--p12passwordsimilar to theios profile addcommand. This allows for supervised devices to silently accept the profile.Proposed wifi command structure:
ios wifi --ssid=my_ssid --password=my_password --enc-type=my_encryption_type --p12file=certificate.p12 --p12password=aTested with an iPhone 16 running iOS 26.2.1 on Fedora 39. Supervision was setup using
ios prepare