validateChain

fnValidationReport validateChain(X509Certificate[] chain, TrustStore trustStore, ValidationOptions options = ValidationOptions.init)

Validates a certificate chain against a trust store.

The chain should be ordered from end-entity certificate (index 0) to the certificate closest to the root. The function will attempt to find a trusted root that issued the last certificate in the chain.

Parameters

chainThe certificate chain to validate.
trustStoreThe trust store containing trusted root certificates.
optionsValidation options.

Returns

A ValidationReport with the result and any error details.