<?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 — spontaneous connection refusal in wolfSSL_connect(ssl)]]></title>
		<link>https://www.wolfssl.com/forums/topic2589-spontaneous-connection-refusal-in-wolfsslconnectssl.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2589.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in spontaneous connection refusal in wolfSSL_connect(ssl).]]></description>
		<lastBuildDate>Tue, 03 Nov 2026 08:16:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: spontaneous connection refusal in wolfSSL_connect(ssl)]]></title>
			<link>https://www.wolfssl.com/forums/post8974.html#p8974</link>
			<description><![CDATA[<p>Hi Kareem,</p><p>Thanks for your quick reply and the hints. There is still no change in the log file; the response remains the same. I have tried various combinations of build options—including all three at once—but the result remains unchanged. I also tested it using the default `user_settings.h` file from the distribution with this additions:<br /></p><div class="codebox"><pre><code>...... from top
/* Make sure this is not an ESP-IDF file */
#undef  WOLFSSL_ESPIDF

#define HAVE_ECC

/* == insertion BerHav == */
#define HAVE_CURVE25519 // For x25519 in supported_groups
#define HAVE_ENCRYPT_THEN_MAC
#define WOLFSSL_SHA384
#define WOLFSSL_SHA512
#define HAVE_RENEGOTIATION_INDICATION
#define WOLFSSL_TLS12
#define HAVE_TLS_EXTENSIONS
#define HAVE_SUPPORTED_CURVES
#define HAVE_EXTENDED_MASTER
#define HAVE_HKDF
#define WC_RSA_PSS
#define HAVE_AESGCM
#define HAVE_SNI
/* == end insertion BerHav == */
/* the rest of the file is unchanged /*</code></pre></div><p>In every case, data retrieval from Nordpool works, but for Buienradar, I continue to get the same error message regardless of the configuration.<br />Attached the logfile from the connection and result from Nordpool and the failed connection to buienradar. Both uses the same routines to setup and read/write the connection.</p><p>Thanks,<br />Bert</p>]]></description>
			<author><![CDATA[null@example.com (BerHav)]]></author>
			<pubDate>Tue, 03 Nov 2026 08:16:53 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8974.html#p8974</guid>
		</item>
		<item>
			<title><![CDATA[Re: spontaneous connection refusal in wolfSSL_connect(ssl)]]></title>
			<link>https://www.wolfssl.com/forums/post8973.html#p8973</link>
			<description><![CDATA[<p>Hi BerHav,</p><p>Thanks for the followup and sorry to hear that didn&#039;t help.&nbsp; I have a few more settings for you to try:<br />#define WOLFSSL_SHA384<br />#define WOLFSSL_SHA512<br />#define HAVE_RENEGOTIATION_INDICATION</p><p>I am observing that the server is choosing SHA384 when I connect to it here, so I suspect that is the setting you need.&nbsp; But it is worth trying all of them.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Tue, 03 Nov 2026 00:15:10 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8973.html#p8973</guid>
		</item>
		<item>
			<title><![CDATA[Re: spontaneous connection refusal in wolfSSL_connect(ssl)]]></title>
			<link>https://www.wolfssl.com/forums/post8972.html#p8972</link>
			<description><![CDATA[<p>Hi Kareem,</p><p>Thanks for your quick response. Unfortunately, the additional options did not lead to a solution. The log looks exactly the same after the new build.</p><p>Attached is the user_settings.h file that I am currently using.</p>]]></description>
			<author><![CDATA[null@example.com (BerHav)]]></author>
			<pubDate>Mon, 02 Nov 2026 21:10:23 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8972.html#p8972</guid>
		</item>
		<item>
			<title><![CDATA[Re: spontaneous connection refusal in wolfSSL_connect(ssl)]]></title>
			<link>https://www.wolfssl.com/forums/post8971.html#p8971</link>
			<description><![CDATA[<p>Hi BerHav,</p><p>Looks like the server is sending an internal_error alert in response to your ClientHello.&nbsp; This is most likely an issue with extensions.<br />Please try enabling the following extensions and let me know if it helps.&nbsp; If you continue to run into issues, please attach your current build settings.<br /></p><div class="codebox"><pre><code>#define HAVE_EXTENDED_MASTER
#define HAVE_CURVE25519 // For x25519 in supported_groups
#define HAVE_ENCRYPT_THEN_MAC</code></pre></div><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Mon, 02 Nov 2026 20:15:37 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8971.html#p8971</guid>
		</item>
		<item>
			<title><![CDATA[spontaneous connection refusal in wolfSSL_connect(ssl)]]></title>
			<link>https://www.wolfssl.com/forums/post8969.html#p8969</link>
			<description><![CDATA[<p>Since last Thursday, I have been experiencing an issue retrieving precipitation data from buienradar.nl. The configuration had been working without any problems for about 4 years. The system is now returning a -313 error, which, according to the documentation, appears to be a cipher suite error.</p><p>The strange thing is that the same code has continued to work with other sites used to retrieve electricity prices—for example, dataportal-api.nordpoolgroup.com and web-api.tp.entsoe.eu.</p><p>When I check which cipher suites are supported using: <br /></p><div class="codebox"><pre><code>nmap --script ssl-enum-ciphers -p 443 gpsgadget.buienradar.nl</code></pre></div><p>I find that they all support `TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256` (using the `ecdh_x25519` key exchange)—a fact I have verified for the connection to Nord Pool Group.</p><p>I have tried adding more cipher suites, but that does not seem to be where the problem lies. There is approximately 90kB of RAM available. I hope someone can tell me how to resolve this issue. The site itself seems to be working; in the browser, I receive the expected response at:<br /><a href="https://gpsgadget.buienradar.nl/data/raintext/?lat=52.02&amp;lon=5.17">https://gpsgadget.buienradar.nl/data/ra … p;lon=5.17</a></p><p>The log shows:<br /></p><div class="codebox"><pre><code>17:13:47 wolfSSLlog: 2, wolfSSL Entering TLSv1_2_client_method_ex
17:13:47 wolfSSLlog: 2, wolfSSL Entering wolfSSL_new
17:13:47 wolfSSLlog: 2, wolfSSL Entering ReinitSSL
17:13:47 wolfSSLlog: 1, RNG_HEALTH_TEST_CHECK_SIZE = 128
17:13:47 wolfSSLlog: 1, sizeof(seedB_data)         = 128
17:13:47 wolfSSLlog: 2, wolfSSL Entering SetSSL_CTX
17:13:47 wolfSSLlog: 2, wolfSSL Entering wolfSSL_NewSession
17:13:47 wolfSSLlog: 1, InitSSL done. return 0 (success)
17:13:47 wolfSSLlog: 1, wolfSSL_new InitSSL success
17:13:47 wolfSSLlog: 3, wolfSSL Leaving wolfSSL_new InitSSL =, return 0
17:13:47 wolfSSLlog: 1, TLS 1.2 or lower
17:13:47 wolfSSLlog: 2, wolfSSL Entering wolfSSL_connect
17:13:47 wolfSSLlog: 2, wolfSSL Entering ReinitSSL
17:13:47 wolfSSLlog: 2, wolfSSL Entering SendClientHello
17:13:47 wolfSSLlog: 1, Adding signature algorithms extension
17:13:47 wolfSSLlog: 1, growing output buffer
17:13:47 wolfSSLlog: 1, Signature Algorithms extension to write
17:13:47 wolfSSLlog: 1, Point Formats extension to write
17:13:47 wolfSSLlog: 1, Supported Groups extension to write
17:13:47 wolfSSLlog: 1, SNI extension to write
17:13:47 wolfSSLlog: 1, Shrinking output buffer
17:13:47 wolfSSLlog: 3, wolfSSL Leaving SendClientHello, return 0
17:13:47 wolfSSLlog: 1, connect state: CLIENT_HELLO_SENT
17:13:47 wolfSSLlog: 1, Server state up to needed state.
17:13:47 wolfSSLlog: 1, Progressing server state...
17:13:47 wolfSSLlog: 1, ProcessReply...
17:13:47 wolfSSLlog: 1, received record layer msg
17:13:47 wolfSSLlog: 1, got ALERT!
17:13:47 wolfSSLlog: 1, Alert type: internal_error
17:13:47 wolfSSLlog: 0, wolfSSL error occurred, error = 80
17:13:47 wolfSSLlog: 0, wolfSSL error occurred, error = -313
17:13:47 ENTSO.ino: 518 ERROR: wolfSSL_connect failed
17:13:47 wolfSSLlog: 2, wolfSSL Entering wolfSSL_get_version
17:13:47 wolfSSLlog: 2, wolfSSL Entering wolfSSL_get_cipher
17:13:47 wolfSSLlog: 2, wolfSSL Entering wolfSSL_get_current_cipher
17:13:47 wolfSSLlog: 2, wolfSSL Entering wolfSSL_CIPHER_get_name
SSL version is TLSv1.2, SSL cipher suite is NONE </code></pre></div><p>The code is executed on STM32 Blackpill, the IDE is Arduino. WolfSSL version is 5.9.4</p><p>The stripped used code is in the attachment.</p>]]></description>
			<author><![CDATA[null@example.com (BerHav)]]></author>
			<pubDate>Mon, 02 Nov 2026 19:15:44 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8969.html#p8969</guid>
		</item>
	</channel>
</rss>
