User2021
User2021

Reputation: 49

Send TLS shutdown as a client with openssl commandline

I am using openssl commandline as a client to communicate with a server that uses TLS like so:

openssl s_client -connect localhost:xxxx

I want the client to send TLS shutdown to the server with the command line. How can I do this?

Upvotes: 0

Views: 559

Answers (1)

Steffen Ullrich
Steffen Ullrich

Reputation: 123375

A TLS shutdown is send on TLS connection close. There is no way supported in s_client to explicitly trigger a SSL_shutdown but keep the underlying TCP connection open.

A close can for example be triggered by entering "Q" on the input, see CONNECTED COMMANDS in the documentation. See also the comment from dave_thompson_085 for other ways how a close can be triggered.

Upvotes: 1

Related Questions