validateCertificateChain

Helper function to check if a given certificate chain is valid.

NOTE NOTE NOTE: We only check that the certificates in the chain sign each other. We specifically don't check that each certificate is also a CA certificate.

Return

true if valid, false otherwise.

Parameters

certificateChain

the chain to validate.