Add an interface to enable validation of certificate chains

Adding an interface to enable validation of a chain of certificates. This is useful for WP-680 when validating widget certificates.

Jira issue: WP-680