ValidationReport with the result and any error details.validateChain
fn
ValidationReport 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
chain | The certificate chain to validate. |
trustStore | The trust store containing trusted root certificates. |
options | Validation options. |
Returns
A