开发者

How to generate a certificate signature on the iPhone?

开发者 https://www.devze.com 2022-12-31 18:45 出处:网络
If I had a private certificate file and a string on the iPhone开发者_JAVA技巧, how do I use them to generate a signed string that can be verified by a server with the matching public key? What library

If I had a private certificate file and a string on the iPhone开发者_JAVA技巧, how do I use them to generate a signed string that can be verified by a server with the matching public key? What library should I use on the iPhone?


I would take a look at Certificate, Key, and Trust Services Reference on Apple's website. You can import the PKCS #12–formatted blob with SecPKCS12Import and sign the data with SecKeyRawSign.

0

精彩评论

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