> From: owner-openssl-us...@openssl.org On Behalf Of Gisle Vanem > Sent: Saturday, 06 July, 2013 07:16
> He could just do a: > echo foo | openssl s_client -connect "uri.com:443" > cert.txt > > This executes in 1 sec here. > What openssl build on what Windows? On my three Windows (XP SP3, Vista SP1, Server2008R2 SP1) the ShiningLight builds of 1.0.0j and 1.0.1c and also my own vc-win32+nasm (static) builds of those versions all hang for echo foo | as I said before. I can't test a lot of old versions, but this section of code in apps/s_client.c doesn't appear to have changed for at least 5 years, and this part of WinAPI definitely hasn't changed in about 15 years. As for the suggestion </dev/null by Rich Salz: that won't even start on windows. The Windows equivalent <NUL: (colon optional but recommended for clarity) hangs the same way; as in Unix it's equivalent to <file_that_is_empty . But this does give me an idea: the OP probably could install cygwin, and a cygwin build of openssl. cygwin tries to emulate Unix on Windows and select() is used commonly enough I expect it works. But cygwin is so big and complicated I don't bother with it myself, so I can't check. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org