Skip to content

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

@alin50lulin-gif

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions