File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
/target
2
2
** /* .rs.bk
3
3
/ssl
4
+ /.idea
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Run the server with `cargo run`
6
6
<br />
7
7
In another shell, execute something like
8
8
```
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
10
10
```
11
11
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/
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ async fn main() {
31
31
let mut acceptor = SslAcceptor :: mozilla_modern ( SslMethod :: tls ( ) ) . unwrap ( ) ;
32
32
33
33
acceptor
34
- . set_private_key_file ( "./ssl/key.pem " , SslFiletype :: PEM )
34
+ . set_private_key_file ( "./ssl/server.key " , SslFiletype :: PEM )
35
35
. unwrap ( ) ;
36
36
acceptor
37
- . set_certificate_chain_file ( "./ssl/certs.pem " )
37
+ . set_certificate_chain_file ( "./ssl/certs-chain.crt " )
38
38
. unwrap ( ) ;
39
39
acceptor. check_private_key ( ) . unwrap ( ) ;
40
40
You can’t perform that action at this time.
0 commit comments