DER证书的问题是非常直截了当。如何才能在osx中使用SecurityFramework API创建x509证书。我想使用由SecKeyGeneratePair生成的publicKey创建证书。创建OS X
我只能在实况迄今为止方法SecCertificateCreateWithData发现,但这已经需要一个X509证书作为一个参数,所以这不会对我做的伎俩。我找不到任何可以从头开始创建证书的方法。另外我对这个话题也不是很有经验,所以很可能我在这里错过了一些东西。任何帮助是极大的赞赏。
而且使用OpenSSL或任何过时的API是不是我的项目的选项。
我已经碰到这个问题Creating x509 certificates programmatically in Objective-C using the Security Framework,但由于这是一岁我不知道,如果有可能,现在可能做到这一点,
谢谢你的回答,但是这似乎没有什么我正在寻找,因为我不希望导入特定的键,但创建一个使用从SecKeyGeneratePair创建的密钥的证书,它已经提供了一个SecKeyRef对象。用公钥或私钥加密某些东西并不是我面临的问题。 – mahagony
其他一些问题,可能会帮助:http://stackoverflow.com/questions/29296657/creating-x509-certificates-programmatically-in-objective-c-using-the-security-fr与例如另一种方式:HTTP:// stackoverflow.com/questions/7715426/what-is-the-reason-of-ksectrustresultrecoverabletrustfailure/8937798#8937798希望它可以帮助... – Destrif