Returns the public key for a leaf certificate after it has been evaluated.
- iOS 2.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The trust management object for the certificate that has been evaluated. Use the
Secfunction to create a trust management object.
Trust Create With Certificates(_: _: _:)
The leaf certificate's public key, or
nil if it the public key could not be extracted (this can happen with DSA certificate chains if the parameters in the chain cannot be found).
Sec function before calling this function.
When you call this function, it attempts to return the public key of the leaf certificate, even if the trust evaluation was unsuccessful. Even if the trust evaluation was successful, this function might still return
NULL—for example, if the leaf certificate’s key can’t be extracted for some reason.