I would like to capture TLS handshakes coming from Android. I was able to install a certificate using this instruction, then I started a server:
openssl s_server -key my_site.key -cert my_site.crt -msg
and I set a proxy in the Android Emulator:
127.0.0.1:4433
but if I browse to any pages on the Android device, I get this result:
ERR_CONNECTION_REFUSED
and this result in OpenSSL:
<<< ??? [length 0005]
43 4f 4e 4e 45
ERROR
24500:error:1408F09B:SSL routines:ssl3_get_record:https proxy request:../
openssl-1.1.1l/ssl/record/ssl3_record.c:325:
shutting down SSL
CONNECTION CLOSED
What am I doing wrong?
openssl s_server
may be the wrong tool. I don't think it is able to handle multiple request concurrently. May be that causes the connection refused message (server is busy with first request and the other are rejected on TCP level)?