在iOS 7.1之后,如果要通过空中部署我们的企业应用程序,则 manifest.plist 文件的URL必须为HTTPS。
例如:
itms-services://?action=download-manifest&url=https://example.com/manifest.plist
在我的服务器中,我使用自签名SSL证书。当我点击iPhone上的URL时,它会显示
Could not connect to <ip-address>
并记录典型的NSUnderlyingError=0x15d37040 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be `<ip-address>`, which could put your confidential information at risk.
因此,我想知道是否可以使用自签名SSL证书?
如果可以,如何解决所遇到的问题?
最佳答案
首先,让用户在其设备上安装自签名SSL证书。或使用免费的经过验证的SSL服务。
您需要让用户安装此文件https://superuser.com/questions/97201/how-to-save-a-remote-server-ssl-certificate-locally-as-a-file
我相信这项服务会提供经过浏览器验证的SSL证书。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 https://www.startssl.com/?app=1