[openssl-users] Session params output fails via cron

Michael Wojcik Michael.Wojcik at microfocus.com
Thu Jan 3 16:55:56 UTC 2019

> From: openssl-users [mailto:openssl-users-bounces at openssl.org] On Behalf Of
> Jakob Bohm via openssl-users
> Sent: Thursday, January 03, 2019 09:52
> To: openssl-users at openssl.org
> Subject: Re: [openssl-users] Session params output fails via cron
> Maybe cron jobs are run without a valid stdin handle (rather than a
> readable handle at EOF), in which case explicitly adding "</dev/null"
> may be a fix.
> Or maybe there is a bug in how the new TLS1.3 code handles the
> -ign_eof option early in the connection, here again testing with
> "</dev/null" may help figuring out what is happening.

Or if the OP is already redirecting / piping stdin in the cron job command line, something like this:

(cat input.txt; sleep 10) | openssl s_client ...

so that stdin remains open for a while after the actual input is exhausted. Maybe use that in conjunction with -ign_eof (shouldn't hurt, assuming the server closes its end of the connection when it's done).

Michael Wojcik
Distinguished Engineer, Micro Focus

More information about the openssl-users mailing list