App deployment issues with eight Qiniu storage solutions ios7.1

Source: Internet
Author: User

App deployment issues with eight Qiniu storage solutions ios7.1

A. Descriptive description of the problem

The app that finished developing the iOS version number. The. ipa file and. plist files need to be packaged and uploaded for user download and installation online. User installation process Simple descriptive narratives such as the following:

First, you get the address of the download. plist by using Safari or scanning QR code from your mobile browser.

Then the browser will take the initiative to jump to this address, download, read. plist. (The address of the user jump is. plist. This process obviously uses the HTTP protocol to download the. plist file. Finally, the iphone is configured in the. plist file by reading the. IPA. To install the. IPA file, complete the iOS version number app.

Example. Site home page, download the. plist Code:

<ahref= "Itms-services://?action=download-manifest&url=http://www.ekwing.com/ekwing.plist" class= " Mobile-ios "></a>

But. Apple started from ios7.1, the user installs the app, need to use the HTTPS protocol, to download the plist file. And that's it. In the first step of installing the app, download the. plist file. Need to use HTTPS protocol.

The HTTPS protocol is for example the following:

This does not describe the HTTPS protocol specifically. The trust inheritance for HTTPS is based on a certificate authority that is preinstalled in the browser (such as VeriSign, Microsoft, and so on) (meaning "I trust the certification authority to tell me that I should trust").

So. An HTTPS connection to a site can be trusted, if and only if :

1. Users believe that their browser has correctly implemented HTTPS and installed the correct certificate authority;

2. The user trusts that the certification authority trusts only legitimate sites.

3. The site visited provides a valid certificate, meaning that it is issued by a trusted certification authority (most browsers warn of invalid certificates).

4. The certificate correctly validates the visited site (e.g.. The interview with Https://example was received to "Example Inc". Rather than the certificates of other organizations);

5. Or the relevant node on the Internet is trustworthy, or the user believes that the encryption layer (TLS or SSL) of this agreement cannot be compromised by the listener.

A simple description that users use HTTPS to download. plist files.

You need the site to support the HTTPS protocol.

Supports HTTPS protocol. In addition to the server to do some configuration, you also need to apply for a data signing certificate.

This signing certificate is issued by the issuing authority.

You cannot configure a build yourself. It takes a while to apply for a signing certificate.

Our goal is simply to allow our app to be downloaded and installed by the user.

Two Problem analysis

To solve this problem, there are 2 methods:

1. Configure the HTTPS service on your own site service, and purchase a digital signing certificate to ensure that each type and its different version number of the browser can be installed by the certification authority. The data signing certificate that we purchased. The time overhead is about 7 days.

2. Host the app file on a third-party server that supports the HTTPS protocol.

Three Solve this problem

Use seven cow cloud storage to solve problems at high speed and free of charge. Only need to register an account with http://www.qiniu.com/.

And then. The domain name of the HTTPS protocol can be opened. Finally, upload the. plist and. IPA files to the seven cow cloud storage. Operation Process. Very easy.

Just a few points to note:

1. Open a domain name for an HTTP protocol. and a domain name for an HTTPS protocol.

Such as. The suffix name is. qiniudn.com is the domain name that supports the HTTP protocol.

The suffix name is. qbox.me is the domain name that supports the HTTPS protocol. Upload. plist,. IPA to seven Cow cloud storage.

2. Change the address of the download. plist file and change the contents of the. plist file.

Home page, download. plist address to the download link address that supports the HTTPS protocol (the domain name suffix is. qbox.me) on the seven Cow cloud storage.

<ahref= "Itms-services://?action=download-manifest&url=https://dn-ekwing.qbox.me/ekwing.plist" class= " Mobile-ios "></a>

3. In the. plist file content: IPA, change the support HTTP protocol on the Seven Cow cloud storage (suffix is. qiniudn.com)

<string>http://ekwing.qiniudn.com/ekwing.ipa</string>

4. Summary,. plist for download with HTTPS protocol. The. IPA download is available with the HTTP protocol. After the change, you can apply IOS6, iOS7, ios7.1 to test.

Four. Thanks to the seven Qiniu storage

Thanks to seven KN storage for free service.

It's just that. Now the chain of anti-theft is not available.

Hope can add anti-theft chain function.

Five. Install the app for ios7.1. Errors that need to be prompted with the HTTPS protocol

Unable to install application because the certificate is invalid

<warning>:[error]: Cannot load Non-https manifest url:http://192.168.1.22/ekwing.plist

<warning>:could not load download manifest with underlying error:errordomain=sserrordomain code=128 " Unable to connect "userinfo=0x1669d990 {nslocalizeddescription= cannot connect }

< Warning >: Nsurlconnection/cfurlconnection HTTP loadfailed (Kcfstreamerrordomainssl,-9813)

< Warning >: Could not load download manifest withunderlying error:error domain=nsurlerrordomain code=-1202 "Cannot connect to store" U Serinfo=0x166bc640{nslocalizeddescription= cannot connect to the store, nslocalizedrecoverysuggestion= you still want to connect to this server? , nslocalizedfailurereason= cannot establish a secure connection. Please check the date and time setting. , NSERRORFAILINGURLSTRINGKEY=HTTPS://192.168.1.22/EKWING.PLIST,NSUNDERLYINGERROR=0X165B37E0 "The certificate for this server is not valid.

You may be connecting to a server that is disguised as "192.168.1.22", which threatens the security of your confidential information.

", nsurlerrorfailingurlpeertrusterrorkey=<sectrustref:0x166b83e0>, Nserrorfailingurlkey=https://192.168.1.22/ekwing.plist}


Reproduced. Please indicate the original address http://blog.csdn.net/longxibendi/article/details/37601747

Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

App deployment issues with eight Qiniu storage solutions ios7.1

Related Article

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.