Skip to content

Commit

Permalink
fix: enable TLS roots for flight CLI client (#6640)
Browse files Browse the repository at this point in the history
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 .
  • Loading branch information
crepererum authored Oct 29, 2024
1 parent 9f889aa commit 2983dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow-flight/src/bin/flight_sql_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ async fn setup_client(args: ClientArgs) -> Result<FlightSqlServiceClient<Channel
.keep_alive_while_idle(true);

if args.tls {
let tls_config = ClientTlsConfig::new();
let tls_config = ClientTlsConfig::new().with_enabled_roots();
endpoint = endpoint
.tls_config(tls_config)
.context("create TLS endpoint")?;
Expand Down

0 comments on commit 2983dc1

Please sign in to comment.