You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ./chcertauth -clientKeyFile client.key -clientCertFile client.pem -caCertFile ca.pem
[clickhouse-std][opener] [connect] error connecting to x.x.x.x:9440 on connection 1: tls: failed to verify certificate: x509: certificate relies on legacy Common Name field, use SANs instead
2024/05/16 22:22:44 Failed to ping ClickHouse: tls: failed to verify certificate: x509: certificate relies on legacy Common Name field, use SANs instead
I recommend either updating the clickhouse docs with an example that works in Go, or figuring out a good (and secure!) way to ensure that the client certificates generated by clickhouse server documentation works in the Go client as well.
The text was updated successfully, but these errors were encountered:
Generate a client certificate according to the docs on clickhouse's docs:
https://clickhouse.com/docs/en/guides/sre/ssl-user-auth
Use the certificate to authenticate directly with the host:
Go program using this client at the latest version (v2):
https://gist.github.com/abraithwaite/f80a83a88ab75cb31c9b0d39c635215d
The error returned:
CFSSL cert info:
I recommend either updating the clickhouse docs with an example that works in Go, or figuring out a good (and secure!) way to ensure that the client certificates generated by clickhouse server documentation works in the Go client as well.
The text was updated successfully, but these errors were encountered: