Add support for server certificate validation.