Can I get the modulus or exponent from a SecKeyRef object in Swift?

后端 未结 9 2038
灰色年华
灰色年华 2020-12-05 13:34

In Swift, I created a SecKeyRef object by calling SecTrustCopyPublicKey on some raw X509 certificate data. This is what this SecKeyRef object looks like.

<
9条回答
  •  时光取名叫无心
    2020-12-05 14:37

    Did you think about using SecCertificateCopyData()? The resulting CFData is toll-Free bridged, I think.

    Refer to https://developer.apple.com/library/ios/documentation/Security/Reference/certifkeytrustservices/ to see the relevant documentation of the API.

提交回复
热议问题