public final class RevocationTrustEvaluator : ServerTrustEvaluating
An evaluator which Uses the default and revoked server trust evaluations allowing you to control whether to validate the host provided by the challenge as well as specify the revocation flags for testing for revoked certificates. Apple platforms did not start testing for revoked certificates automatically until iOS 10.1, macOS 10.12 and tvOS 10.1 which is demonstrated in our TLS tests. Applications are encouraged to always validate the host in production environments to guarantee the validity of the server’s certificate chain.
RevocationTrustEvaluatorusing the provided parameters.
Default and host validation will fail when using this evaluator with self-signed certificates. Use
PinnedCertificatesTrustEvaluatorif you need to use self-signed certificates.
public init(performDefaultValidation: Bool = true, validateHost: Bool = true, options: Options = .any)
Determines whether default validation should be performed in addition to evaluating the pinned certificates.
Determines whether or not the evaluator should validate the host, in addition to performing the default evaluation, even if
Optionsto use to check the revocation status of the certificate.
public func evaluate(_ trust: SecTrust, forHost host: String) throws