Skip to content

>= 0.8.x JDBC Driver cannot connect Clickhouse which has a external proxy port(chproxy--> https chproxy port) #2819

Closed

Description

@alin50lulin-gif

We have one clickhouse which have a proxy https port above. Yes ,TLS abililty actually is provided by chproxy. Following the clickhouse-server's version, we upgraded the version of JDBC Driver. And then,we found the issue:

First,we used DBeaver 23.1.5 and JDBC Driver(0.9.4) to connect (jdbc:clickhouse://ip:443/databse?ssl=true&sslmode=none)
We got the error: unable to find valid certification path to requested target
Image

I think the reason of this error is the stricter ssl-connect via JDBC Driver?

Secondly, we used DBeaver 23.1.5 and JDBC Driver(0.9.8) to connect (jdbc:clickhouse://ip:443/databse?ssl=true&sslmode=none)
We got the error: Unknown and unmapped config properties: [sslmode]
So i remove the sslmode.(jdbc:clickhouse://ip:443/databse?ssl=true)
Still error "unable to find valid certification path to requested target"
Maybe some parameter can control?

Image

Thirdly, we used DBeaver 23.1.5 and JDBC Driver(0.8.3) to connect (jdbc:clickhouse://ip:443/databse?ssl=true&sslmode=none)
We got the error: Cannot invoke "java.net.Socket.setSoTimeout(int)" because "sock" is null
Image

Finally,we used DBeaver 23.1.5 and JDBC Driver(0.7.2) to connect (jdbc:clickhouse://ip:443/databse?ssl=true&sslmode=none)
it's ok.
Image

the parameter "sslmode" seems no longer exists in 0.9.8

Activity

  1. chernser commented on Apr 2, 2026

    @chernser
    Contributor

    Good day, @alin50lulin-gif !

    Thank you for reporting the issue! sslmode was not properly implemented in V1 and we will return it in V2
    Here is tracking issue #2309
    Implementation should be ready in next or next next release.

    Would you please describe the network path for the application and what kind of certificates do you have?
    We plan to support different scenarios but I see may be we missing something with proxy.

    Thanks!

  2. added
    client
    connectivity
    on Apr 2, 2026
  3. added this to the 0.9.9 milestone on Apr 2, 2026
  4. alin50lulin-gif commented on Apr 14, 2026

    @alin50lulin-gif
    Author

    We use chproxy(https://www.chproxy.org/) as a proxy and load balancer for ClickHouse.
    Chproxy may accept requests over HTTP and HTTPS protocols. HTTPS must be configured with custom certificate or with automated certificates. In fact ,we use Self-signed custom certificate and SSL is terminated at the Proxy ingress(Only Chproxy open SSL).

    The whole link like this
    DBeaver --> Chproxy(https) --> Clickhouse cluster(http)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclientconnectivity

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions