From 794a028d1c187c57c67482368f307eb7f94f5920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Casta=C3=B1o=20Arteaga?= Date: Fri, 20 Feb 2026 13:26:18 +0100 Subject: [PATCH] Install default rustls provider MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergio CastaƱo Arteaga --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index a4da2eb..fbaf305 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,6 +10,7 @@ use octocrab::Octocrab; use rustls::{ ClientConfig, DigitallySignedStruct, Error as RustlsError, SignatureScheme, client::danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier}, + crypto::aws_lc_rs, pki_types::{CertificateDer, ServerName, UnixTime}, }; use tokio::{net::TcpListener, signal}; @@ -46,6 +47,10 @@ struct Args { #[tokio::main] async fn main() -> Result<()> { + // Install a process-wide rustls provider before building any TLS config + let _ = aws_lc_rs::default_provider().install_default(); + + // Parse command line arguments let args = Args::parse(); // Setup configuration