dpalaitis> We are using s_client to do some automated white box
dpalaitis> testing of our secure server product.  We have a set of
dpalaitis> scripts that hit on our server kind of like this,...

Is that just "kind of" or "exactly"?  Important question, because the
line you showed us is faulty:

dpalaitis> bash% cat dg.txt netscape-4.71-linux | openssl s_client 
dpalaitis>      -connect 10.0.0.100:5150 -cert EntrustCert1.pem
dpalaitis>              -key EntrustKey1.pem < DG01.txt

You see, it's a bit hard to get a stdin with more than one source (one
through redirection and one through the pipe, in your case).  Bash
will (I just checked) give a redirection higher prority than input
coming from a pipe, so you end up feeding only DG01.txt to s_client.

I would suggest the following instead:

        cat DG01.txt dg.txt netscape-4.71-linux | openssl s_client \
                -connect 10.0.0.100:5150 -cert EntrustCert1.pem \
                -key EntrustKey1.pem

However, there's another problem as well.  As soon as EOF is reached,
s_client will shut down the connection and exit *without waiting for
anything*.  So, the transfer of your input gets through so quickly
that the response won't get through before s_client shutdown the
connection...

-- 
Richard Levitte   \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis             -- [EMAIL PROTECTED]
           Member of the OpenSSL development team

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to