Okey, I am kind of lost right now:
Let see the foolow examples.
First we'll create SSL server using openssl like that:
openssl s_client -reconnect -state -prexit -connect localhost:1234 -cert testpkey.pem
then we make 5 repeatedly connections:
openssl s_client -reconnect -state -prexit -connect localhost:1234 -ce
+rt testpkey.pem -no_ticket
Then on all my 5 requests I've the same session-id and master-key:
Session-ID: 9C2B75807FE8AEB2E1C05B7B34D3F9F0B9394975D23AEA1BCC41F0
+BE1A1578CF
Session-ID-ctx:
Master-Key: 56182F7B8149E11642665147042CC499581786CA6565D5F3FB7C59
+E446E520BB50D3857CA3323E665C9F86A87D3CD45C
If I use no_ticket option on the server, each my request have different Session-ID.
What I understand, is that session caching could set the old session-id or create new one, each time new connection occurs.
But... what I misunderstood is:
- How can I get the session ID from the $CLIENT socket?
- If I enable the session caching, do I renegotiate each time new connection arrives?
- If the session id is different every time, how can I understand that the caching is working? Wireshark? or debug?
Thanks
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.