Re:The spiped secure pipe daemon
by cperciva on Monday July 04, 2011 @05:12PM
(#2727893)
Yes, for a sufficiently weak definition of "equivalent". spiped doesn't use OpenSSL and doesn't need to fork off separata processes for each connection, for instance.
# smtp server
socat OPENSSL-LISTEN:8025,reuseaddr,fork,cert=$CERT,key=$KEY,cafile=$CAFILE TCP:127.0.0.1:25
# smtp client
socat TCP-LISTEN:25,reuseaddr,fork OPENSSL-CONNECT:$SERVERNAME:8025,cert=$CERT,key=$KEY,cafile=$CAFILE