【问题标题】:Dynamically create x509 certificate in iOS在 iOS 中动态创建 x509 证书
【发布时间】:2012-05-16 00:23:50
【问题描述】:

我需要在运行时生成 x509 证书,我做了一些 google 并找到了一些使用证书而不是创建证书的示例。

感谢和问候, S. Murali Krishnan

【问题讨论】:

  • 此证书用于客户端
  • 出于什么目的?在大多数情况下,它不太可能(也不应该)被任何事物信任。

标签: ios ssl certificate x509


【解决方案1】:

我的建议是 compile and static link openssl 与您的 iOS 项目。

然后使用 openssl API (check this example code) 创建您的 x509 证书

【讨论】:

  • 我不应该使用任何像 openssl 这样的第 3 方......以安全的方式。
  • 公钥是公开的。不需要安全的方法。所以你可以通过 HTTP(S) post 发送它。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-03-25
  • 1970-01-01
  • 2021-12-26
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多