Skip to content

Commit 431060c

Browse files
committed
Change cert names
1 parent 7fdc6fd commit 431060c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/target
22
**/*.rs.bk
33
/ssl
4+
/.idea

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Run the server with `cargo run`
66
<br/>
77
In another shell, execute something like
88
```
9-
openssl s_client -key client-key.pem -cert client-cert.pem -CAfile CA-bundle.pem -connect localhost:8443
9+
openssl s_client -key client.key -cert client.crt -CAfile ca.crt -connect localhost:8443
1010
```
1111
and start typing whatever you want
12-
##### Note: You must have the server and client certificates, as well as use an available port for the server
12+
##### Note: You must have the server and client certificates present in ssl/

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ async fn main() {
3131
let mut acceptor = SslAcceptor::mozilla_modern(SslMethod::tls()).unwrap();
3232

3333
acceptor
34-
.set_private_key_file("./ssl/key.pem", SslFiletype::PEM)
34+
.set_private_key_file("./ssl/server.key", SslFiletype::PEM)
3535
.unwrap();
3636
acceptor
37-
.set_certificate_chain_file("./ssl/certs.pem")
37+
.set_certificate_chain_file("./ssl/certs-chain.crt")
3838
.unwrap();
3939
acceptor.check_private_key().unwrap();
4040

0 commit comments

Comments
 (0)