From 090e39b976219faa294e2a7d67494ebb6d30f146 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 19 Nov 2024 18:57:28 +0200 Subject: [PATCH] draft manual certificate validation --- src/app/browser/window/tab/item/page.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index 0dc1f5c8..e8d0c336 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -434,6 +434,7 @@ impl Page { let tls_connection = TlsClientConnection::new(&connection, None::<&SocketConnectable>).unwrap(); // @TODO handle tls_connection.set_certificate(&certificate); + tls_connection.connect_accept_certificate(move |_, _, _| true); // @TODO manual validation tls_connection.upcast::() } else { connection.upcast::()