Pagina 1 di 1

curiosità openssl s_client & -ign_eof

Inviato: ven 11 ott 2013, 14:50
da ZeroUno
stavo facendo dei test di comunicazioni ssl (https, smtps, imaps ecc) da commandline con openssl ed è venuta fuori una cosa curiosa.
Se scrivo qualsiasi cosa che comincia per R lui mi da RENEGOTIATING. In pratica prende R (solo se maiuscolo) come un comando.

Codice: Seleziona tutto

# openssl s_client
...
RCPT TO:<x>
RENEGOTIATING
...
R
RENEGOTIATING
...

rcpt to:<x>
DATA
From:...
To:...

Ciao,
Roberto
RENEGOTIATING
per risolvere devo aggiungere l'opzione -ign_eof a openssl

dal man di s_client:
-ign_eof
inhibit shutting down the connection when end of file is reached in the input.

ma se scrivo 'R' non sto dando un endoffile

Boh.

Re: curiosità openssl s_client & -ign_eof

Inviato: ven 11 ott 2013, 22:05
da masalapianta
da "man s_client":

CONNECTED COMMANDS
If a connection is established with an SSL server then any data received from the server is displayed and any key presses will be sent to the server. When
used interactively (which means neither -quiet nor -ign_eof have been given), the session will be renegotiated if the line begins with an R, and if the
line begins with a Q or if end of file is reached, the connection will be closed down.