Cocoa Touch 中是否有处理 X.509 证书内容的函数?
我有一个代表 X.509 证书的 SecCertificateRef。 Cocoa Touch 是否有任何用于处理证书内容的库(我找不到任何库),或者我需要自己解析证书的 DER 表示形式? 解析不是问题,但是如果我忽略了某些功能,我希望节省一些时间? 或者您可以推荐一些好的第三方库吗?
I have a SecCertificateRef representing an X.509 certificate. Does Cocoa Touch have any libraries for working with the contents of the certificate (I couldn't find any), or will I need to parse the DER representation of the certificate myself? Parsing is not a problem, however I'd prefer to save some time if I overlooked some functionality? Or perhaps you can recommend any good third party libraries?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你应该研究 openssl - 快速谷歌搜索“openssl with cocoa”显示了非常好的结果,你应该能够相当容易地集成。
You should look into openssl - a quick google search for "openssl with cocoa" shows pretty good results, you should be able to integrate fairly easily.
cocoa touch层中没有API来处理证书。 处理证书的API位于核心服务层。 请在developer.apple.com 中查看证书、密钥和信任服务API
There is no API in cocoa touch layer to process the certificate. APIs to process certificates are in core service layer. plz check in developer.apple.com for Certificate, Key, and Trust Services APIs
(出色的)cocoaasyncsocket 项目包含一个
X509Certificate
类为您完成所有艰苦的工作并返回一个漂亮的NSDictionary
。 我强烈推荐它。The (brilliant) cocoaasyncsocket project includes an
X509Certificate
class that does all the hard work for you and returns a niceNSDictionary
. I highly recommend it.