Problem:
When calling SecTrustEvaluate(), the SecTrustResultType value is kSecTrustResultRecoverableTrustFailure when the certificate is expired.
According to the documentation (https://developer.apple.com/documentation/security/1394363-sectrustevaluate?language=objc )
SecTrustGetTrustResult function to get more information about the results of the trust evaluation."Unless I'm dumb (which is a possibility), according to the documentation for SecTrustGetTrustResult, this will just provide me with the same SecTrustResultType value.
So I have some doubt about the "to get more information" part.
Platform:
macOS, OS X 10.8 or later.
Questions:
- How can you get more information about the result of the trust evaluation?
- How can you check whether this is related to an expired certificate (though code)?