-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS: Enable "supervision mode" automatically #81
Comments
Using https://github.com/PeculiarVentures/PKI.js, I can generate the X.509 certificate for identification and its private key. However, to save them a common format is the PKCS#12 key store format, which is also used by https://github.com/danielpaulus/go-ios to install profiles. This format is apparently pretty hard to generate on nodejs, because the node implementation of webcrypto doesn’t support the ciphers (or not in the same way as the browsers smh, I am not sure) which are used by openssl (and therefore otherwise the only supported ciphers). In their examples, https://github.com/PeculiarVentures/PKI.js need quite a lot of custom code, to get PKCS#12 going on nodejs: https://github.com/PeculiarVentures/PKI.js/blob/469c403d102ee5149e8eb9ad19754c9696ed7c55/examples/NodePKCS12Example/NodeEngine.ts This is a security nightmare. |
Is that possible? :o |
I am thinking of trying https://github.com/digitalbazaar/forge, which is a native js implementation of TLS instead of the webcrypto API https://github.com/PeculiarVentures/PKI.js is relying on. I am not sure how much of a security trade of this really is, but since we are basically installing a backdoor on peoples devices, I guess we should at least secure it properly? Then again, PKCS#12 seems to be an extremely badly implemented standard, even in openSSL itself, and using https://github.com/digitalbazaar/forge might be even better security. |
Yes. |
On my iOS 15 device, If I just do
I can only connect via SSH after I do "Launch Daemons" in the palera1n app. |
That doesn't happen with |
Same thing on iOS 16. Here, the SSH session even stays intact with |
So, if I enable the await ios.ensureDevice();
await ios.installCertificateAuthority(caCertPath!); On iOS 15, this fails:
On iOS 16, it hangs. |
I cannot reproduce this on either my iOS 15 or 16 devices. What version of palera1n are you using?
This is also not true. This only restarts the |
I'm on 1.4.2, the latest version of the legacy branch. |
I am not using legacy anymore. Can you test jailbreaking with |
I've now wasted an hour trying to get that to work, unsuccessfully. I don't know what else to try. |
In #44, I investigated how the "supervision mode" can be used to install root CAs without interaction. I'd like to implement this in appstraction as an internal iOS function. In order for that, we need to:
SupervisorHostCertificate
.CloudConfigurationDetails.plist
The text was updated successfully, but these errors were encountered: