A little experience with iOS enterprise app distribution

Source: Internet
Author: User

Recently in the development of an enterprise-class app for the company, to save time and effort to choose a third-party public test hosting, tested to install and use the normal. So the courage to take to give users a demonstration, the results of loved things happened: In the demonstration process appeared in the app can not download the situation ......  lazy is not right, The problem is that it needs to be addressed: publishing an enterprise app requires Safari to parse the. plist file, download and install it via the Itms-services protocol. IPA to idevice. Starting with iOS7.1, the. plist file must be stored under the HTTPS path, and the path requires a trusted certificate. I think of the following three scenarios to solve this problem: scenario one, the. plist file is hosted on HTTPS file hosting servers such as Dropbox, seven cows: Considering the existence of "wall" and distrust of third-party services, programme one pass; programme two, Build the server and use OpenSSL self-signed: You need to install a self-signed certificate on idevice, obviously only for testing; scenario three, build the server and apply for SSL authentication: the best solution.   Looks like the plan three unmistakable, but do not experience the wind and rain, how to see the rainbow ... Leadership requirements must be validated in a test environment to be implemented on a formal server, and our test environment is a local area network and cannot request SSL authentication.   So first use scenario two to verify the feasibility, the server is IIS7. Create a self-signed certificate process using OpenSSL:  because the Mac comes with the OpenSSL command-line tool, open the terminal and enter the command directly.   First step, generate SSL Certificate: OpenSSL genrsa-out iis.key 2048openssl req-new-x509-key iis.key-out iis.cer-days 365-subj/cn=hos Tnameopenssl pkcs12-export-out Iis.pfx-inkey signed.key-in iis.cer The resulting iis.pfx file needs to be imported into IIS Server   Second step, generate CA Certificate: OpenSSL Genrsa-out ca.key 2048openssl req-x509-new-key ca.key-out ca.cer-days 365-subj/cn= "CA" The resulting ca.cer file can be sent by mail attachment to I Device and install;  step three: Create a server certificate: OpenSSL genrsa-out cert.key 2048opensslReq-new-out cert.req-key cert.key-subj/cn=hostnameopenssl x509-req-in cert.req-out cert.cer-cakey  ca.key-c A ca.cer-days 365-cacreateserial-caserial serial final generated cert.cer needs to be installed to the IIS server   Note: Add MIME type support for the. IPA and. plist files to the IIS server application/octet-stream  Add the following link on the download page to enable click-to-install: <a href = "Itms-services://?action=download-manifest&url =.plist file path "> Click install </a>  click on Download to install successfully, implement scenario three on the Publisher, request SSL Certificate:  I am a free SSL certification in STARTSSL application, URL:www.startssl.com   The first step, get the personal Operation Certificate: first register an account, fill in the real valid mailbox, will have the verification code to send to the registration mailbox; After obtaining the verification code, fill in the page and continue, The audit results are sent to the registered mailbox, and if approved, the Personal operations certificate is downloaded according to the prompts in the message. Note: This certificate is your only login Startssl credentials, must be properly kept;  the second step, domain Administrator authentication: After the certificate installed back to STARTSSL, click Authenticate login, select validations Wizard, After selecting domain name validation;continue in type, enter the name of the application for SSL authentication, and after continue, select the domain administrator's mailbox, STARTSSL will send a verification code to the mailbox, after the verification code is filled in continue, Verify that the domain administrator successfully;  The third step, SSL authentication: Next Click Certificates wizard,certificate target Select Web Server ssl;continue and then provide a password for the private key as required. Note that this password will be used when generating the PFX file, continue the private key when prompted, note that the private key will be used when generating the PFX file, and finally need to enter the level two domain name to be bound. Yes, free authentication can only be tied to a two-level domain name.  Fourth step: PFX certificate file get: Enter tool Box, click Create pkcs#12 file, enter the private and private key password, generate the PFX file, import the IIS server can ~ Don't forget to add MIME type support.   NOTE: This certificate is valid for one year and can be logged in and renewed one year later through a personal operation certificate.

A little experience with iOS Enterprise app distribution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.