iPhone SDK 4.0:从存储在 KeyChain 中的证书/身份配置文件中获取 publicKey 和 privateKey

发布于 2024-09-10 14:49:11 字数 191 浏览 1 评论 0原文

我正在尝试从已安装在 iPhone 上的证书中获取公钥和私钥。 (它显示在“设置”->“常规”->“配置文件”下)

我需要此密钥来加密敏感数据。 (RSA 算法)

到目前为止,我还没有找到访问密钥的方法。 有可能吗?

如果不是:否则实现我的问题的最佳方法是什么?

感谢您提供所有有用的答案。

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 Algorithm)

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九命猫 2024-09-17 14:49:11

1.) 您无法获取配置文件的私钥,原因很简单,您的私钥不存储在配置文件中,只是用它签名。

相反,请考虑熟悉 Security.framework。这篇帖子应该给你一个开始

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文