There are a couple issues in Trino.Client.StatementClientV1 that cause self-signed certificate validation to fail.
- The StatementClientV1 constructor initializes an HTTP client with the handler it defines, but it never actually saves that client to the object (line 149).
- The X509 chain status I observed when attempting to validate a self-signed cert was not an UntrustedRoot (line 140) but rather a PartialChain with the status information, "A certificate chain could not be built to a trusted root authority."
There are a couple issues in Trino.Client.StatementClientV1 that cause self-signed certificate validation to fail.