Skip to content

Commit 2983dc1

Browse files
authored
fix: enable TLS roots for flight CLI client (apache#6640)
Otherwise you get: ```text Error: setup client Caused by: 0: connect to endpoint 1: transport error 2: invalid peer certificate: UnknownIssuer 3: invalid peer certificate: UnknownIssuer ``` Also see hyperium/tonic#1904 .
1 parent 9f889aa commit 2983dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrow-flight/src/bin/flight_sql_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ async fn setup_client(args: ClientArgs) -> Result<FlightSqlServiceClient<Channel
357357
.keep_alive_while_idle(true);
358358

359359
if args.tls {
360-
let tls_config = ClientTlsConfig::new();
360+
let tls_config = ClientTlsConfig::new().with_enabled_roots();
361361
endpoint = endpoint
362362
.tls_config(tls_config)
363363
.context("create TLS endpoint")?;

0 commit comments

Comments
 (0)