Solve ios7.1 App deployment issues with seven cow cloud storage

Source: Internet
Author: User

Solve ios7.1 App deployment issues with seven cow cloud storage

I. Description of the problem

Developed an iOS version of the app. The. ipa file and. plist files need to be packaged and uploaded for user download and installation online. The user installation process is briefly described as follows:

First, you get the address of the download. plist by using Safari or scanning QR code from your mobile browser. Then the browser will automatically 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 installs the. IPA file by reading the. IPA configured in the. plist file to complete the iOS version of the app.

For example, on the homepage of the website, download the. plist Code:

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

However, Apple starts with ios7.1, the user installs the app and needs to use the HTTPS protocol to download the plist file. Also say, in the first step of installing the app, download the. plist file, you need to use the HTTPS protocol. The HTTPS protocol is as follows:

The HTTPS protocol is not described in detail here. 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"). Therefore, an HTTPS connection to a Web 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 websites;

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

4. The certificate correctly validates the visited website (e.g., when visiting Https://example, it 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.

Simply described, the user uses HTTPS to download the. plist file. You need the Web site to support the HTTPS protocol. Support HTTPS protocol, in addition to the server to do some configuration, but also need to request 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 only 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 website service and purchase a digital signature certificate to ensure that each type and its different versions of the browser can install the data signing certificate issued by the certification authority 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 the problem

With seven cow cloud storage, this problem can be solved quickly and free of charge. Just go to http://www.qiniu.com/to register an account. Then, the HTTPS protocol domain name can be opened. Finally, upload the. plist and. IPA files to the seven cow cloud storage. The operation process is very simple. Just note the points:

1. Open an HTTP protocol domain name, and an HTTPS protocol domain name.

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. Modify the address of the download. plist file and modify 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. Change the. plist file contents,. IPA, to seven for the support HTTP protocol on the cloud storage (suffix is. qiniudn.com)

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

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

Four. Thanks to the seven Qiniu storage

Thanks to seven KN storage for free service. However, the current anti-theft chain is not available. Want to be able to add anti-theft chain function.

Five. ios7.1 install app, need to use HTTPS protocol to prompt the error

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= Unable to 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 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}


Reprint, please specify the original address http://blog.csdn.net/longxibendi/article/details/37601747

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.