开发者

Objective-C: How to verify SecCertificateRef with signer's public key?

开发者 https://www.devze.com 2023-02-03 14:47 出处:网络
I\'ve got a certificate B which is signed with A. I have an A\'s public key and I want to verify the certificate if it\'s valid signed by A.

I've got a certificate B which is signed with A. I have an A's public key and I want to verify the certificate if it's valid signed by A. How do I do 开发者_如何学Pythonin Objective-C?

In Java, there's a verify() method in X509Certificate class

http://download.oracle.com/javase/1.4.2/docs/api/java/security/cert/Certificate.html#verify%28java.security.PublicKey%29

0

精彩评论

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