Instance Property
customCertificateVerifyCallbackWithMetadata
An optional callback that will be called instead of using swift-nio-ssl’s regular certificate verification logic. This is the same as
NIOSSLCustomVerificationCallbackWithMetadata but just marked as Sendable.@preconcurrency var customCertificateVerifyCallbackWithMetadata: (@Sendable ([NIOSSLCertificate], EventLoopPromise<NIOSSLVerificationResultWithMetadata>) -> Void)?
Discussion
In contrast to customCertificateVerifyCallback, this callback allows returning the validate certificate chain, which can then be accessed on the request via Request.peerCertificateChain.
Warning
Mutually exclusive with customCertificateVerifyCallback.