'How to cause zero session ID with OpenSSL s_client?

RFC5246 (TLS 1.2) states:

The ClientHello message includes a variable-length session identifier. If not empty, the value identifies a session between the same client and server whose security parameters the client wishes to reuse.

This field is empty if no session_id is available, or if the client wishes to generate new security parameters.

Is there an easy way to cause s_client to send an empty (zero-length) Session ID in Client Hello?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source