Returns a specific certificate from the certificate chain used to evaluate trust.
- iOS 2.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The index number of the requested certificate. Index numbers start at 0 for the leaf certificate and end at the anchor (or the last certificate if no anchor was found). Use the
Secfunction to get the total number of certificates in the chain.
Trust Get Certificate Count(_:)
A certificate object for the requested certificate.
Sec function before calling this function.