before pfx

This commit is contained in:
Galileo 2023-01-31 00:12:20 -06:00
parent aaf8e90b57
commit 0fb03f5815
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
/target
Cargo.lock
*.pem
*.crt
*.key

View File

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