before pfx
This commit is contained in:
parent
aaf8e90b57
commit
0fb03f5815
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
/target
|
/target
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
*.pem
|
*.pem
|
||||||
|
*.crt
|
||||||
|
*.key
|
@ -85,9 +85,9 @@ async fn main() -> std::io::Result<()> {
|
|||||||
println!("Starting!!!");
|
println!("Starting!!!");
|
||||||
// Load key files
|
// Load key files
|
||||||
let cert_file = &mut BufReader::new(
|
let cert_file = &mut BufReader::new(
|
||||||
File::open("cert.pem").unwrap());
|
File::open("out_server.crt").unwrap());
|
||||||
let key_file = &mut BufReader::new(
|
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
|
// Parse the certificate and set it in the configuration
|
||||||
let cert_chain = certs(cert_file).unwrap();
|
let cert_chain = certs(cert_file).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user