Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人告诉我,可以使用 Safari 将根 CA 证书添加到 iPhone,方法是将证书放在 Web 服务器上并在 Safari 中加载 URL。
是否也可以从 iPhone 应用程序中静默安装根 CA 证书?如果是这样,怎么做?
在某种程度上,每部 iPhone 都有自己的钥匙串。你可以在那里安装它。然后您必须编写自己的代码来验证证书。不能用作其他应用程序的根 CA。你可以看到, NSURLProtectionSpace类参考。核心功能之类的SecIdentity, SecIdentityVerify, SecIdentityAdd...
NSURLProtectionSpace
SecIdentity, SecIdentityVerify, SecIdentityAdd