Are you using "expect" ?
[EMAIL PROTECTED] schrieb:
>
> I would like to use the openssl app from a shell script but have found
> things don't go as expected.
> To illustrate what I am trying to do, here is an analogous situation using
> ftp:
>
> file listCmds:
> ?
> quit
>
> file showFtpCommands
> ftp < listCmds
>
> If I run the 'showFtpCommands' file I get a list of the ftp commands.
> I would like to have something using openssl such that I open a connection
> to a web server (say) and then do a GET / HTTP/1.0
>
> (including 2* CRLF) I can do this interactively but would like to automate
> the procedure.
> Eg
> openssl s_client -connect some.web.server:443 < httpRequestFile
>
> Questions I have are:
> 1. Is what I'm trying to do reasonable?
> 2. Can the effect be achieved with openssl as it stands?
> 3. Does openssl/s_client handle stdin in a special way?
--
Ciao ... Heiko Nardmann (Dipl.-Ing.), [EMAIL PROTECTED], Software
Development
secunet (www.secunet.de), Security Networks GmbH - Sicherheit in
Netzwerken
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax : +49 271 48950-50
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]