z/OS Communications Server

z/OS Communications Server

z/OS Communications Server

A high-performance foundation for building and deploying networking applications on z/OS

 View Only

SSL/TLS Session Resumption: An Overview

By Adam Adkins posted 11/11/25 01:15 PM

  

SSL/TLS protocols are the backbone of encrypted data exchange on the internet, but establishing a secure session from scratch can be computationally expensive. This is where Session Resumption steps in.

Why Session Resumption Matters

Every time a client initiates a new TLS handshake, it involves several steps: negotiating cipher suites, exchanging keys, and verifying certificates. While this process is essential for security, it introduces latency and consumes CPU cycles, this can be especially problematic for high-traffic servers with limited resources.

Session Resumption allows a client and server to skip parts of the handshake if they've communicated recently. This results in faster connections and reduced overhead.

Currently there are two methods of Session Resumption commonly used.

Two Main Methods of Session Resumption

1. Session ID (Stateful Resumption)

The older of the two, in this method, the server assigns a unique session ID to each client during the initial handshake. It stores the session parameters (like keys and cipher suite) in memory. When the client reconnects and presents the session ID, the server looks it up and resumes the session.

Pros:

·        Simple and widely supported.

Cons:

·        Requires server-side memory management. Not ideal for load-balanced environments unless session data is shared across nodes.

2. Session Tickets (Stateless Resumption)

Introduced in RFC 5077, session tickets shift the burden of session storage to the client. The server encrypts the session state into a ticket and sends it to the client. Upon reconnection, the client presents the ticket, and the server decrypts it to resume the session.

Pros:

·        Scales better in distributed systems. No need for server-side session storage.

Cons:

·        Requires secure key management. If ticket encryption keys rotate or are compromised, resumption fails or becomes a security risk.

Sysplex Session Tickets 

• The sysplex session ticket cache support stores the TLS V1.3 session ticket information available across the sysplex.

• To use the sysplex session ticket cache, each system in the sysplex must be using the same external security manager (for example, z/OS Security Server RACF) and a user ID on one system in the sysplex must represent the same user on all other systems in the sysplex.

• The sysplex session ticket cache must be enabled for each application server that is to use the support. This can be done by defining the GSK_SYSPLEX_SESSION_TICKET_CACHE.

The session information for each new TLS V1.3 session created by the SSL server is then stored in the sysplex session ticket cache and can be referenced by other SSL servers in the sysplex.

• The RACF user associated with the TLS server becomes the owner of the session ticket information. Any TLS server running with the same RACF user can access the session ticket information during TLS V1.3 resumption attempts. TLS servers running with a different RACF user can access the session information if they have at least READ access to the GSK.SIDCACHE.<owner> profile in the FACILITY class


Key Points Specific to z/OS:
For ATTLS, within the TTLSGskAdvancedParms statement.
The following parameters determine if Session ID or Session Tickets (or neither) are used:
For SSLv2  (deprecated, rarely used)
• GSK_V2_SIDCACHE_SIZE  Valid values are in the range 0 - 32 000. (By default, the SSL V2 cache size is 256 entries )
• GSK_V2_SESSION_TIMEOUT
 Specifies the SSL Version 2 session timeout. This is the number of seconds until a session identifier expires.
Valid values are in the range 0 - 100.
• GSK_V3_SIDCACHE_SIZE   The same as GSK_V2_SIDECACHE_SIZE but for SSLv3

TLSv1.3
To allow client session ticket caching, GSK_SESSION_TICKET_CLIENT_ENABLE must be set ON and the GSK_V3_SESSION_TIMEOUT and GSK_V3_SIDCACHE_SIZE settings must be set to values greater than 0.

To allow Server Session ticket Caching, use:
GSK_SESSION_TICKET_SERVER_ENABLE

Conclusion

Whether you're running a high-traffic web service or tuning performance on embedded systems, understanding how resumption works can make a significant difference.

0 comments
44 views

Permalink