From 0fb03f5815932334961ab579811968a051f5aa40 Mon Sep 17 00:00:00 2001 From: Galileo <46945263+641i130@users.noreply.github.com> Date: Tue, 31 Jan 2023 00:12:20 -0600 Subject: [PATCH] before pfx --- .gitignore | 2 ++ src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8f96d6f..d5b1bcf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ /target Cargo.lock *.pem +*.crt +*.key \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 4b8e997..c874c10 100755 --- a/src/main.rs +++ b/src/main.rs @@ -85,9 +85,9 @@ async fn main() -> std::io::Result<()> { println!("Starting!!!"); // Load key files let cert_file = &mut BufReader::new( - File::open("cert.pem").unwrap()); + File::open("out_server.crt").unwrap()); let key_file = &mut BufReader::new( - File::open("key.pem").unwrap()); + File::open("rootCA.key").unwrap()); // Parse the certificate and set it in the configuration let cert_chain = certs(cert_file).unwrap();