Hacker News new | past | comments | ask | show | jobs | submit login

You can't send a line containing only (make that beginning with) the letter R with s_client because that does a renegotiation.



Try the -nocommands option to disable that bit of braindamage.


That’s pretty interesting but also, how often do you find yourself needing to send a single capital “R” in practice?

I mean, I assume at least once since you know about it. But for me, I don’t think I’ve ever typed a singular capital R anywhere on purpose.


It's actually any line starting with R, like Referrer: yahoo.com. Also any line starting with Q, like Quiet, will disconnect, because you obviously meant Quit.


Oof :/


if only someone were to add tls support to nc(1) or something


You can use socat.

It’s like nc on steroids. TLS, Unix sockets, and just about anything else that involves a digital cable connecting two streams of data.

When in doubt, just add more forking and socat!


Openbsd nc supports tls, note the -c option

http://man.openbsd.org/nc


This thread includes Ted Unangst and juped. They already know.




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

Search: