title: Install certificate to iOS device via OSX
body: <p>I'm doing some automated certificate testing for an iOS app and want to know of a way to install a root certificate onto the device by way of the terminal.</p>
  
  <p>The goal is to have this whole certificate install process be automated with no user interaction. It would be totally acceptable to have this done via the Automator if installing the certificate can be done through a GUI on the Mac.</p>
  
  <p>I've looked at:
  <a href="https://stackoverflow.com/questions/5323686/ios-pre-install-ssl-certificate-in-keychain-programmatically/9941559#9941559">iOS: Pre install SSL certificate in keychain - programmatically </a> but it's not applicable because this is being done through Objective-C in the app itself. I want to do completely separately from the app.</p>
  
  <p>And I don't believe <a href="https://stackoverflow.com/questions/4369119/how-to-install-developer-certificate-private-key-and-provisioning-profile-for-ios">How to install developer certificate/private key and provisioning profile for iOS development via command line?</a> is applicable because it's installing the development cert to the Mac's keychain not a generic cert to the iOS device.</p>
  
  <p>An answer of "this is impossible" with proof would be totally acceptable as well.</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>Per the suggestion of @Rivera I attempted to use the Prepare feature of Configurator but it is too intrusive: a new version of iOS is installed, the device is unusable for ~10 minutes, user interaction was required etc. I just want to do one action: install the certificate. </p>
  
  <p>Further research showed no CLI or scripting capabilities with the Configurator aside from some hacks that may or may not work found <a href="http://krypted.com/mac-os-x-server/talking-a-look-under-apple-configurators-hood/" rel="nofollow noreferrer">here</a>. </p>
  
  <p>I've put out a ticket with Apple to see if they've got any more information.</p>
  
  <p><strong>EDIT 2</strong> </p>
  
  <p>Added this line: "It would be totally acceptable to have this done via the Automator if installing the certificate can be done through a GUI on the Mac." to the main question body.</p>