<h4>Pre-Submission Checklist</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Commit message has the format required by CONTRIBUTING guide</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Commits are split per component (core, individual modules, libs, utils, ...)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Each component has a single commit (if not, squash them into one commit)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> No commits to README files for modules (changes must be done to docbook files<br>
in <code>doc/</code> subfolder, the README file is autogenerated)</li>
</ul>
<h4>Type Of Change</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Small bug fix (non-breaking change which fixes an issue)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> New feature (non-breaking change which adds new functionality)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Breaking change (fix or feature that would change existing functionality)</li>
</ul>
<h4>Checklist:</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> PR should be backported to stable branches</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Tested changes locally</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Related to issue #XXXX (replace XXXX with an open issue number)</li>
</ul>
<h4>Description</h4>
<p>Wireshark project allows embedding session encryption keys into PCAP files. So it allows parsing encrypted packets as it was unencrypted.<br>
<a href="https://blog.didierstevens.com/2021/01/11/decrypting-tls-streams-with-wireshark-part-3/" rel="nofollow">More info</a><br>
I prepared a change that allows export session encryption keys.<br>
Please review PR. If ok, then I add commits with DocBook info.</p>
<p>Kyys may be emeberd using command</p>
<div class="snippet-clipboard-content position-relative" data-snippet-clipboard-copy-content="editcap --inject-secrets tls,/var/lib/kamailio/session_keylog encrypted.pcap with_keys.pcapng
"><pre><code>editcap --inject-secrets tls,/var/lib/kamailio/session_keylog encrypted.pcap with_keys.pcapng
</code></pre></div>
<p>As prototype used<br>
<a href="https://github.com/openssl/openssl/blob/master/apps/lib/s_cb.c#L1480-L1525">https://github.com/openssl/openssl/blob/master/apps/lib/s_cb.c#L1480-L1525</a></p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/kamailio/kamailio/pull/2785'>https://github.com/kamailio/kamailio/pull/2785</a></p>
<h4>Commit Summary</h4>
<ul>
<li>tls: added new session_keylog_enable and session_keylog_filename configuration params</li>
<li>tls: first interation of session key logger</li>
<li>tls: added logs output</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/2785/files#diff-7bf269356ef5fdc9acc5fe5186de82a1f1691a9bf8412b769eb4a6b9679bd10c">src/modules/tls/tls_cfg.c</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/2785/files#diff-9815ce714833ca1a71e6ab35628204ae1d4a4987c7b161d7735a3e8b533d26aa">src/modules/tls/tls_cfg.h</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/2785/files#diff-1eb370ca129d2e4f5d7919516ee02095d4faab37c720ecb7237974b616482495">src/modules/tls/tls_init.c</a>
(79)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/2785/files#diff-c03519384ca99bf5ff538e4028e4a83c267e28b6f4b53718043055dc35bbc77e">src/modules/tls/tls_init.h</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/2785/files#diff-f953132c4bc4209d99868383261e058c920e0c5fbf429cf8364346b204173e69">src/modules/tls/tls_mod.c</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/2785/files#diff-05e25819cb0cb526f1c55766ec844d26a11bc49a1d59a106b7d8e78574cc600c">src/modules/tls/tls_rpc.c</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/2785/files#diff-6942b257af79dcb2be5a6df5cf7935833e08fcc93bf4222d18e563dbc2b6c886">src/modules/tls/tls_server.c</a>
(1)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/kamailio/kamailio/pull/2785.patch'>https://github.com/kamailio/kamailio/pull/2785.patch</a></li>
<li><a href='https://github.com/kamailio/kamailio/pull/2785.diff'>https://github.com/kamailio/kamailio/pull/2785.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2785">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMPIBFVXXXXNFYEOODTT4YOHANCNFSM47BQRZIA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLF4VZ5QOPOVX4IY5TTT4YOHA5CNFSM47BQRZIKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NZUNO4Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2785",
"url": "https://github.com/kamailio/kamailio/pull/2785",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>