Re: Is there a way to tell s_client to just "send a command" and quit?

"Christian, Mark" <[email protected]> Thu, 25 Sep 2025 22:12:00 +0000
Newsgroups gmane.comp.encryption.openssl.user
Message-ID <[email protected]>
On Thu, 2025-09-25 at 14:25 -0700, Dan Mahoney wrote:
> Hey there folks.
> 
> I'm writing some certificate checks that call s_client to fetch my
> cert, but openssl s_client is blocking.  Is there an easy way to tell
> it "hang up as soon as negotiation settles?"
> 
> Perhaps with a "clean" command like "QUIT" or something (depending on
> the protocol being used).
> 
> This complicates scripting it with a simple shell script or something
> like that, and would be super useful.

Perhaps there is a better way than piping echo to openssl.  If not:

% echo | openssl s_client  -connect ...

Mark

-- 
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/4ff495cf407b582cade0dd5cad2ec015e82baf21.camel%40intel.com.