简体   繁体   English

可以在itms-services中使用自签名SSL证书

[英]Possible to use self-signed SSL certificate with itms-services

I'm trying to install a beta app to an iOS device and am hosting the manifest.plist and IPA file on HTTPS with a self-signed certificate. 我正在尝试将beta应用程序安装到iOS设备上,并使用自签名证书在HTTPS上托管manifest.plist和IPA文件。 When I hit the itms-services:// link, I get an error of "Cannot connect to <ip address>". 当我点击itms-services://链接时,出现错误“无法连接到<ip地址>”。

itms-services link: itms-services链接:

itms-services://?action=download-manifest&url=https://10.0.1.2:1338/ipa/manifest.plist

plist: plist中:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>items</key>
    <array>
        <dict>
            <key>assets</key>
            <array>
                <dict>
                    <key>kind</key>
                    <string>software-package</string>
                    <key>url</key>
                    <string>https://10.0.1.2:1338/ipa/test.ipa</string>
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
                <string>com.company.test</string>
                <key>bundle-version</key>
                <string>1.0</string>
                <key>kind</key>
                <string>software</string>
                <key>title</key>
                <string>test</string>
            </dict>
        </dict>
    </array>
</dict>
</plist>

Try adding your certificate to the trusted ones (probably, easiest thing to do is to mail a cer file to device and open it from standard mail app to install). 尝试将您的证书添加到受信任的证书中(可能最简单的方法是将cer文件邮寄到设备,然后从标准邮件应用程序打开它以进行安装)。

Another thing you need to make sure is that your server supports TLS 1.2 and Forward Secrecy. 您需要确保的另一件事是您的服务器支持TLS 1.2和Forward Secrecy。

You can use nscurl --ats-diagnostics https://example.com/app.ipa to check if everything done right. 您可以使用nscurl --ats-diagnostics https://example.com/app.ipa检查所有操作是否正确。

Its possible: 这是可能的:

  1. Create the certificate file (export as DER encode X.509) 创建证书文件(导出为DER编码X.509)
  2. Access file from device via HTTP (like the manifest.plist in your example) 通过HTTP从设备访问文件(例如您示例中的manifest.plist)
  3. Agree to install it in device 同意将其安装在设备中
  4. Turn it on: https://support.apple.com/en-au/HT204477 打开它: https : //support.apple.com/zh-cn/HT204477

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在iPhone应用程序中使用自签名的SSL证书 - Use a self-signed ssl certificate in an iphone app 是否可以创建自签名 ssl 证书来避免应用程序代码中的“挑战”? - Is it possible to create the self-signed ssl certificate which will avoid the "challenge" in the application code? 是否可以在iPhone应用程序中加载带有自签名安全证书的SSL加密网站? - Is it possible to load an SSL-encrypted website with a self-signed security certificate in an iPhone application? 使用Trigger.io开发时如何使用自签名SSL证书? - How to use a self-signed SSL certificate when developing with Trigger.io? 我可以使用自签名SSL证书服务器通过空中部署企业应用程序吗? - Can I use self-signed SSL certificate server to deploy Enterprise app over air? iOS使用自签名TLS / SSL证书连接不起作用 - iOS connect with self-signed TLS/SSL certificate not working 来自iOS App的自签名SSL证书信任 - Self-Signed SSL Certificate Trust from iOS App AFNetworking 2.2使用自签名证书进行SSL固定 - AFNetworking 2.2 SSL pinning with self-signed certificate iOS App 不喜欢自签名 SSL 证书 - iOS App does not like self-signed SSL certificate 使用AFNetworking 2.3.1的自签名SSL证书 - self-signed SSL certificate using AFNetworking 2.3.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM