<?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 — PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
		<link>https://www.wolfssl.com/forums/topic1831-pic32freertos-handshake-failure-tls-13.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1831.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in PIC32/FreeRTOS handshake failure TLS 1.3.]]></description>
		<lastBuildDate>Mon, 10 Jan 2022 15:28:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6446.html#p6446</link>
			<description><![CDATA[<p>Hello Junkhar,</p><p>To better prioritize your support request, please open a ticket by sending an email to support@wolfssl.com</p><p>Thanks,<br />Eric @ wolfSSL Support</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Mon, 10 Jan 2022 15:28:56 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6446.html#p6446</guid>
		</item>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6445.html#p6445</link>
			<description><![CDATA[<p>I&#039;ve migrated to 5.1.1 and here is what my defines is at. I&#039;m still getting the no cipher overlap problem with the latest. Wireshark capture of TLS1.3 attached.</p><div class="codebox"><pre><code>#define WOLFSSL_ALT_NAMES
#define WOLFSSL_DER_LOAD
#define KEEP_OUR_CERT
#define KEEP_PEER_CERT
#define HAVE_CRL_IO
#define HAVE_IO_TIMEOUT
#define TFM_NO_ASM
#define WOLFSSL_NO_ASM
#define SIZEOF_LONG_LONG 8
#define WOLFSSL_USER_IO
#define NO_WRITEV
#define MICROCHIP_TCPIP
#define WOLFSSL_DTLS
#define NO_PWDBASED
#define HAVE_TLS_EXTENSIONS
#define WOLFSSL_TLS13
#define HAVE_SUPPORTED_CURVES
#define NO_ERROR_STRINGS
#define NO_OLD_TLS

/*** wolfCrypt Library Configuration ***/
#define MICROCHIP_PIC32
#define MICROCHIP_MPLAB_HARMONY
#define MICROCHIP_MPLAB_HARMONY_3
#define HAVE_MCAPI
#define SIZEOF_LONG_LONG 8
#define WOLFSSL_USER_IO
#define NO_WRITEV
#define NO_FILESYSTEM
#define USE_FAST_MATH
#define NO_PWDBASED
#define HAVE_MCAPI
#define WOLF_CRYPTO_CB  // provide call-back support
#define WOLFSSL_HAVE_MIN
#define WOLFSSL_HAVE_MAX
// ---------- FUNCTIONAL CONFIGURATION START ----------
#define WOLFSSL_AES_SMALL_TABLES
#define NO_MD4
#define WOLFSSL_SHA224
#define WOLFSSL_SHA384
#define NO_SHA512
#define WOLFSSL_AES_128
#define WOLFSSL_AES_192
#define WOLFSSL_AES_256
#define WOLFSSL_AES_DIRECT
#define HAVE_AES_DECRYPT
#define HAVE_AES_ECB
#define HAVE_AES_CBC
#define HAVE_HKDF
#define WOLFSSL_AES_COUNTER
#define WOLFSSL_AES_OFB
#define HAVE_AESGCM
#define HAVE_AESCCM
#define NO_RC4
#define NO_HC128
#define NO_RABBIT
#define HAVE_ECC
#define NO_DH
#define NO_DSA
#define FP_MAX_BITS 4096
#define USE_CERT_BUFFERS_2048
#define WC_RSA_PSS
#define NO_DEV_RANDOM
#define HAVE_HASHDRBG
#define WC_NO_HARDEN
#define FREERTOS
#define NO_ERROR_STRINGS
#define NO_WOLFSSL_MEMORY</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (junkhar)]]></author>
			<pubDate>Mon, 10 Jan 2022 15:24:49 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6445.html#p6445</guid>
		</item>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6435.html#p6435</link>
			<description><![CDATA[<p>I finally got the wolfSSL 5.1.0 integrated into Harmony 3 and then compiling. I manually replaced the wolfSSL directory into the Harmony 3 folder set and then let Harmony generate the code using the updated library. When I finally got through all of that the remaining problems were:</p><p>internal.c hadn&#039;t updated and #include &lt;system/sys_time_h2_adapter.h&gt; instead of #include &lt;system/tmr/sys_tmr.h&gt;<br />ssl.h didn&#039;t have the correct path to compat_types.h<br />hmac.h didn&#039;t have include for types.h<br />settings.h hadn&#039;t updated correctly<br />wc_port.h hadn&#039;t updated correctly.</p><p>After figuring those out I was able to get it to compile with 5.1.0</p><p>Using TLS 1.2 get the following wireshark when I use a browser. wget hangs like it did before.</p><p>TLS 1.3 continues to have the same SSL_ERROR_NO_CYPHER_OVERLAP with FF. Wireshark looks the same.</p>]]></description>
			<author><![CDATA[null@example.com (junkhar)]]></author>
			<pubDate>Tue, 04 Jan 2022 16:35:59 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6435.html#p6435</guid>
		</item>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6432.html#p6432</link>
			<description><![CDATA[<p>Hi Junkhar,</p><p>I realized you&#039;re using 4.7.0, which is outdated.&nbsp; Please upgrade to the latest wolfSSL version (currently 5.1.0) and let me know if you still see any issues.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Thu, 30 Dec 2021 18:23:03 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6432.html#p6432</guid>
		</item>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6431.html#p6431</link>
			<description><![CDATA[<p>TLS 1.2 wireshark capture</p>]]></description>
			<author><![CDATA[null@example.com (junkhar)]]></author>
			<pubDate>Thu, 30 Dec 2021 14:30:36 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6431.html#p6431</guid>
		</item>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6430.html#p6430</link>
			<description><![CDATA[<p>Hi Kareem,</p><p>I&#039;ve added the two lines in my TLSv1.2 and TLS1.3 builds and getting the same behavior on both. Since I would prefer to be on 1.3 here is the wireshark capture using that. I&#039;ll add a 2nd reply with the one for 1.2 since I don&#039;t seem to be able to add two files.</p>]]></description>
			<author><![CDATA[null@example.com (junkhar)]]></author>
			<pubDate>Thu, 30 Dec 2021 14:28:45 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6430.html#p6430</guid>
		</item>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6429.html#p6429</link>
			<description><![CDATA[<p>Hi Junkhar,</p><p>Can you attach your pcap wireshark file, rather than a png?&nbsp; If there is any sensitive information, feel free to email it to us at support [AT] wolfssl [DOT] com.</p><p>One common issue on your platform is the encrypt-then-mac/extended master secret extensions being disabled by default.&nbsp; It&#039;s worth trying again with them enabled, add this to your user_settings.h, then rebuild and let me know if it helps:<br /></p><div class="codebox"><pre><code>#define HAVE_EXTENDED_MASTER
#define HAVE_ENCRYPT_THEN_MAC</code></pre></div><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Wed, 29 Dec 2021 21:58:58 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6429.html#p6429</guid>
		</item>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6428.html#p6428</link>
			<description><![CDATA[<p>I would have to make substantial changes for the stand-alone to work on my hardware so that&#039;s not really an option.</p><p>I went back and started over adding one tiny piece at a time. I got up through the http net server working when using unencrypted http. With that working the http events were as follows:</p><div class="codebox"><pre><code>[12/29/21 14:46:54] HTTP Net Client Open: 2, info: (null)
[12/29/21 14:46:54] HTTP Net File Serve: 7, info: dumb_page. html
[12/29/21 14:46:54] HTTP Net File Close: 8, info: dumb_page. html
[12/29/21 14:48:52] HTTP Net Client Close: 6, info: (null)</code></pre></div><p>The page worked on a variety of browsers and through wget.</p><p>When I enable support encryption and server encryption in the Presentation Layer it stops working. The default encryption is TLS1.2 instead of 1.3, but if it worked I could live with it. With a browser I get the certificate warning and I can view the wolfSSL certificate, but it never serves the webpage.</p><p>wget tries to make a single connection and gets stuck at:<br /></p><div class="codebox"><pre><code>Connecting to 192.168.1.164:443... connected.</code></pre></div><p>Only the HTTP Net Client Close event shows up when I stop the stuck connection. I&#039;ve attached the wireshark for a wget connection.</p>]]></description>
			<author><![CDATA[null@example.com (junkhar)]]></author>
			<pubDate>Wed, 29 Dec 2021 15:41:49 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6428.html#p6428</guid>
		</item>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6415.html#p6415</link>
			<description><![CDATA[<p>Have you run the example stand-alone yet? It might be useful to see it working first, then try to integrate.</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Fri, 10 Dec 2021 01:04:46 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6415.html#p6415</guid>
		</item>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6413.html#p6413</link>
			<description><![CDATA[<p>Hi Eric,</p><p>I&#039;m trying to add a HTTPNET server to an existing product which already has FTP server and UDP sockets in use for it&#039;s other functions. This means I&#039;m trying to use the sample projects to correctly add all of this into a more complicated project.</p><p> I&#039;m not getting any successful connections on the server. When I try wget I get the following results.</p><div class="codebox"><pre><code>$ wget https://192.168.1.98
--2021-12-09 15:13:02--  https://192.168.1.98/
Connecting to 192.168.1.98:443... connected.
OpenSSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
Unable to establish SSL connection.</code></pre></div><p>FFox is giving this: SSL_ERROR_NO_CYPHER_OVERLAP</p><p>I have found and tried some forum comments related to adding the curve 25519 in various configurations but it hasn&#039;t helped. I&#039;m kinda leaning on Harmony for this since web and encryption are outside of my experience.</p>]]></description>
			<author><![CDATA[null@example.com (junkhar)]]></author>
			<pubDate>Thu, 09 Dec 2021 21:26:57 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6413.html#p6413</guid>
		</item>
		<item>
			<title><![CDATA[Re: PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6411.html#p6411</link>
			<description><![CDATA[<p>Hello Junkhar,</p><p>Thanks for contacting wolfSSL Support. Which Harmony webserver example project are you testing with?</p><p>Browsers often open multiple TLS connections to help speed up displaying a webpage. This can cause issues with embedded servers.&nbsp; &nbsp;Are you seeing a single connection succeed? If you test with wget does it work?</p><p>Thanks,<br />Eric</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Thu, 09 Dec 2021 16:32:16 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6411.html#p6411</guid>
		</item>
		<item>
			<title><![CDATA[PIC32/FreeRTOS handshake failure TLS 1.3]]></title>
			<link>https://www.wolfssl.com/forums/post6409.html#p6409</link>
			<description><![CDATA[<p>wolfSSL v4.7.0<br />FreeRTOS 10.3.1</p><p>I&#039;m adding a web server to an embedded product which uses the Microchip PIC32 processor. This is my first project with an embedded web server and the associated TLS. Using Microchips Harmony 3 I added the server and encryption and got it compiling and not crashing when making a browser request to the web server after increasing the heap size.</p><p>The problem is that whatever I do now I keep getting a Handshake Failure (40) when trying to connect to the server. I&#039;ve attached a screenshot of the wireshark capture and the wolfSSL config. Any pointers would be greatly appreciated.</p><div class="codebox"><pre><code>#define TCPIP_HTTP_NET_MALLOC_FUNC                  pvPortMalloc
#define TCPIP_HTTP_NET_FREE_FUNC                    vPortFree

#define WOLFSSL_ALT_NAMES
#define WOLFSSL_DER_LOAD
#define KEEP_OUR_CERT
#define KEEP_PEER_CERT
#define HAVE_CRL_IO
#define HAVE_IO_TIMEOUT
#define TFM_NO_ASM
#define WOLFSSL_NO_ASM
#define SIZEOF_LONG_LONG 8
#define WOLFSSL_USER_IO
#define NO_WRITEV
#define MICROCHIP_TCPIP
#define HAVE_FFDHE_2048
#define WOLFSSL_DTLS
#define NO_PWDBASED
#define HAVE_TLS_EXTENSIONS
#define WOLFSSL_TLS13
#define HAVE_SUPPORTED_CURVES
#define WOLFSSL_POST_HANDSHAKE_AUTH
#define NO_ERROR_STRINGS
#define NO_OLD_TLS
#define HAVE_HKDF



/*** wolfCrypt Library Configuration ***/
#define MICROCHIP_PIC32
#define MICROCHIP_MPLAB_HARMONY
#define MICROCHIP_MPLAB_HARMONY_3
#define HAVE_MCAPI
#define SIZEOF_LONG_LONG 8
#define WOLFSSL_USER_IO
#define NO_WRITEV
#define NO_FILESYSTEM
#define USE_FAST_MATH
#define NO_PWDBASED
#define HAVE_MCAPI
#define WOLF_CRYPTO_CB  // provide call-back support
#define WOLFSSL_HAVE_MIN
#define WOLFSSL_HAVE_MAX
// ---------- FUNCTIONAL CONFIGURATION START ----------
#define NO_MD4
#define WOLFSSL_SHA224
#define WOLFSSL_AES_128
#define WOLFSSL_AES_192
#define WOLFSSL_AES_256
#define WOLFSSL_AES_DIRECT
#define HAVE_AES_DECRYPT
#define HAVE_AES_ECB
#define HAVE_AES_CBC
#define WOLFSSL_AES_COUNTER
#define HAVE_AESGCM
#define HAVE_AESCCM
#define NO_RC4
#define NO_HC128
#define NO_RABBIT
#define HAVE_ECC
#define HAVE_X963_KDF
#define HAVE_DH
#define FP_MAX_BITS 4096
#define USE_CERT_BUFFERS_2048
#define WC_RSA_PSS
#define NO_DEV_RANDOM
#define HAVE_HASHDRBG
#define WC_NO_HARDEN
#define FREERTOS
#define NO_ERROR_STRINGS
#define NO_WOLFSSL_MEMORY</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (junkhar)]]></author>
			<pubDate>Wed, 08 Dec 2021 19:26:14 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6409.html#p6409</guid>
		</item>
	</channel>
</rss>
