iPhone Simulator自定义CA证书 [英] iPhone Simulator custom CA certificate

查看:101
本文介绍了iPhone Simulator自定义CA证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iphone模拟器上测试一个应用程序,该应用程序使用由我们自己的CA签名的证书连接到服务.我可以在实际设备上通过添加具有CA证书的供应配置文件来做到这一点.我曾以为在标准OSX钥匙串中拥有CA证书会起作用,但那没有用.

I'd like to test an application on the iphone simulator which connects to a service using a certificate which is signed by our own CA. I can do this on the actual device by adding a provisioning profile which has the CA certificate. I had thought that having the CA certificate in the standard OSX keychain would work, but it doesn't.

因此,我可以在没有警告的情况下通过Safari访问该服务,但是在尝试在模拟器中运行内容时出现错误.

So I can access the service via Safari without warning, but I get error when trying to run things in simulator.

推荐答案

加密api无法用于模拟器.我认为苹果公司的某人做出这个决定时正冒着烟,因为我看不到拥有iPhone如何改变密码算法的成果.要使用这些系统进行开发,您将永远需要iphone或ipod touch.

The crypto api's are unavailable to the simulator. I think someone at apple was smoking crack when they made this decision because i fail to see how having an iPhone changes the out come of a cryptographic algorithm. Never the less in order to develop with these systems you'll need an iphone or ipod touch.

这篇关于iPhone Simulator自定义CA证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆