Skip to content

Instance Method

verifyChain(certificates:policy:)

Verify a chain of certificates against the trusted root certificates.
func verifyChain(certificates: [Certificate], @PolicyBuilder policy: () throws -> some VerifierPolicy = { RFC5280Policy() }) async throws -> CertificateValidationResult

Return Value

A X509.VerificationResult indicating the result of the verification.

Discussion

  • certificates: The certificates to verify.

  • policy: The policy to use for verification.