Skip to content

Commit

Permalink
fix: rusttls default provider
Browse files Browse the repository at this point in the history
Signed-off-by: Martichou <m@rtin.fyi>
  • Loading branch information
Martichou committed Sep 22, 2024
1 parent 4cf50c0 commit 893572e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,13 @@ pub fn get_ssl_builder(key: &str, cert: &str) -> Result<ServerConfig, ApiError>
.collect();

// Return the ServerConfig to be used
Ok(ServerConfig::builder()
.with_no_client_auth()
.with_single_cert(cert_chain, key)?)
Ok(
ServerConfig::builder_with_provider(rustls::crypto::aws_lc_rs::default_provider().into())
.with_safe_default_protocol_versions()
.unwrap()
.with_no_client_auth()
.with_single_cert(cert_chain, key)?,
)
}

/// Get the SessionMiddleware with configured Cookie settings
Expand Down

0 comments on commit 893572e

Please sign in to comment.