Use trust_store instead of ca_path. (#37)

This commit is contained in:
Cecile Thiebaut 2022-09-10 13:32:01 +02:00 committed by GitHub
parent cba8da2d05
commit 62f981fefe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ impl<'a> MqttBackend<'a> {
if !conf.ca_cert.is_empty() {
ssl_opts_b
.ca_path(&conf.ca_cert)
.trust_store(&conf.ca_cert)
.context("Failed to set gateway ca_cert")?;
}