TIL: The #openssl s_client treats any line starting with a capital R as a special "connected command" for renegotiating the session. Took us a while to understand why the #opensmtpd installation we were testing renegotiated every time I entered the RCPT TO:<...> line... 😑
@Wolf480pl socat is for sure nice and has some extremely useful features, but - at least for me - netcat is sufficient most of the time and doesn't require any manpage lookups. ;-)
Both netcat and libre/openssl are installed as part of the default images of most systems. Finding socat preinstalled is pretty rare in comparison.
@karasu dunno, I only remember netcat's -l option, and often need man to tell if it's `-p port` or just `port` (gnu vs bsd netcat).
Also, on most (GNU+)Linux distros I use, there's no concept of "base system" or "preinstalled software". And even if there is a similar concept, it usually doesn't contain netcat (or even dig).
@karasu nc(1) (netcat) on #OpenBSD supports TLS - https://man.openbsd.org/nc#T
https://man.openbsd.org/nc#EXAMPLES