[英]How to install self signed certificate in iOS 10
It appears that Apple has removed the ability to trust SSL certificates that are self-signed in iOS 10. Apple似乎已经删除了信任在iOS 10中自签名的SSL证书的功能。
I created my own self-signed certificate and have a local web server that signed with my certificate. 我创建了自己的自签名证书,并拥有一个使用我的证书签名的本地Web服务器。 I must install my certificate in iOS for testing locally as I have developed an iOS application that needs to trust my certificate. 我必须在iOS上安装我的证书才能在本地进行测试,因为我开发了一个需要信任我的证书的iOS应用程序。
How can I install my self-signed certificate? 如何安装自签名证书?
Good news, they haven't. 好消息,他们没有。 If you just need this for development purposes, which it sounds like you do (and you shouldn't be using self-signed certificates in production anyway), you can install the self-signed certificate on your iOS devices manually. 如果你只是需要这个用于开发目的,听起来就像你那样(并且你不应该在生产中使用自签名证书),你可以手动在iOS设备上安装自签名证书。 Following the equivalent FAQ for my iOS Web Bluetooth browser app: 遵循我的iOS Web蓝牙浏览器应用程序的等效常见问题 :
/CN “Common Name”
for your local server, eg mycomputer.local
. 确保它具有本地服务器的正确/CN “Common Name”
,例如mycomputer.local
。 General -> Profile -> <Common Name>
. 您现在应该通过转到设置应用程序然后General -> Profile -> <Common Name>
来验证它是否已安装。 The Profile menu probably won't be there at all until you've installed the first certificate. 在安装第一个证书之前,“配置文件”菜单可能根本不存在。 The certificate should be marked Verified (it was verified by you when you installed it). 证书应标记为已验证(安装时已经过验证)。 The installation of own root certificates changed at some point (maybe somebody can confirm, if it was at iOS 11). 自己的根证书的安装在某些时候发生了变化(也许有人可以确认,如果是在iOS 11)。
What you need to do is with your Mac, get Apple Configurator 2 and create a profile containing your certificate. 您需要做的是使用Mac,获取Apple Configurator 2并创建包含证书的配置文件。 The resulting mobile profile file can be installed from Safari or email. 生成的移动配置文件可以从Safari或电子邮件安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.