Skip to content

Commit 2f60720

Browse files
added root certificates
1 parent ab91e07 commit 2f60720

File tree

1 file changed

+5
-1
lines changed
  • packages/rs-dapi-client/src/transport

1 file changed

+5
-1
lines changed

packages/rs-dapi-client/src/transport/grpc.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ fn create_channel(
2222
uri: Uri,
2323
settings: Option<&AppliedRequestSettings>,
2424
) -> Result<Channel, dapi_grpc::tonic::transport::Error> {
25-
let mut builder = Channel::builder(uri).tls_config(ClientTlsConfig::new())?;
25+
let mut builder = Channel::builder(uri).tls_config(
26+
ClientTlsConfig::new()
27+
.with_native_roots()
28+
.with_webpki_roots(),
29+
)?;
2630

2731
if let Some(settings) = settings {
2832
if let Some(timeout) = settings.connect_timeout {

0 commit comments

Comments
 (0)