开发者

iPhone SDK 4.0: Get publicKey and privateKey from a certificate / identity profile stored in KeyChain

开发者 https://www.devze.com 2023-01-08 02:30 出处:网络
I am trying to get the public and private Key from a certificate which i have already installed on the iPhone. (It is shown unter Settings -> General -> Profiles)

I am trying to get the public and private Key from a certificate which i have already installed on the iPhone. (It is shown unter Settings -> General -> Profiles)

I need this keys for encryption sensitive data. (RSA Algorit开发者_运维技巧hm)

Up to now i have found no way to get access to the keys. Is it even possible ?

If not: What is the best possible way to realize my problem otherwise ?

Thank you for all helpful answers.


1.) You can't get the private key of the profile for the simple reason, that your private key is not stored in the profile, it is only signed with it.

Instead consider getting familiar with the Security.framework. This post should give you a start

0

精彩评论

暂无评论...
验证码 换一张
取 消