in reply to How to store the openssl's SSL structure in perl Net::SSLeay

What you want is just not possible. The openssl SSL structure lives in the openssl library and only an integer (likely, a pointer to the C structure) is exported to Perl.

I wonder why you want to store the SSL structure in a file? A socket connection does usually not survive if the program that created it exits. You will have to recreate the connection every time your program runs.

  • Comment on Re: How to store the openssl's SSL structure in perl Net::SSLeay

Replies are listed 'Best First'.
Re^2: How to store the openssl's SSL structure in perl Net::SSLeay
by fwingx (Novice) on Aug 07, 2013 at 07:42 UTC
    Yes, every time my program runs, one socket connection is create. But for thie new socket connection, I want to use one existent session id for the ssl layer. And then the ssl session reuse function will work.

      That's not possible.

        Ok, thanks for your reply. For my question, or if there are other ways to do that. How to do the ssl session reuse in client side?