<!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=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">The server utilizing post-handshake authentication may send a "certificate_required" alert (116) when the client doesn't send any certificate. GnuTLS doesn't know that alert currently.</p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto">gnutls-3.6.6-1.fc29.x86_64</p>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto">Fedora</p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<p dir="auto">Steps to Reproduce:</p>
<ul dir="auto">
<li>set up apache with post-handshake authentication enabled</li>
</ul>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Alias /aaa/ /var/www/aaa/</span>
<span id="LC2" class="line" lang="plaintext"><Directory "/var/www/aaa/"></span>
<span id="LC3" class="line" lang="plaintext"> SSLOptions +StrictRequire</span>
<span id="LC4" class="line" lang="plaintext"> SSLRequireSSL</span>
<span id="LC5" class="line" lang="plaintext"> SSLVerifyClient require</span>
<span id="LC6" class="line" lang="plaintext"> SSLVerifyDepth 10</span>
<span id="LC7" class="line" lang="plaintext"> SSLOptions +FakeBasicAuth</span>
<span id="LC8" class="line" lang="plaintext"></Directory></span></code></pre>
<ul dir="auto">
<li>connect to the server with gnutls-cli:</li>
</ul>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">{ printf 'GET /aaa HTTP/1.1\r\nHost: localhost.localdomain\r\n\r\n'; sleep 10; } | gnutls-cli --x509cafile=Documents/data/ca-cert.pem --post-handshake-auth -d 6 -p 443 localhost.localdomain</span></code></pre>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*** Re-auth was performed.</span>
<span id="LC2" class="line" lang="plaintext">|<5>| REC[0x5586e0e86ae0]: SSL 3.3 Application Data packet received. Epoch 2, length: 19</span>
<span id="LC3" class="line" lang="plaintext">|<5>| REC[0x5586e0e86ae0]: Expected Packet Application Data(23)</span>
<span id="LC4" class="line" lang="plaintext">|<5>| REC[0x5586e0e86ae0]: Received Packet Application Data(23) with length: 19</span>
<span id="LC5" class="line" lang="plaintext">|<5>| REC[0x5586e0e86ae0]: Decrypted Packet[3] Alert(21) with length: 2</span>
<span id="LC6" class="line" lang="plaintext">|<5>| REC[0x5586e0e86ae0]: Alert[2|116] - (null) - was received</span>
<span id="LC7" class="line" lang="plaintext">|<3>| ASSERT: record.c[record_add_to_buffers]:877</span>
<span id="LC8" class="line" lang="plaintext">|<3>| ASSERT: record.c[record_add_to_buffers]:884</span>
<span id="LC9" class="line" lang="plaintext">|<3>| ASSERT: record.c[_gnutls_recv_in_buffers]:1567</span>
<span id="LC10" class="line" lang="plaintext">|<3>| ASSERT: record.c[_gnutls_recv_int]:1766</span>
<span id="LC11" class="line" lang="plaintext">*** Fatal error: A TLS fatal alert has been received.</span>
<span id="LC12" class="line" lang="plaintext">*** Received alert [116]: (unknown)</span>
<span id="LC13" class="line" lang="plaintext">*** Server has terminated the connection abnormally.</span></code></pre>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">116 should be replaced with readable description.</p>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/715">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/4d09e5a8ab23a71db0bb17ee9adb3e2d/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/715"}}</script>
</p>
</div>
</body>
</html>