Install certificate on iOS device via OSX

I am doing automatic certificate testing for an iOS application and want to know how to install a root certificate on a device using a terminal.

The goal is for the entire certificate installation process to be automated without user interaction. It would be perfectly acceptable to do this with Automator if certificate installation can be done through a graphical interface on a Mac.

I looked: iOS: pre-installing the SSL certificate in keychain is programmatic , but it is not applicable because it is done through Objective-C in the application itself. I want to do completely separately from the application.

And I do not believe How to install a developer certificate / private key and preparation profile for iOS development through the command line? applicable because it installs a development certificate on a Mac keychain is not a general certificate for an iOS device.

The answer "this is impossible" with the proof is also quite acceptable.

EDIT 1

At the suggestion of @Rivera, I tried to use the β€œPrepare” function of Configurator, but this is too intrusive: a new version of iOS is installed, the device is unavailable for ~ 10 minutes, user interaction is required, etc. I just want to do one thing: install the certificate.

Further research did not show any CLI features or scripts with the Configurator, apart from some hacks that may or may not be found here .

I sent a ticket with Apple to find out if they have more information.

EDIT 2

Added this line: "It would be perfectly acceptable if it were done through Automator, if the certificate could be installed via the graphical interface on a Mac." to the main question.

+8
ios certificate xcode ipad macos
source share
1 answer

I would look at Apple Configurator to find out if it has CLI / scripting support.

+2
source share

All Articles