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();