<!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>
<p dir="auto">I am unable to get GnuTLS and OpenSSL to play nicely together on IPv6. Here are the two commands:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">$ cat tests/psk.txt </span>
<span id="LC2" class="line" lang="plaintext">foo:7df28f5439b5a051cc138b6e12128264</span>
<span id="LC3" class="line" lang="plaintext"></span>
<span id="LC4" class="line" lang="plaintext">$ gnutls-serv -p 5000 --echo --priority NORMAL:+ECDHE-PSK:+DHE-PSK:+PSK --pskpasswd=psk.txt</span>
<span id="LC5" class="line" lang="plaintext">Warning: no private key and certificate pairs were set.</span>
<span id="LC6" class="line" lang="plaintext">Echo Server listening on IPv4 0.0.0.0 port 5000...done</span>
<span id="LC7" class="line" lang="plaintext">Echo Server listening on IPv6 :: port 5000...done</span>
<span id="LC8" class="line" lang="plaintext"></span>
<span id="LC9" class="line" lang="plaintext">* Accepted connection from IPv6 ::1 port 57192 on Wed Jan 23 17:59:01 2019</span>
<span id="LC10" class="line" lang="plaintext">Error in handshake: An illegal parameter has been received.</span></code></pre>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">$ openssl s_client -connect [::1]:5000 -psk_identity foo -psk 7df28f5439b5a051cc138b6e12128264</span>
<span id="LC2" class="line" lang="plaintext">CONNECTED(00000003)</span>
<span id="LC3" class="line" lang="plaintext">139765944088384:error:14094417:SSL routines:ssl3_read_bytes:sslv3 alert illegal parameter:ssl/record/rec_layer_s3.c:1528:SSL alert number 47</span>
<span id="LC4" class="line" lang="plaintext">---</span>
<span id="LC5" class="line" lang="plaintext">no peer certificate available</span>
<span id="LC6" class="line" lang="plaintext">---</span>
<span id="LC7" class="line" lang="plaintext">No client certificate CA names sent</span>
<span id="LC8" class="line" lang="plaintext">---</span>
<span id="LC9" class="line" lang="plaintext">SSL handshake has read 7 bytes and written 405 bytes</span>
<span id="LC10" class="line" lang="plaintext">Verification: OK</span>
<span id="LC11" class="line" lang="plaintext">---</span>
<span id="LC12" class="line" lang="plaintext">New, (NONE), Cipher is (NONE)</span>
<span id="LC13" class="line" lang="plaintext">Secure Renegotiation IS NOT supported</span>
<span id="LC14" class="line" lang="plaintext">Compression: NONE</span>
<span id="LC15" class="line" lang="plaintext">Expansion: NONE</span>
<span id="LC16" class="line" lang="plaintext">No ALPN negotiated</span>
<span id="LC17" class="line" lang="plaintext">Early data was not sent</span>
<span id="LC18" class="line" lang="plaintext">Verify return code: 0 (ok)</span>
<span id="LC19" class="line" lang="plaintext">---</span></code></pre>

</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/683">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/35f110fe5ff04e63cad2ca1ca55b3e80/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/683"}}</script>
</p>
</div>
</body>
</html>