4 ms·
You can talk plain text protocol through a TLS or SSL-encrypted connection, even interactively. Example: { echo GET / HTTP/1.0 ; echo ; sleep 1 ; } |
by s_gourichon 6y ago
You can talk plain text protocol through a TLS or SSL-encrypted connection, even interactively.
Example:
{ echo GET / HTTP/1.0 ; echo ; sleep 1 ; } | openssl s_client -connect www.google.com:443
Or just :
openssl s_client -connect www.google.com:443
then type interactively GET / HTTP/1.0 then press enter twice.
- tkot 6y agoUsing openssl s_client -ign_eof makes piping text a bit easier because connection won't be closed prematurely (so you don't need to use sleep 1)