I installed library rustls
, with the following parameters:
[dependencies.rustls]
version = "0.23.16"
default-features = false
features = ["ring", "tls12", "std", "log", "logging"]
I chose this configuration because I couldn’t compile aws-lc-rs. I'm using a self-signed TLS certificate created with openssl. When I try to run one of the examples from Github, I get the following error:
Error: Kind(WouldBlock)
I tried to change this example, I found out that in any case the server breaks down due to this error. To check the connection I used:
openssl s_client -connect localhost:4443 -msg
It gives this at the end:
read R BLOCK
<<< ??? [length 0005]
17 03 03 00 26
<<< TLS 1.3 [length 0001]
17
Hello from the serverread:errno=0
>>> ??? [length 0005]
17 03 03 00 13
>>> TLS 1.3 [length 0001]
15
>>> TLS 1.3, Alert [length 0002], warning close_notify
01 00
As I understand it, the server correctly creates the connection and can output data, but breaks down while reading. What's wrong with it? Or am I doing something wrong?