<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Unable to connect to dev.ssllabs.com and i0.wp.com hosts via TLS 1.3]]></title>
		<link>https://www.wolfssl.com/forums/topic1300-unable-to-connect-to-devssllabscom-and-i0wpcom-hosts-via-tls-13.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1300.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Unable to connect to dev.ssllabs.com and i0.wp.com hosts via TLS 1.3.]]></description>
		<lastBuildDate>Wed, 12 Dec 2018 07:34:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Unable to connect to dev.ssllabs.com and i0.wp.com hosts via TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post4368.html#p4368</link>
			<description><![CDATA[<p>Hello,</p><p>Thank you very much for your help.<br />It is a pleasure to use your library.</p><p>Best Regards,<br />Sam</p>]]></description>
			<author><![CDATA[null@example.com (SamSam)]]></author>
			<pubDate>Wed, 12 Dec 2018 07:34:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4368.html#p4368</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to connect to dev.ssllabs.com and i0.wp.com hosts via TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post4367.html#p4367</link>
			<description><![CDATA[<p>Hi SamSam</p><p>Thanks for reporting this issue!<br />The default maximum ticket size as Kaleb has said was 4 bytes and needs to be 8 bytes.<br />This was chosen based on interoperability testing and that it doesn&#039;t really need to be a bigger than that!<br />The TLS 1.3 specification allows for the nonce to be up to 255 bytes.<br />I&#039;ve put up a pull request, #1973, that changes the maximum to 8 bytes. I was able to connect to the i0.wp.com website.<br />The pull request will be merged into master soon.</p><p>Thanks,<br />Sean</p><p>--<br />Sean Parkinson, wolfSSL</p>]]></description>
			<author><![CDATA[null@example.com (Sean Parkinson)]]></author>
			<pubDate>Wed, 12 Dec 2018 00:05:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4367.html#p4367</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to connect to dev.ssllabs.com and i0.wp.com hosts via TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post4363.html#p4363</link>
			<description><![CDATA[<p>Hey SamSam,</p><p>I found what is happening, the server is returning a nonce size of 8 post-handshake and wolfSSL has a limit of 4 set. I have reached out to our TLS 1.3 engineer for input on your report. Please expect an update from Sean soon.</p><p>- K</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Tue, 11 Dec 2018 21:56:26 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4363.html#p4363</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to connect to dev.ssllabs.com and i0.wp.com hosts via TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post4359.html#p4359</link>
			<description><![CDATA[<p>Hello Kaleb J. Himes,</p><p>Thank you for your answer. Unfortunately, I can not agree with the results of your investigation.</p><p>Regarding <strong>i0.wp.com</strong>:</p><p>When you connect using TLS 1.2 then there is no TLS error, and you can get HTTP response as follow:<br /></p><div class="codebox"><pre><code>LD_LIBRARY_PATH=/mnt/raw/e2ibuildenv/wolfssl/out/i686/lib/ ./examples/client/.libs/client -S i0.wp.com -h i0.wp.com  -p 443 -d -x -C -g -i -v 3
Session Ticket CB: ticketSz = 192, ctx = initial session
peer&#039;s cert info:
 issuer : /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certs.godaddy.com/repository//CN=Go Daddy Secure Certificate Authority - G2
 subject: /OU=Domain Control Validated/CN=*.wp.com
 altname = wp.com
 altname = *.wp.com
 serial number:68:86:4a:83:77:1a:bb:7d 
SSL version is TLSv1.2
SSL cipher suite is TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
SSL curve name is X25519
Client Random : F73F976937698B8DF04965E6B80D5AA158A4938A28B1153D881AA138E63BA8EB
SSL connect ok, sending GET...
HTTP/1.1 403 Forbidden
Server: nginx
Date: Tue, 11 Dec 2018 04:56:07 GMT
Con
tent-Type: text/html
Content-Length: 37
Connection: close

Direct IP/Hostna</code></pre></div><p>Generally the problem is because you can NOT get HTTP response from <strong>i0.wp.com</strong> using&nbsp; <strong>-v d</strong>, but you can when you manually force <strong>-v 3</strong></p><p>Could you please take, a look once again on i0.wp.com host? In the browser, yes you got the message:<br /></p><div class="quotebox"><blockquote><p>Sorry, the parameters you provided were not valid</p></blockquote></div><p>but this HTTP response and this is expected, there is NO SSL error. </p><p>With WolfSSL and option -v d or -v 4 ( when TLS 1.3 is used) it fails with:<br /><strong>SSL_read reply error -425, The security parameter is invalid</strong><br />this is SSL error. </p><p>you will be able to get HTTP response also using WolfSSL when you force TLS 1.2, but in this case you must do this manually.</p><p>Regarding your question. Please find my answer in the following post:<br /><a href="https://www.wolfssl.com/forums/post4111.html#p4111">https://www.wolfssl.com/forums/post4111.html#p4111</a></p><p>Thank you,<br />SamSam</p>]]></description>
			<author><![CDATA[null@example.com (SamSam)]]></author>
			<pubDate>Tue, 11 Dec 2018 05:04:21 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4359.html#p4359</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to connect to dev.ssllabs.com and i0.wp.com hosts via TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post4355.html#p4355</link>
			<description><![CDATA[<p>Hi SamSam,</p><p>Can you share a bit about what it is you&#039;re working on and end goals?</p><p>- K</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Tue, 11 Dec 2018 00:13:43 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4355.html#p4355</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to connect to dev.ssllabs.com and i0.wp.com hosts via TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post4354.html#p4354</link>
			<description><![CDATA[<p>Hi SamSam,</p><div class="quotebox"><blockquote><p>examples/client/.libs/client -S dev.ssllabs.com -h dev.ssllabs.com&nbsp; -p 443 -d -x -C -g -i -v 4<br />wolfSSL_connect error -424, Extension type not allowed in handshake message type<br />wolfSSL error: wolfSSL_connect failed</p></blockquote></div><p>I just reviewed dev.ssllabs.com domain, they do not support TLS v1.3 so this is an expected result. Interestingly I can even scan their own website with their own tool to show this:</p><p><a href="https://www.ssllabs.com/ssltest/analyze.html?d=dev.ssllabs.com&amp;s=104.130.202.77">https://www.ssllabs.com/ssltest/analyze … 130.202.77</a></p><div class="codebox"><pre><code>Configuration

Protocols
TLS 1.3    No
TLS 1.2    Yes
TLS 1.1    Yes
TLS 1.0    Yes
SSL 3    No
SSL 2    No
For TLS 1.3 tests, we only support RFC 8446.</code></pre></div><p>So they have added support to their tool for detecting TLS1.3 but their servers do not yet support TLS1.3 connections!</p><div class="quotebox"><blockquote><p>examples/client/.libs/client -S i0.wp.com -h i0.wp.com&nbsp; -p 443 -d -x -C -g -i -v 4<br />peer&#039;s cert info:<br />issuer : /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certs.godaddy.com/repository//CN=Go Daddy Secure Certificate Authority - G2<br />subject: /OU=Domain Control Validated/CN=*.wp.com<br />altname = wp.com<br />altname = *.wp.com<br />serial number:68:86:4a:83:77:1a:bb:7d <br />SSL version is TLSv1.3<br />SSL cipher suite is TLS_AES_128_GCM_SHA256<br />SSL curve name is SECP256R1<br />Client Random : 7E84EF48D807C5269C50DD5B3DEEDF3D4B4672A43E74BC8841DC4C0867A741D4<br />SSL connect ok, sending GET...<br />SSL_read reply error -425, The security parameter is invalid<br />wolfSSL error: SSL_read failed</p></blockquote></div><p>This is a valid and successful TLS 1.3 connection! You have sent a &quot;HTTP GET request&quot; with the -g option which the server processes AFTER the connection has already succeeded and it is the get request that the server doesn&#039;t like. If you visit that domain in a browser all you will see is the message &quot;Sorry, the parameters you provided were not valid&quot;. So whatever service is running at that domain wants something specific, maybe a custom protocol, maybe a user-name and password, not sure but as for as the TLS goes it worked splendidly! (See attached wireshark). What is interesting in the wireshark is that i0.wp.com shows up as IP 192.0.77.2 which shouldn&#039;t be a DNS resolvable domain. Not sure what&#039;s there but it may not be a safe service to use for testing.</p><p>Cheers,</p><p>K</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Mon, 10 Dec 2018 20:59:42 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4354.html#p4354</guid>
		</item>
		<item>
			<title><![CDATA[Unable to connect to dev.ssllabs.com and i0.wp.com hosts via TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post4352.html#p4352</link>
			<description><![CDATA[<p>Hello,</p><p>WolfSSL 3.15.5 compiled as follow:<br /></p><div class="codebox"><pre><code>cd wolfssl-3.15.5
./configure CFLAGS=-DWOLFSSL_STATIC_RSA \
--enable-all \
--enable-tls13 
make</code></pre></div><p>Do not allow to connect to hosts <br /><strong>dev.ssllabs.com</strong> and <strong>i0.wp.com</strong> with TLS 1.3</p><div class="quotebox"><blockquote><p>examples/client/.libs/client -S dev.ssllabs.com -h dev.ssllabs.com&nbsp; -p 443 -d -x -C -g -i -v 4<br />wolfSSL_connect error -424, Extension type not allowed in handshake message type<br />wolfSSL error: wolfSSL_connect failed</p><br /><br /><br /><p>examples/client/.libs/client -S i0.wp.com -h i0.wp.com&nbsp; -p 443 -d -x -C -g -i -v 4<br />peer&#039;s cert info:<br /> issuer : /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certs.godaddy.com/repository//CN=Go Daddy Secure Certificate Authority - G2<br /> subject: /OU=Domain Control Validated/CN=*.wp.com<br /> altname = wp.com<br /> altname = *.wp.com<br /> serial number:68:86:4a:83:77:1a:bb:7d <br />SSL version is TLSv1.3<br />SSL cipher suite is TLS_AES_128_GCM_SHA256<br />SSL curve name is SECP256R1<br />Client Random : 7E84EF48D807C5269C50DD5B3DEEDF3D4B4672A43E74BC8841DC4C0867A741D4<br />SSL connect ok, sending GET...<br />SSL_read reply error -425, The security parameter is invalid<br />wolfSSL error: SSL_read failed</p></blockquote></div><br /><p>Could you please check this?</p><p>Best Regards,<br />SamSam</p>]]></description>
			<author><![CDATA[null@example.com (SamSam)]]></author>
			<pubDate>Sun, 09 Dec 2018 20:23:03 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4352.html#p4352</guid>
		</item>
	</channel>
</rss>
