x509 certificate authentification #1370
Slach
started this conversation in
Feature requests
Replies: 1 comment
-
It's not covered by documentation, but it should work pretty easily with a custom TLS config pass to clickhouse-go/clickhouse_options.go Line 128 in f373529 Something like: caCert, _ := ioutil.ReadFile("ca.crt")
caCertPool := x509.NewCertPool()
caCertPool.AppendCertsFromPEM(caCert)
cert, _ := tls.LoadX509KeyPair("client.crt", "client.key")
opts := clickhouse.Options{
TLS: &tls.Config{
RootCAs: caCertPool,
Certificates: []tls.Certificate{cert},
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is clickhouse-go support https://clickhouse.com/docs/en/operations/external-authenticators/ssl-x509 ?
Beta Was this translation helpful? Give feedback.
All reactions