<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p style="color: #777777;">
<a href="https://gitlab.com/dueno">Daiki Ueno</a>
commented:
</p>
<div style="">
<p dir="auto">GnuTLS is also capable of the <code>SSLKEYLOGFILE</code> envvar mentioned in the link.  So something like this should work:</p>
<pre class="code highlight js-syntax-highlight shell" lang="shell" v-pre="true"><code><span id="LC1" class="line" lang="shell"><span class="nv">$ </span>tshark <span class="nt">-o</span> <span class="s2">"tls.desegment_ssl_records: TRUE"</span> <span class="se">\</span></span>
<span id="LC2" class="line" lang="shell">         <span class="nt">-o</span> <span class="s2">"tls.desegment_ssl_application_data: TRUE"</span> <span class="se">\</span></span>
<span id="LC3" class="line" lang="shell">         <span class="nt">-o</span> <span class="s2">"tls.keylog_file: </span><span class="nv">$PWD</span><span class="s2">/keylog.txt"</span> <span class="se">\</span></span>
<span id="LC4" class="line" lang="shell">         <span class="nt">-i</span> lo <span class="nt">-Px</span> <span class="nt">-O</span> tls <span class="nt">-Y</span> <span class="s2">"tcp.port == 5556"</span></span></code></pre>
<p dir="auto">and connect with gnutls-cli:</p>
<pre class="code highlight js-syntax-highlight shell" lang="shell" v-pre="true"><code><span id="LC1" class="line" lang="shell"><span class="nv">$ SSLKEYLOGFILE</span><span class="o">=</span><span class="nv">$PWD</span>/keylog.txt gnutls-cli ...</span></code></pre>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/802#note_191815021">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/e273c10d0e5c2c475bb231306043e3b3/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/802#note_191815021"}}</script>


</p>
</div>
</body>
</html>