Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Using 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)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: