On Sun, Jul 6, 2008 at 5:04 AM, Lucito07 <[EMAIL PROTECTED]> wrote: [..] > can connect to a secure server using ssl, send a string of text, wait for a > response and returns with that response. I know that with OpenSSL you can > connect to the server using 'openssl s_client -connect > remote.host:remote.port', but I would need to send the data and return with > the response from a single command. Is that possible with OpenSSL directly, > or is there a simple client that can do that?
Hm, this should be possible straight out of the box, by feeding the input to s_client through redirection so you'd get an EOF on stdin in there once the line is fetched. What I mean is this: run echo "line to be sent to server" | s_client -host example/com -port 443 and the server's response should appear on stdout, while the OpenSSL s_client app will terminate once that initial line is sent and the server has sent a response and closed the connection. (s_client can also be compiled as a separate binary) Haven't tested this recently but I seem to recall that worked for me once. Just make sure your command doesn't start with a capital 'Q'. ;-) -- Met vriendelijke groeten / Best regards, Ger Hobbelt -------------------------------------------------- web: http://www.hobbelt.com/ http://www.hebbut.net/ mail: [EMAIL PROTECTED] mobile: +31-6-11 120 978 -------------------------------------------------- ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]