fix: use correct webpki roots crate

This commit is contained in:
2026-09-30 00:25:36 -04:00
parent 7b3ac7acbb
commit c6c0849cf5
4 changed files with 12 additions and 120 deletions

View File

@@ -61,6 +61,8 @@ async fn main() {
.init();
tracing::debug!(?app_args, "using");
rustls::crypto::aws_lc_rs::default_provider().install_default().unwrap();
let addr = SocketAddr::new(app_args.ip, app_args.port);
let (tx, rx) = async_channel::unbounded();

View File

@@ -370,10 +370,10 @@ async fn create_chat_completion(
let client = reqwest::Client::builder()
.tls_certs_only(
webpki_roots::TLS_SERVER_ROOTS
webpki_root_certs::TLS_SERVER_ROOT_CERTS
.iter()
.filter_map(|trust_anchor| {
Certificate::from_der(trust_anchor.subject.as_ref()).ok()
.filter_map(|cert| {
Certificate::from_der(&cert).ok()
}),
)
.build()