share session cache between processes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

share session cache between processes

Ning Ke

Can I share session cache between two processes that each create its own
SSL_CONTEXT? The two process then simply call
SSL_CTX_set_session_id_context() passing the same sid_ctx?

The following paragraph in the documentation seems to indicate that this
is not safe. Is this true?

"Sessions are generated within a certain context. When
exporting/importing sessions with i2d_SSL_SESSION/d2i_SSL_SESSION it
would be possible, to re-import a session generated from another context
(e.g. another application), which might lead to malfunctions."

Thank you,
OpenSSL Project                       
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]