<?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 — Receiving handshake response in TLSv1.3 after negotiation is finished]]></title>
		<link>https://www.wolfssl.com/forums/topic1947-receiving-handshake-response-in-tlsv13-after-negotiation-is-finished.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1947.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Receiving handshake response in TLSv1.3 after negotiation is finished.]]></description>
		<lastBuildDate>Mon, 19 Dec 2022 21:29:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Receiving handshake response in TLSv1.3 after negotiation is finished]]></title>
			<link>https://www.wolfssl.com/forums/post6884.html#p6884</link>
			<description><![CDATA[<p>Hi mamonetti,</p><p>Thanks for sharing and for your patience.</p><p>Your wolfSSL build settings look good to me.&nbsp; The problem is Harmony is shipping an outdated wolfSSL release.&nbsp; I do recognize the wolfSSL_read issue you are seeing, it should be fixed by this PR: <a href="https://github.com/wolfSSL/wolfssl/pull/4203">https://github.com/wolfSSL/wolfssl/pull/4203</a>&nbsp; However, rather than cherry-picking it, I would strongly recommend you upgrade to our latest release, 5.5.3, for the best security and functionality.&nbsp; You can find our latest release in our Github repo: <a href="https://github.com/wolfSSL/wolfssl/releases">https://github.com/wolfSSL/wolfssl/releases</a></p><p>You will need to register the appropriate CA certificates on startup for our verification to succeed, please retry after adding your CA certificates.</p><p>Yes, you can toggle our CA checking at runtime using wolfSSL_set_verify.&nbsp; Set the second parameter to SSL_VERIFY_PEER to enable validation, SSL_VERIFY_NONE to disable it.&nbsp; We strongly recommend against using SSL_VERIFY_NONE in production, as it removes a lot of the benefit of SSL.&nbsp; You can find more information on wolfSSL_set_verify here: <a href="https://www.wolfssl.com/documentation/manuals/wolfssl/group__Setup.html#function-wolfssl_set_verify">https://www.wolfssl.com/documentation/m … set_verify</a></p><p>Please let me know if you have any further questions.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Mon, 19 Dec 2022 21:29:35 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6884.html#p6884</guid>
		</item>
		<item>
			<title><![CDATA[Re: Receiving handshake response in TLSv1.3 after negotiation is finished]]></title>
			<link>https://www.wolfssl.com/forums/post6877.html#p6877</link>
			<description><![CDATA[<p>Hi Kareem,</p><p>Attached you have the <strong>configuration.h</strong> file I&#039;m using (pretty much the default one).</p><p>Regarding the hardware, I&#039;m using a <strong>SAME54 Xplained Pro</strong> demo board (ATSAME54P20A) and I&#039;m not registering any CA certificate, that&#039;s why I thought the <strong>EccVerify</strong> function was returning an error code.</p><p>One thing I actually want to find out is whether you can decide in real time (maybe through some function callback) if the CA validation has to be performed or can be skipped (this would mean you&#039;d be trusting the server with no actual check).</p><p>Regards</p>]]></description>
			<author><![CDATA[null@example.com (mamonetti)]]></author>
			<pubDate>Thu, 15 Dec 2022 11:45:22 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6877.html#p6877</guid>
		</item>
		<item>
			<title><![CDATA[Re: Receiving handshake response in TLSv1.3 after negotiation is finished]]></title>
			<link>https://www.wolfssl.com/forums/post6876.html#p6876</link>
			<description><![CDATA[<p>Hi mamonetti,</p><p>Sorry to hear about this issue.<br />Please share your build configuration (configuration.h/user_settings.h), and your target platform.&nbsp; Please also confirm if you are registering any CA certificates, and if so which function you are using.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Thu, 15 Dec 2022 01:59:43 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6876.html#p6876</guid>
		</item>
		<item>
			<title><![CDATA[Receiving handshake response in TLSv1.3 after negotiation is finished]]></title>
			<link>https://www.wolfssl.com/forums/post6874.html#p6874</link>
			<description><![CDATA[<p>I&#039;m trying the <strong>wolfssl_tcp_client</strong> demo app from the Microchip Harmony 3 repo:<br /><a href="https://github.com/Microchip-MPLAB-Harmony/net_apps_sam_e5x/tree/master/apps/wolfssl_tcp_client">https://github.com/Microchip-MPLAB-Harm … tcp_client</a></p><p>This app allows you send an <strong>openurl</strong> command with the web page you want to GET and forwards the response to a debug serial port. The code of the app is here:<br /><a href="https://github.com/Microchip-MPLAB-Harmony/net_apps_sam_e5x/blob/master/apps/wolfssl_tcp_client/firmware/src/app.c">https://github.com/Microchip-MPLAB-Harm … /src/app.c</a></p><p>Although I had to add the forwarding code (send the received data to the serial port) after lines 404 (ht-tp version) and 457 (ht-tps version), I was trying pretty much the original app and the ht-tp version worked fine, but the ht-tps version didn&#039;t.</p><p>After having enabed debug (I also added a few additional messages in some parts of the code), I noticed the problem was in the <strong>EccVerify</strong> function of <strong>internal.c</strong>. There was a signature verification error and I thought it might be related with a CA validation problem, so I decided to manually return a 0 value (ok) so that the process could continue.</p><p>As a result, the negotiation finishes successfully (<strong>SSL Connection Opened: Starting Clear Text Communication</strong> in the attached log file, from line 426 of <strong>app.c</strong>) but right after the application data is sent, I receive a handshake record instead of an application data record (I guess it&#039;s generated when I tried to extract data from the socket using <strong>NET_PRES_SocketRead</strong>, line 457 of <strong>app.c</strong>). The output in the log file is this:<br /><strong>User calling wolfSSL_read in error state, not allowed</strong></p><p>What am I missing here? Other than ignoring the signature validation, I&#039;m using the original app and actually the negotiation seems to work fine.</p><p>Regards</p>]]></description>
			<author><![CDATA[null@example.com (mamonetti)]]></author>
			<pubDate>Wed, 14 Dec 2022 17:27:10 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6874.html#p6874</guid>
		</item>
	</channel>
</rss>
