<?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 — Simple SSL connection providing root certs]]></title>
		<link>https://www.wolfssl.com/forums/topic2332-simple-ssl-connection-providing-root-certs.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2332.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Simple SSL connection providing root certs.]]></description>
		<lastBuildDate>Tue, 09 Dec 2025 12:25:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Simple SSL connection providing root certs]]></title>
			<link>https://www.wolfssl.com/forums/post8639.html#p8639</link>
			<description><![CDATA[<div class="quotebox"><cite>rocotocloc wrote:</cite><blockquote><p>Hi @gojimmypi,</p><p>Thanks, now it&#039;s all clear to me, just wanted to clarify how to set these custom properties.</p><p>Well, at the moment I don&#039;t need any extra properties to be set in sdkconfig since my project is working with default settings (since I am only connecting to my server from ESP32, I&#039;ll finally use a self-signed certificate and everything is working fine now). Anyways I understand that you should have in sdkconfig all the properties available so it&#039;s easy to tune wolfSSL when using the ESP Component Registry.</p><p>Thank you for your help!</p><br /><br /><br /><p>Great insights on optimizing security with wolfSSL, especially when handling encryption and certificate management. For anyone working with secure communications, maintaining a reliable internet connection is essential to avoid interruptions, particularly when dealing with remote servers. A 5G signal booster, like those from <a href="https://www.mobile-signal-boosters.shop/car-signal-booster/,">https://www.mobile-signal-boosters.shop … -booster/,</a> can ensure a strong and consistent connection, even in areas with weaker signals, helping to keep everything running smoothly.</p></blockquote></div><p>Thanks for information!</p>]]></description>
			<author><![CDATA[null@example.com (amantha)]]></author>
			<pubDate>Tue, 09 Dec 2025 12:25:55 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8639.html#p8639</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple SSL connection providing root certs]]></title>
			<link>https://www.wolfssl.com/forums/post8404.html#p8404</link>
			<description><![CDATA[<p>Hi @gojimmypi,</p><p>Thanks, now it&#039;s all clear to me, just wanted to clarify how to set these custom properties.</p><p>Well, at the moment I don&#039;t need any extra properties to be set in sdkconfig since my project is working with default settings (since I am only connecting to my server from ESP32, I&#039;ll finally use a self-signed certificate and everything is working fine now). Anyways I understand that you should have in sdkconfig all the properties available so it&#039;s easy to tune wolfSSL when using the ESP Component Registry.</p><p>Thank you for your help!</p>]]></description>
			<author><![CDATA[null@example.com (rocotocloc)]]></author>
			<pubDate>Thu, 26 Jun 2025 05:35:20 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8404.html#p8404</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple SSL connection providing root certs]]></title>
			<link>https://www.wolfssl.com/forums/post8403.html#p8403</link>
			<description><![CDATA[<p>Hi rocotocloc - </p><p>Glad to help!</p><div class="quotebox"><blockquote><p>Just one clarification regarding user_settings.h.</p></blockquote></div><p>I should have been more clear: the wolfssl user_settings.h needs to be in the wolfssl component directory, <em>which may vary depending on if it is a managed component or not:</em></p><div class="codebox"><pre><code>[project]\components\wolfssl\include\user_settings.h

  // or

[project]\managed_components\wolfssl__wolfssl\include\user_settings.h

  // or (for completeness, if not Managed Component and installed to ESP-IDF)

[ESP-IDF]\[version]\components\wolfssl\include\user_settings.h</code></pre></div><p>And as you discovered, the Managed Component source is &quot;locked&quot; and is required to be converted to a non-managed component if contents changed. This includes the `user_settings.h`. There must also be exactly one wolfssl component throughout the entire toolchain.</p><p>See the docs:</p><p><a href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html">https://docs.espressif.com/projects/esp … ystem.html</a></p><div class="quotebox"><blockquote><p>like setting &quot;CONFIG_WOLFSSL_ALT_CERT_CHAINS=y&quot; in sdkconfig</p></blockquote></div><p>Somewhat. The sdkconfig file is auto-generated. I suggest you put desired default settings in the `sdkconfig.defaults` file.</p><div class="quotebox"><blockquote><p>My only doubt here is that not all #define directives have their equivalent in the `sdkconfig` file</p></blockquote></div><p>Things like enabling WOLFSSL_ALT_CERT_CHAINS must be done via the `idy.py menuconfig` for Managed Components, which in turn means there must be Kconfig logic for the setting.</p><p><strong>NOW is a good time to put in a request for any new Kconfig settings! <img src="https://www.wolfssl.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> </strong> We&#039;ll be having a release in the near future, so if you&#039;d like anything specific to be included, please let me know right away and/or send a message to support [at] wolfssl.com</p><p>Cheers</p><p>Jim</p>]]></description>
			<author><![CDATA[null@example.com (gojimmypi)]]></author>
			<pubDate>Wed, 25 Jun 2025 17:42:40 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8403.html#p8403</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple SSL connection providing root certs]]></title>
			<link>https://www.wolfssl.com/forums/post8402.html#p8402</link>
			<description><![CDATA[<p>Hi @gojimmypi,</p><p>Thanks again for all your support, things are much clearer now.</p><p>Just one clarification regarding user_settings.h.</p><p>Since I am using ESP Component Registry right now, wolfSSL is installed in &quot;my_project\managed_components\wolfssl__wolfssl&quot;</p><p>So I cannot place user_settings.h under &quot;[project]\components\wolfssl\include\user_settings.h&quot; or I get this error from CMakeLists.txt:</p><div class="codebox"><pre><code>message(FATAL_ERROR &quot;\nPlease use either the ESP Registry Managed Component or the wolfSSL component directory but not both.\n&quot;
                        &quot;If removing the ./managed_components/wolfssl__wolfssl directory, remember to also remove &quot;
                        &quot;or rename the idf_component.yml file typically found in ./main/&quot;)</code></pre></div><br /><p>So in this case I must use sdkconfig to tune wolfSSL, like setting &quot;CONFIG_WOLFSSL_ALT_CERT_CHAINS=y&quot; in sdkconfig file instead of &quot;#define WOLFSSL_ALT_CERT_CHAINS&quot; in user_settings.h. Is this correct? (I can see these properties end up in the file sdkconfig.h that is included from user_settings.h)</p><p>My only doubt here is that not all #define directives have their equivalent in the sdkconfig file, for example &quot;#define HAVE_SNI&quot;. So how should I set this one in case I needed it? Should exist something like &quot;CONFIG_HAVE_SNI&quot; in sdkconfig?</p><p>Thanks again and forgive me for insisting.</p>]]></description>
			<author><![CDATA[null@example.com (rocotocloc)]]></author>
			<pubDate>Wed, 25 Jun 2025 14:50:24 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8402.html#p8402</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple SSL connection providing root certs]]></title>
			<link>https://www.wolfssl.com/forums/post8398.html#p8398</link>
			<description><![CDATA[<p>Hi rocotocloc - </p><div class="quotebox"><blockquote><p><strong> can say my project is now working and I can connect to my website by using the appropriate root certificate,</strong></p></blockquote></div><p>Yay! nicely done.</p><p>One of the things to be aware of for some CDN / load balanced sites such as `google.com` is that a different ISP may have a different cert chain. My ESP32 was connecting directly, my computer via VPN. For example, each would see a different result for:</p><div class="codebox"><pre><code>openssl s_client -connect www.google.com:443 -showcerts -servername www.google.com &lt; /dev/null</code></pre></div><p>The root cause was the FP_MAX_BITS. I had it set to 4096, but that&#039;s for only a 2048 bit (the size needs to hold <em>two</em> operands!)</p><p>Since some of the certs use RSA, these are needed:</p><div class="codebox"><pre><code>#define HAVE_RSA
#define FP_MAX_BITS (2 * 4096)</code></pre></div><p>I put back your original curl file and confirmed it is working:</p><p><a href="https://curl.se/ca/cacert.pem">https://curl.se/ca/cacert.pem</a></p><p>I have this all resolved in the latest commit on my sample app:</p><p><a href="https://github.com/gojimmypi/wolfssl/tree/d3db510ce8faebc0acafb45df34d9fc5deac997e/IDE/Espressif/ESP-IDF/examples/wolfssl_client">https://github.com/gojimmypi/wolfssl/tr … ssl_client</a></p><p>I realize this is not at all intuitive, so I put together this PR that should make certificate troubleshooting vastly more easy:</p><p><a href="https://github.com/wolfSSL/wolfssl/pull/8902">https://github.com/wolfSSL/wolfssl/pull/8902</a></p><p>With the PR, when the `FP_MAX_BITS` is found to be too small at runtime, and when `WOLFSSL_DEBUG_CERTS` is enabled, a message such like this will be displayed:</p><div class="codebox"><pre><code>I (15765) wolfssl: TFM fp_exptmod_nct failed: P.used (128) &gt; (FP_SIZE/2); FP_SIZE: 136; FP_MAX_SIZE: 4096
I (15773) wolfssl: Consider adjusting current FP_MAX_BITS: 4096</code></pre></div><br /><p>Answers to your specific questions:</p><div class="quotebox"><blockquote><p><strong>Where to define custom #define properties in my project?</strong></p></blockquote></div><p>All settings should be in the `user_settings.h`. There should be only one file, located in</p><div class="codebox"><pre><code>[project]\components\wolfssl\include\user_settings.h</code></pre></div><p>See the reference template project:</p><p><a href="https://github.com/wolfSSL/wolfssl/tree/master/IDE/Espressif/ESP-IDF/examples/template">https://github.com/wolfSSL/wolfssl/tree … s/template</a></p><div class="quotebox"><blockquote><p><strong>I am using wolfSSL through ESP Component Registry.</strong></p></blockquote></div><p>This will be a little tricky, as the registered components don&#039;t like to be changed. There will be instruction at build time to convert to a non-managed component.</p><div class="quotebox"><blockquote><p><strong>major problem was related to lack of #define directives in user_settings.h but you have all these:</strong></p></blockquote></div><p>Oh, some of those were just for testing. Sorry for the confusion there. The one in the working commit, above, should be cleaned up now.</p><div class="quotebox"><blockquote><p><strong>So far so good but I found some examples where this doesn&#039;t work and I don&#039;t know why.</strong></p></blockquote></div><p>I&#039;m pretty sure this is the RSA and max bit settings.</p><div class="quotebox"><blockquote><p><strong>For example I can see you already have this config property: &quot;CONFIG_WOLFSSL_ALT_CERT_CHAINS&quot;, which is the equivalent of &quot;#define WOLFSSL_ALT_CERT_CHAINS&quot;.</strong></p></blockquote></div><p>The wolfSSL setting is `WOLFSSL_ALT_CERT_CHAINS`. Macros with a `CONFIG_`prefix came from the ESP-IDF menuconfig via Kconfig.</p><div class="quotebox"><blockquote><p><strong>Not clear what this means (in component README):</strong></p></blockquote></div><p><strong>- The wolfSSL-related `components/[name]/include` directory should be empty for all components except wolfssl.</strong></p><p>There are other components such as wolfssh and wolfmqtt; ONLY wolfssl should have a `user_settings.h` in the respective include directory</p><p><strong>- Files in this directory are renamed with `.bak` suffixes when performing publish-time build checks.</strong></p><p>This is intended for wolfssl maintainers. I&#039;ll make this more clear in future releases. It refereces what happens when components are published to the ESP Registry.</p><br /><p>Please let me know if this answers all of your questions or if I can be of further assistance.</p><p>I&#039;ll be working more on additional `WOLFSSL_DEBUG_CERTS` functionality. Open to suggestions for other diagnostics.</p><p>Best Regards &amp; Have a great weekend!</p><p>Jim</p>]]></description>
			<author><![CDATA[null@example.com (gojimmypi)]]></author>
			<pubDate>Fri, 20 Jun 2025 20:03:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8398.html#p8398</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple SSL connection providing root certs]]></title>
			<link>https://www.wolfssl.com/forums/post8396.html#p8396</link>
			<description><![CDATA[<p>Hi gojimmypi,</p><p>Definitely major problem was related to lack of #define directives in user_settings.h. I only had defined #DEBUG_WOLFSSL and #HAVE_SNI but you have all these:</p><div class="codebox"><pre><code>#define WOLFSSL_ESP_NO_WATCHDOG 1
#define DEBUG_WOLFSSL
#define DEBUG_WOLFSSL_VERBOSE
#define DEBUG_WOLFSSL_SHA_MUTEX
#define WOLFSSL_DEBUG_IGNORE_ASN_TIME
#define ASN_ALLOW_0_SERIAL
#define HAVE_SNI
#define WOLFSSL_ALT_CERT_CHAINS
#define HAVE_ECC
#define HAVE_X509
#define WOLFSSL_TLS13
#define WOLFSSL_TLS12

/* the root CA is using RSA */
#define HAVE_RSA
#define WOLFSSL_KEY_GEN
#define WC_RSA_BLINDING
#define FP_MAX_BITS 8192</code></pre></div><p>After setting these same directives I can say my project is now working and I can connect to my website by using the appropriate root certificate, thank you very much.</p><p>Anyways let me share with you a couple of points. It&#039;ll be kind of a long post but just to clarify everything.</p><p>In order to validate the certificate chain received from the server, I understand I just have to add the root cert to validate the latest certificate in the chain received, right?</p><p>This works like this for google.com as in this example. If I inspect the chain received with openssl, I can see the latest certificate in the chain is &quot;GTS Root R1&quot;:</p><div class="quotebox"><blockquote><p>2 s:C = US, O = Google Trust Services LLC, CN = GTS Root R1<br />&nbsp; &nbsp;i:C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign Root CA<br />&nbsp; &nbsp;a:PKEY: rsaEncryption, 4096 (bit); sigalg: RSA-SHA256<br />&nbsp; &nbsp;v:NotBefore: Jun 19 00:00:42 2020 GMT; NotAfter: Jan 28 00:00:42 2028 GMT<br />-----BEGIN CERTIFICATE-----<br />MIIFYjCCBEqgAwIBAgIQd70NbNs2+RrqIQ/E8FjTDTANBgkqhkiG9w0BAQsFADBX<br />MQswCQYDVQQGEwJCRTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEQMA4GA1UE<br />CxMHUm9vdCBDQTEbMBkGA1UEAxMSR2xvYmFsU2lnbiBSb290IENBMB4XDTIwMDYx<br />OTAwMDA0MloXDTI4MDEyODAwMDA0MlowRzELMAkGA1UEBhMCVVMxIjAgBgNVBAoT<br />GUdvb2dsZSBUcnVzdCBTZXJ2aWNlcyBMTEMxFDASBgNVBAMTC0dUUyBSb290IFIx<br />MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAthECix7joXebO9y/lD63<br />ladAPKH9gvl9MgaCcfb2jH/76Nu8ai6Xl6OMS/kr9rH5zoQdsfnFl97vufKj6bwS<br />iV6nqlKr+CMny6SxnGPb15l+8Ape62im9MZaRw1NEDPjTrETo8gYbEvs/AmQ351k<br />KSUjB6G00j0uYODP0gmHu81I8E3CwnqIiru6z1kZ1q+PsAewnjHxgsHA3y6mbWwZ<br />DrXYfiYaRQM9sHmklCitD38m5agI/pboPGiUU+6DOogrFZYJsuB6jC511pzrp1Zk<br />j5ZPaK49l8KEj8C8QMALXL32h7M1bKwYUH+E4EzNktMg6TO8UpmvMrUpsyUqtEj5<br />cuHKZPfmghCN6J3Cioj6OGaK/GP5Afl4/Xtcd/p2h/rs37EOeZVXtL0m79YB0esW<br />CruOC7XFxYpVq9Os6pFLKcwZpDIlTirxZUTQAs6qzkm06p98g7BAe+dDq6dso499<br />iYH6TKX/1Y7DzkvgtdizjkXPdsDtQCv9Uw+wp9U7DbGKogPeMa3Md+pvez7W35Ei<br />Eua++tgy/BBjFFFy3l3WFpO9KWgz7zpm7AeKJt8T11dleCfeXkkUAKIAf5qoIbap<br />sZWwpbkNFhHax2xIPEDgfg1azVY80ZcFuctL7TlLnMQ/0lUTbiSw1nH69MG6zO0b<br />9f6BQdgAmD06yK56mDcYBZUCAwEAAaOCATgwggE0MA4GA1UdDwEB/wQEAwIBhjAP<br />BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTkrysmcRorSCeFL1JmLO/wiRNxPjAf<br />BgNVHSMEGDAWgBRge2YaRQ2XyolQL30EzTSo//z9SzBgBggrBgEFBQcBAQRUMFIw<br />JQYIKwYBBQUHMAGGGWh0dHA6Ly9vY3NwLnBraS5nb29nL2dzcjEwKQYIKwYBBQUH<br />MAKGHWh0dHA6Ly9wa2kuZ29vZy9nc3IxL2dzcjEuY3J0MDIGA1UdHwQrMCkwJ6Al<br />oCOGIWh0dHA6Ly9jcmwucGtpLmdvb2cvZ3NyMS9nc3IxLmNybDA7BgNVHSAENDAy<br />MAgGBmeBDAECATAIBgZngQwBAgIwDQYLKwYBBAHWeQIFAwIwDQYLKwYBBAHWeQIF<br />AwMwDQYJKoZIhvcNAQELBQADggEBADSkHrEoo9C0dhemMXoh6dFSPsjbdBZBiLg9<br />NR3t5P+T4Vxfq7vqfM/b5A3Ri1fyJm9bvhdGaJQ3b2t6yMAYN/olUazsaL+yyEn9<br />WprKASOshIArAoyZl+tJaox118fessmXn1hIVw41oeQa1v1vg4Fv74zPl6/AhSrw<br />9U5pCZEt4Wi4wStz6dTZ/CLANx8LZh1J7QJVj2fhMtfTJr9w4z30Z209fOU0iOMy<br />+qduBmpvvYuR7hZL6Dupszfnw0Skfths18dG9ZKb59UhvmaSGZRVbNQpsg3BZlvi<br />d0lIKO2d1xozclOzgjXPYovJJIultzkMu34qQb9Sz/yilrbCgj8=<br />-----END CERTIFICATE-----</p></blockquote></div><p>This &quot;GTS Root R1&quot; is issued by &quot;GlobalSign Root CA&quot; so just adding this certificate is enough and it works. This is one of 3 certificates you added in your example but if you keep just this one it still works. Fine.</p><div class="quotebox"><blockquote><p>GlobalSign Root CA<br />============<br />-----BEGIN CERTIFICATE-----<br />MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG<br />A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv<br />b3QgQ0ExGzAZBgNVBAMTEkdsb2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAw<br />MDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9i<br />YWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJHbG9iYWxT<br />aWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDaDuaZ<br />jc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavp<br />xy0Sy6scTHAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp<br />1Wrjsok6Vjk4bwY8iGlbKk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdG<br />snUOhugZitVtbNV4FpWi6cgKOOvyJBNPc1STE4U6G7weNLWLBYy5d4ux2x8gkasJ<br />U26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrXgzT/LCrBbBlDSgeF59N8<br />9iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8E<br />BTADAQH/MB0GA1UdDgQWBBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0B<br />AQUFAAOCAQEA1nPnfE920I2/7LqivjTFKDK1fPxsnCwrvQmeU79rXqoRSLblCKOz<br />yj1hTdNGCbM+w6DjY1Ub8rrvrTnhQ7k4o+YviiY776BQVvnGCv04zcQLcFGUl5gE<br />38NflNUVyRRBnMRddWQVDf9VMOyGj/8N7yy5Y0b2qvzfvGn9LhJIZJrglfCm7ymP<br />AbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhHhm4qxFYxldBniYUr+WymXUad<br />DKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveCX4XSQRjbgbME<br />HMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A==<br />-----END CERTIFICATE-----</p></blockquote></div><br /><p>The same applies for my website &quot;lavnetremote.com&quot;. The last certificate in the chain is &quot;R11&quot;:</p><div class="quotebox"><blockquote><p>1 s:C = US, O = Let&#039;s Encrypt, CN = R11<br />&nbsp; &nbsp;i:C = US, O = Internet Security Research Group, CN = ISRG Root X1<br />&nbsp; &nbsp;a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256<br />&nbsp; &nbsp;v:NotBefore: Mar 13 00:00:00 2024 GMT; NotAfter: Mar 12 23:59:59 2027 GMT<br />-----BEGIN CERTIFICATE-----<br />MIIFBjCCAu6gAwIBAgIRAIp9PhPWLzDvI4a9KQdrNPgwDQYJKoZIhvcNAQELBQAw<br />TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh<br />cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMjQwMzEzMDAwMDAw<br />WhcNMjcwMzEyMjM1OTU5WjAzMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNTGV0J3Mg<br />RW5jcnlwdDEMMAoGA1UEAxMDUjExMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB<br />CgKCAQEAuoe8XBsAOcvKCs3UZxD5ATylTqVhyybKUvsVAbe5KPUoHu0nsyQYOWcJ<br />DAjs4DqwO3cOvfPlOVRBDE6uQdaZdN5R2+97/1i9qLcT9t4x1fJyyXJqC4N0lZxG<br />AGQUmfOx2S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lyDnkSHDHYPiNX3adPoPAcgdF3H2/W0rmoswMWgTlLn1Wu0mrks7/q<br />pdWfS6PJ1jty80r2VKsM/Dj3YIDfbjXKdaFU5C+8bhfJGqU3taKauuz0wHVGT3eo<br />6FlWkWYtbt4pgdamlwVeZEW+LM7qZEJEsMNPrfC03APKmZsJgpWCDWOKZvkZcvjV<br />uYkQ4omYCTX5ohy+knMjdOmdH9c7SpqEWBDC86fiNex+O0XOMEZSa8DA<br />-----END CERTIFICATE-----</p></blockquote></div><br /><p>Which is issued by &quot;ISRG Root X1&quot;, so if I just &quot;ISRG Root X1&quot; certificate, this also works:</p><div class="quotebox"><blockquote><p>ISRG Root X1<br />============<br />-----BEGIN CERTIFICATE-----<br />MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAwTzELMAkGA1UE<br />BhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2VhcmNoIEdyb3VwMRUwEwYDVQQD<br />EwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQG<br />EwJVUzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMT<br />DElTUkcgUm9vdCBYMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54r<br />Vygch77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+0TM8ukj1<br />3Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6UA5/TR5d8mUgjU+g4rk8K<br />b4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sWT8KOEUt+zwvo/7V3LvSye0rgTBIlDHCN<br />Aymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyHB5T0Y3HsLuJv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H9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPAmRGunUHBcnWEvgJBQl9n<br />JEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57demyPxgcYxn/eR44/KJ4EBs+lVDR3veyJ<br />m+kXQ99b21/+jh5Xos1AnX5iItreGCc=<br />-----END CERTIFICATE-----</p></blockquote></div><br /><p>So far so good but I found some examples where this doesn&#039;t work and I don&#039;t know why.</p><p>Let&#039;s check for example the website &quot;as.com&quot; which uses the same root cert of my website, this is the latest certificate in the chain:</p><div class="quotebox"><blockquote><p>-----END CERTIFICATE-----<br /> 1 s:C = US, O = Let&#039;s Encrypt, CN = R10<br />&nbsp; &nbsp;i:C = US, O = Internet Security Research Group, CN = ISRG Root X1<br />&nbsp; &nbsp;a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256<br />&nbsp; &nbsp;v:NotBefore: Mar 13 00:00:00 2024 GMT; NotAfter: Mar 12 23:59:59 2027 GMT<br />-----BEGIN CERTIFICATE-----<br />MIIFBTCCAu2gAwIBAgIQS6hSk/eaL6JzBkuoBI110DANBgkqhkiG9w0BAQsFADBP<br />MQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFy<br />Y2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBYMTAeFw0yNDAzMTMwMDAwMDBa<br />Fw0yNzAzMTIyMzU5NTlaMDMxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBF<br />bmNyeXB0MQwwCgYDVQQDEwNSMTAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK<br />AoIBAQDPV+XmxFQS7bRH/sknWHZGUCiMHT6I3wWd1bUYKb3dtVq/+vbOo76vACFL<br />YlpaPAEvxVgD9on/jhFD68G14BQHlo9vH9fnuoE5CXVlt8KvGFs3Jijno/QHK20a<br />/6tYvJWuQP/py1fEtVt/eA0YYbwX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KgRJeZ9wygIaehbHFHFhcBaMDKpiZlBHyz<br />rsnnlFXCb5s8HKn5LsUgGvB24L7sGNZP2CX7dhHov+YhD+jozLW2p9W4959Bz2Ei<br />RmqDtmiXLnzqTpXbI+suyCsohKRg6Un0RC47+cpiVwHiXZAW+cn8eiNIjqbVgXLx<br />KPpdzvvtTnOPlC7SQZSYmdunr3Bf9b77AiC/ZidstK36dRILKz7OA54=<br />-----END CERTIFICATE-----</p></blockquote></div><br /><p>As you can see, the issuer is also &quot;ISRG Root X1&quot;, the same root certificate from Let&#039;s Encrypt I&#039;m using in my website. However, if you try to connect to &quot;as.com&quot; with &quot;ISRG Root X1&quot; certificate, it fails.</p><p>Then I just used the complete bundle from Mozilla and I observed that it works so I just deleted cert by cert until getting the root cert needed for this site. It&#039;s this one:</p><div class="quotebox"><blockquote><p>GlobalSign Root CA - R3<br />============<br />-----BEGIN CERTIFICATE-----<br />MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4<br />GA1UECxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbF<br />NpZ24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwM<br />zE4MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzET<br />MBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjCCASIwDQY<br />JKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2Ec<br />WtiHL8RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUh<br />hB5uzsTgHeMCOFJ0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL<br />0gRgykmmKPZpO/bLyCiR5Z2KYVc3rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65<br />TpjoWc4zdQQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjlOCZgdbKfd/+RFO+uIEn8rU<br />AVSNECMWEZXriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2xmmFghcCA<br />wEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O<br />BBYEFI/wS3+oLkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNv<br />AUKr+yAzv95ZURUm7lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8<br />dEe3jgr25sbwMpjjM5RcOO5LlXbKr8EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw<br />8lo/s7awlOqzJCK6fBdRoyV3XpYKBovHd7NADdBj+1EbddTKJd+82cEHhXXipa0<br />095MJ6RMG3NzdvQXmcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18YIvDQVE<br />TI53O9zJrlAGomecsMx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02<br />JQZR7rkpeDMdmztcpHWD9f<br />-----END CERTIFICATE-----</p></blockquote></div><p>But I cannot see this certificate anywhere in the chain. It works if you just type this only certificate, even if the &quot;ISRG Root X1&quot; is not present (???)</p><br /><p>Also just another different case with the website &quot;marca.com&quot;. In this case I am always getting &quot;ASN_AFTER_DATE_E, -151, ASN date error, current date after&quot; no matter what certificates I use. I cannot see any problem with dates when inspecting the chain received with openssl.</p><br /><br /><p>Now another doubt related to user_settings.h file. Where to define custom #define properties in my project?</p><p>I am using wolfSSL through ESP Component Registry.</p><p>For these tests I am setting the #define diferectives in the file user_settings contained in the downloaded component: &quot;my_project\...\managed_components\wolfssl__wolfssl\include&quot;</p><p>But this folder is out of the repository so it doesn&#039;t seem to be the correct place.</p><p>I can also see a README.md inside this folder that says:</p><div class="codebox"><pre><code># ./include

The wolfSSL-related `components/[name]/include` directory should be empty for all components except wolfssl.

See wolfssl for the `config.h` and `user_settings.h` files to publish.

Files in this directory are renamed with `.bak` suffixes when performing publish-time build checks.</code></pre></div><br /><p>But it&#039;s not clear to me what this means. I tried to put a copy of user_settings.h as a local component in &quot;myproject/components/wolfssl/include&quot; according to these lines of the CMakeLists.txt</p><div class="quotebox"><blockquote><p># wolfSSL user_settings.h may be in the local project.<br />&nbsp; &nbsp; # TODO check if exists and possibly set to ESP-IDF<br />&nbsp; &nbsp; set(WOLFSSL_PROJECT_DIR &quot;${CMAKE_HOME_DIRECTORY}/components/wolfssl&quot;)<br />&nbsp; &nbsp; message(STATUS &quot;WOLFSSL_PROJECT_DIR TEST = ${WOLFSSL_PROJECT_DIR}&quot;)</p><p>&nbsp; &nbsp; string(REPLACE &quot;/&quot; &quot;//&quot; STR_WOLFSSL_PROJECT_DIR &quot;${WOLFSSL_PROJECT_DIR}&quot;)<br />&nbsp; &nbsp; add_compile_definitions(WOLFSSL_USER_SETTINGS_DIR=&quot;${STR_WOLFSSL_PROJECT_DIR}/include/user_settings.h&quot;)<br />&nbsp; &nbsp; message(STATUS &quot;Added definition for user_settings.h: -DWOLFSSL_USER_SETTINGS_DIR=\&quot;${STR_WOLFSSL_PROJECT_DIR}//include//user_settings.h\&quot;&quot;)</p></blockquote></div><p>but then I get an error during compilation time because you cannot have wolfSSL in two different folders at the same time.</p><p>I also read this discussion (<a href="https://github.com/wolfSSL/wolfssl/issues/7969">https://github.com/wolfSSL/wolfssl/issues/7969</a>) and the solution seems to be using sdkconfig properties file?</p><p>For example I can see you already have this config property: &quot;CONFIG_WOLFSSL_ALT_CERT_CHAINS&quot;, which is the equivalent of &quot;#define WOLFSSL_ALT_CERT_CHAINS&quot;.</p><p>What about the rest of the #define directives we added in this example that doesn&#039;t seem to have an equivalent in sdkconfig? Where should I set them?</p><br /><p>Thank you very much again for your help.</p>]]></description>
			<author><![CDATA[null@example.com (rocotocloc)]]></author>
			<pubDate>Thu, 19 Jun 2025 14:43:56 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8396.html#p8396</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple SSL connection providing root certs]]></title>
			<link>https://www.wolfssl.com/forums/post8393.html#p8393</link>
			<description><![CDATA[<p>Hi rocotocloc</p><p>Thank you very much for sharing the the code sample and your observations. That&#039;s really helpful. I have been able to reproduce the problem you are seeing, but only have a partial solution.</p><p>Per our related discussion at the other thread:</p><p><a href="https://www.wolfssl.com/forums/post8388.html">https://www.wolfssl.com/forums/post8388.html</a></p><p>I think the primary problem is an issue with either the certs and/or the user_settings.h</p><p>Could you please share your user_settings.h either here, and/or send to support [at] wolfssl.com ?</p><p>I&#039;ve put together a sample that works with TLS 1.2 here:</p><p><a href="https://github.com/gojimmypi/wolfssl/tree/ED25519_SHA2_fix/IDE/Espressif/ESP-IDF/examples/wolfssl_client">https://github.com/gojimmypi/wolfssl/tr … ssl_client</a></p><p>Your code is in the `other.c` source file:</p><p><a href="https://github.com/gojimmypi/wolfssl/blob/ED25519_SHA2_fix/IDE/Espressif/ESP-IDF/examples/wolfssl_client/main/other.c">https://github.com/gojimmypi/wolfssl/bl … in/other.c</a></p><p>See the limited certs that I am using here:</p><p><a href="https://github.com/gojimmypi/wolfssl/blob/a4781adfd3817bc2748945e40fd067dfbfec7322/IDE/Espressif/ESP-IDF/examples/wolfssl_client/main/mozillarootcerts.pem#L1">https://github.com/gojimmypi/wolfssl/bl … rts.pem#L1</a></p><p>TLS 1.3 is considerably more strict, and I&#039;ve not yet been able to assemble to proper certs that will work. </p><p>I&#039;ll work on this more tomorrow, just wanted to reply here &amp; share my progress. It is an interesting problem.</p>]]></description>
			<author><![CDATA[null@example.com (gojimmypi)]]></author>
			<pubDate>Thu, 19 Jun 2025 02:48:55 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8393.html#p8393</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple SSL connection providing root certs]]></title>
			<link>https://www.wolfssl.com/forums/post8391.html#p8391</link>
			<description><![CDATA[<p>Hi,</p><p>Ok let me share some more data after further tests.</p><p>With code above, I finally found some websites that work, for example this one &quot;ww w.as.com&quot; (notice the blank space to avoid link limit)</p><p>Related to Google website I could see it was related to SNI so I added:</p><div class="codebox"><pre><code>#define HAVE_SNI</code></pre></div><p>And this after creating the context:</p><div class="codebox"><pre><code>#ifdef HAVE_SNI
    ret_i = wolfSSL_CTX_UseSNI(ctx, WOLFSSL_SNI_HOST_NAME, TLS_SMP_TARGET_HOST,
                               strlen(TLS_SMP_TARGET_HOST));
    if (ret_i != WOLFSSL_SUCCESS)
    {
        ESP_LOGE(TAG, &quot;ERROR: failed to set SNI for %s, ret=%d\n&quot;,
                 TLS_SMP_TARGET_HOST, ret_i);
    }
    else
    {
        ESP_LOGI(TAG, &quot;SNI set for %s&quot;, TLS_SMP_TARGET_HOST);
    }
#endif</code></pre></div><p>But now I am getting error -155 instead of -188.</p><p>When I test with openssl:</p><div class="codebox"><pre><code>openssl s_client -showcerts -connect www.google.com:443</code></pre></div><p>I can see this is the last cert in the chain:</p><div class="quotebox"><blockquote><p>2 s:C = US, O = Google Trust Services LLC, CN = GTS Root R1<br />&nbsp; &nbsp;i:C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign Root CA<br />&nbsp; &nbsp;a:PKEY: rsaEncryption, 4096 (bit); sigalg: RSA-SHA256<br />&nbsp; &nbsp;v:NotBefore: Jun 19 00:00:42 2020 GMT; NotAfter: Jan 28 00:00:42 2028 GMT<br />-----BEGIN CERTIFICATE-----<br />MIIFYjCCBEqgAwIBAgIQd70NbNs2+RrqIQ/E8FjTDTANBgkqhkiG9w0BAQsFADBX<br />MQswCQYDVQQGEwJCRTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEQMA4GA1UE<br />CxMHUm9vdCBDQTEbMBkGA1UEAxMSR2xvYmFsU2lnbiBSb290IENBMB4XDTIwMDYx<br />OTAwMDA0MloXDTI4MDEyODAwMDA0MlowRzELMAkGA1UEBhMCVVMxIjAgBgNVBAoT<br />GUdvb2dsZSBUcnVzdCBTZXJ2aWNlcyBMTEMxFDASBgNVBAMTC0dUUyBSb290IFIx<br />MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAthECix7joXebO9y/lD63<br />ladAPKH9gvl9MgaCcfb2jH/76Nu8ai6Xl6OMS/kr9rH5zoQdsfnFl97vufKj6bwS<br />iV6nqlKr+CMny6SxnGPb15l+8Ape62im9MZaRw1NEDPjTrETo8gYbEvs/AmQ351k<br />KSUjB6G00j0uYODP0gmHu81I8E3CwnqIiru6z1kZ1q+PsAewnjHxgsHA3y6mbWwZ<br />DrXYfiYaRQM9sHmklCitD38m5agI/pboPGiUU+6DOogrFZYJsuB6jC511pzrp1Zk<br />j5ZPaK49l8KEj8C8QMALXL32h7M1bKwYUH+E4EzNktMg6TO8UpmvMrUpsyUqtEj5<br />cuHKZPfmghCN6J3Cioj6OGaK/GP5Afl4/Xtcd/p2h/rs37EOeZVXtL0m79YB0esW<br />CruOC7XFxYpVq9Os6pFLKcwZpDIlTirxZUTQAs6qzkm06p98g7BAe+dDq6dso499<br />iYH6TKX/1Y7DzkvgtdizjkXPdsDtQCv9Uw+wp9U7DbGKogPeMa3Md+pvez7W35Ei<br />Eua++tgy/BBjFFFy3l3WFpO9KWgz7zpm7AeKJt8T11dleCfeXkkUAKIAf5qoIbap<br />sZWwpbkNFhHax2xIPEDgfg1azVY80ZcFuctL7TlLnMQ/0lUTbiSw1nH69MG6zO0b<br />9f6BQdgAmD06yK56mDcYBZUCAwEAAaOCATgwggE0MA4GA1UdDwEB/wQEAwIBhjAP<br />BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTkrysmcRorSCeFL1JmLO/wiRNxPjAf<br />BgNVHSMEGDAWgBRge2YaRQ2XyolQL30EzTSo//z9SzBgBggrBgEFBQcBAQRUMFIw<br />JQYIKwYBBQUHMAGGGWh0dHA6Ly9vY3NwLnBraS5nb29nL2dzcjEwKQYIKwYBBQUH<br />MAKGHWh0dHA6Ly9wa2kuZ29vZy9nc3IxL2dzcjEuY3J0MDIGA1UdHwQrMCkwJ6Al<br />oCOGIWh0dHA6Ly9jcmwucGtpLmdvb2cvZ3NyMS9nc3IxLmNybDA7BgNVHSAENDAy<br />MAgGBmeBDAECATAIBgZngQwBAgIwDQYLKwYBBAHWeQIFAwIwDQYLKwYBBAHWeQIF<br />AwMwDQYJKoZIhvcNAQELBQADggEBADSkHrEoo9C0dhemMXoh6dFSPsjbdBZBiLg9<br />NR3t5P+T4Vxfq7vqfM/b5A3Ri1fyJm9bvhdGaJQ3b2t6yMAYN/olUazsaL+yyEn9<br />WprKASOshIArAoyZl+tJaox118fessmXn1hIVw41oeQa1v1vg4Fv74zPl6/AhSrw<br />9U5pCZEt4Wi4wStz6dTZ/CLANx8LZh1J7QJVj2fhMtfTJr9w4z30Z209fOU0iOMy<br />+qduBmpvvYuR7hZL6Dupszfnw0Skfths18dG9ZKb59UhvmaSGZRVbNQpsg3BZlvi<br />d0lIKO2d1xozclOzgjXPYovJJIultzkMu34qQb9Sz/yilrbCgj8=<br />-----END CERTIFICATE-----</p></blockquote></div><p>And &quot;GTS Root R1&quot; is already included in the cert bundle file from Mozilla, so I don&#039;t know why&#039;s failing.</p><br /><p>Also I was checking my website: &quot;<a href="http://www.lavnetremote.com">www.lavnetremote.com</a>&quot; with every combination and it&#039;s always failing with -155. I don&#039;t know why in this case because the last cert sent has as root &quot;ISRG Root X1&quot; which is the same of the website I indicated at the beginning it was working (as.com):</p><br /><p> </p><div class="quotebox"><blockquote><p>1 s:C = US, O = Let&#039;s Encrypt, CN = R10<br />&nbsp; &nbsp;i:C = US, O = Internet Security Research Group, CN = ISRG Root X1<br />&nbsp; &nbsp;a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256<br />&nbsp; &nbsp;v:NotBefore: Mar 13 00:00:00 2024 GMT; NotAfter: Mar 12 23:59:59 2027 GMT<br />-----BEGIN CERTIFICATE-----<br />MIIFBTCCAu2gAw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AgEAkrHnQTfreZ2B5s3iJeE6IOmQRJWjgVzPw139vaBw1bGWKCIL0vIo<br />zwzn1OZDjCQiHcFCktEJr59L9MhwTyAWsVrdAfYf+B9haxQnsHKNY67u4s5Lzzfd<br />u6PUzeetUK29v+PsPmI2cJkxp+iN3epi4hKu9ZzUPSwMqtCceb7qPVxEbpYxY1p9<br />1n5PJKBLBX9eb9LU6l8zSxPWV7bK3lG4XaMJgnT9x3ies7msFtpKK5bDtotij/l0<br />GaKeA97pb5uwD9KgWvaFXMIEt8jVTjLEvwRdvCn294GPDF08U8lAkIv7tghluaQh<br />1QnlE4SEN4LOECj8dsIGJXpGUk3aU3KkJz9icKy+aUgA+2cP21uh6NcDIS3XyfaZ<br />QjmDQ993ChII8SXWupQZVBiIpcWO4RqZk3lr7Bz5MUCwzDIA359e57SSq5CCkY0N<br />4B6Vulk7LktfwrdGNVI5BsC9qqxSwSKgRJeZ9wygIaehbHFHFhcBaMDKpiZlBHyz<br />rsnnlFXCb5s8HKn5LsUgGvB24L7sGNZP2CX7dhHov+YhD+jozLW2p9W4959Bz2Ei<br />RmqDtmiXLnzqTpXbI+suyCsohKRg6Un0RC47+cpiVwHiXZAW+cn8eiNIjqbVgXLx<br />KPpdzvvtTnOPlC7SQZSYmdunr3Bf9b77AiC/ZidstK36dRILKz7OA54=<br />-----END CERTIFICATE-----</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (rocotocloc)]]></author>
			<pubDate>Wed, 18 Jun 2025 15:43:03 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8391.html#p8391</guid>
		</item>
		<item>
			<title><![CDATA[Simple SSL connection providing root certs]]></title>
			<link>https://www.wolfssl.com/forums/post8387.html#p8387</link>
			<description><![CDATA[<p>Hello,</p><p>I am following Espressif example projects from GitHub to just open an https:443 connection to any website but I am always getting error -188 &quot;ASN sig error, no CA signer to verify certificate&quot;. I am missing something but I don&#039;t know what.</p><p>I am using this example especifically but also checked some others and all of them look very similar: <a href="https://github.com/wolfSSL/wolfssl/tree/master/IDE/Espressif/ESP-IDF/examples/wolfssl_client">https://github.com/wolfSSL/wolfssl/tree … ssl_client</a></p><p>As you can see I am trying to connect to google.com and I am providing a bundle of root certificates taken from Mozilla site: <a href="https://curl.se/ca/cacert.pem.">https://curl.se/ca/cacert.pem.</a> That&#039;s the file you can see in the code below as &quot;mozilla_root_certs_pem&quot;</p><p>I&#039;ve tried to connect to different sites and also providing not that certificate bundle with all root certs but the specific root cert of the site I am connecting to. Always getting the same -188 error.</p><p>This is my code:</p><div class="codebox"><pre><code>// file included in CMakeLists.txt
extern const unsigned char mozilla_root_certs_pem_start[] asm(&quot;_binary_mozillarootcerts_pem_start&quot;);
extern const unsigned char mozilla_root_certs_pem_end[] asm(&quot;_binary_mozillarootcerts_pem_end&quot;);

WOLFSSL_ESP_TASK tls_smp_client_task_2(void *args)
{
#define TLS_SMP_TARGET_HOST &quot;www.google.com&quot;
#define TLS_SMP_DEFAULT_PORT 443

#if defined(SINGLE_THREADED)
    int ret = ESP_OK;
#define TLS_SMP_CLIENT_TASK_RET ret
#else
#define TLS_SMP_CLIENT_TASK_RET
#endif
    char buff[256];
    const char sndMsg[] = &quot;GET / HTTP/1.1\r\nAccept: */*\r\n&quot;;
    const char *ch = TLS_SMP_TARGET_HOST; /* see wifi_connect.h */
    struct sockaddr_in servAddr;

    struct hostent *hp;
    struct ip4_addr *ip4_addr;
    int ret_i; /* interim return values */
    int err;   /* interim return values */
    int sockfd;
    int doPeerCheck;
    int sendGet;
#ifdef DEBUG_WOLFSSL
    int this_heap = 0;
#endif
#ifndef NO_DH
    int minDhKeyBits = DEFAULT_MIN_DHKEY_BITS;
#endif

    /* declare wolfSSL objects */
    WOLFSSL_CTX *ctx;
    WOLFSSL *ssl;

    size_t len;

    WOLFSSL_ENTER(TLS_SMP_CLIENT_TASK_NAME);

    doPeerCheck = 1;
    sendGet = 1;

#ifdef DEBUG_WOLFSSL
    WOLFSSL_MSG(&quot;Debug ON&quot;);
    ShowCiphers(NULL);
#endif
    /* Initialize wolfSSL */
    wolfSSL_Init();

    /* Create a socket that uses an Internet IPv4 address,
     * Sets the socket to be stream based (TCP),
     * 0 means choose the default protocol. */
    if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
    {
        ESP_LOGE(TAG, &quot;ERROR: failed to create the socket\n&quot;);
    }

    ESP_LOGI(TAG, &quot;get target IP address&quot;);

    hp = gethostbyname(TLS_SMP_TARGET_HOST);
    if (!hp)
    {
        ESP_LOGE(TAG, &quot;Failed to get host name.&quot;);
        ip4_addr = NULL;
    }
    else
    {
        ip4_addr = (struct ip4_addr *)hp-&gt;h_addr;
        ESP_LOGI(TAG, &quot;Host name: %s&quot;, hp-&gt;h_name);
    }

    /* Create and initialize WOLFSSL_CTX */
    ctx = wolfSSL_CTX_new(wolfSSLv23_client_method()); /* SSL 3.0 - TLS 1.3. */
    /*   options:   */
    /* ctx = wolfSSL_CTX_new(wolfSSLv1_2_client_method());      only TLS 1.2 */
    /* ctx = wolfSSL_CTX_new(wolfSSLv1_3_client_method());      only TLS 1.3 */
    /* wolfSSL_CTX_NoTicketTLSv12(); */
    /* wolfSSL_NoTicketTLSv12();     */
    if (ctx == NULL)
    {
        ESP_LOGE(TAG, &quot;ERROR: failed to create WOLFSSL_CTX\n&quot;);
    }

    // load certs
    ret_i = wolfSSL_CTX_load_verify_buffer(ctx,
                                           mozilla_root_certs_pem_start,
                                           mozilla_root_certs_pem_end - mozilla_root_certs_pem_start,
                                           WOLFSSL_FILETYPE_PEM);

    if (ret_i != WOLFSSL_SUCCESS)
    {
        ESP_LOGE(TAG, &quot;ERROR: failed to load CA cert %d, &quot;
                      &quot;please check the file.\n&quot;,
                 ret_i);
    }
    {
        ESP_LOGI(TAG, &quot;CA cert loaded successfully&quot;);
    }

    /* Initialize the server address struct with zeros */
    memset(&amp;servAddr, 0, sizeof(servAddr));

    /* Fill in the server address */
    servAddr.sin_family = AF_INET;                   /* using IPv4      */
    servAddr.sin_port = htons(TLS_SMP_DEFAULT_PORT); /* on DEFAULT_PORT */

    if (*ch &gt;= &#039;1&#039; &amp;&amp; *ch &lt;= &#039;9&#039;)
    {
        /* Get the server IPv4 address from the command line call */
        WOLFSSL_MSG(&quot;inet_pton&quot;);
        if ((ret_i = inet_pton(AF_INET,
                               TLS_SMP_TARGET_HOST,
                               &amp;servAddr.sin_addr)) != 1)
        {
            ESP_LOGE(TAG, &quot;ERROR: invalid address ret=%d\n&quot;, ret_i);
        }
        ESP_LOGI(TAG, &quot;Using IP address: %s&quot;, TLS_SMP_TARGET_HOST);
    }
    else
    {
        servAddr.sin_addr.s_addr = ip4_addr-&gt;addr;
        ESP_LOGI(TAG, &quot;Using host name: %s&quot;, TLS_SMP_TARGET_HOST);
    }

    /* Connect to the server */
    sprintf(buff,
            &quot;Connecting to server....%s (port:%d)&quot;,
            TLS_SMP_TARGET_HOST,
            TLS_SMP_DEFAULT_PORT);
    ESP_LOGI(TAG, &quot;%s\n&quot;, buff);

    if ((ret_i = connect(sockfd,
                         (struct sockaddr *)&amp;servAddr,
                         sizeof(servAddr))) == -1)
    {
        ESP_LOGE(TAG, &quot;ERROR: failed to connect ret=%d\n&quot;, ret_i);
    }

    WOLFSSL_MSG(&quot;Create a WOLFSSL object&quot;);
    /* Create a WOLFSSL object */
    if ((ssl = wolfSSL_new(ctx)) == NULL)
    {
        ESP_LOGE(TAG, &quot;ERROR: failed to create WOLFSSL object\n&quot;);
    }
    else
    {
        ESP_LOGI(TAG, &quot;WOLFSSL object created successfully&quot;);
    }

    /* Attach wolfSSL to the socket */
    ret_i = wolfSSL_set_fd(ssl, sockfd);
    if (ret_i == WOLFSSL_SUCCESS)
    {
        ESP_LOGI(TAG, &quot;wolfSSL_set_fd success&quot;);
    }
    else
    {
        ESP_LOGE(TAG, &quot;ERROR: failed wolfSSL_set_fd. Error: %d\n&quot;, ret_i);
    }

    ESP_LOGI(TAG, &quot;Connect to wolfSSL server...&quot;);
    ret_i = wolfSSL_connect(ssl);

    if (ret_i == WOLFSSL_SUCCESS)
    {

        ESP_LOGI(TAG, &quot;Connect success! Sending message...&quot;);
        /* Get a message for the server from stdin */
        WOLFSSL_MSG(&quot;Message for server: &quot;);
        memset(buff, 0, sizeof(buff));

        len = XSTRLEN(sndMsg);
        strncpy(buff, sndMsg, len);
        buff[len] = &#039;\0&#039;;
        ESP_LOGI(TAG, &quot;SSL connect ok, sending message:\n\n%s\n&quot;, buff);

        /* Send the message to the server */
        do
        {
            err = 0; /* reset error */
            ret_i = wolfSSL_write(ssl, buff, len);
            if (ret_i &lt;= 0)
            {
                err = wolfSSL_get_error(ssl, 0);
            }
        } while (err == WOLFSSL_ERROR_WANT_WRITE ||
                 err == WOLFSSL_ERROR_WANT_READ);

        if (ret_i != len)
        {
            ESP_LOGE(TAG, &quot;ERROR: failed to write\n&quot;);
        }
        else
        {
            ESP_LOGI(TAG, &quot;Message sent! Awaiting response...&quot;);
        }

        /* Read the server data into our buff array */
        memset(buff, 0, sizeof(buff));

        do
        {
            err = 0; /* reset error */
            ret_i = wolfSSL_read(ssl, buff, sizeof(buff));
            if (ret_i &lt;= 0)
            {
                err = wolfSSL_get_error(ssl, 0);
            }
        } while ((err == WOLFSSL_ERROR_WANT_READ) ||
                 (err == WOLFSSL_ERROR_WANT_WRITE));

        if (ret_i &lt; 0)
        {
            ESP_LOGE(TAG, &quot;ERROR: failed to read\n&quot;);
        }

        /* Show any data the server sends */
        ESP_LOGI(TAG, &quot;Server response: \n\n%s\n&quot;, buff);

        ret_i = wolfSSL_shutdown(ssl);
        while (ret_i == WOLFSSL_SHUTDOWN_NOT_DONE)
        {
            ret_i = wolfSSL_shutdown(ssl); /* bidirectional shutdown */
            if (ret_i == WOLFSSL_SUCCESS)
            {
                ESP_LOGI(TAG, &quot;Bidirectional shutdown complete\n&quot;);
                break;
            }
            else if (ret_i != WOLFSSL_SHUTDOWN_NOT_DONE)
            {
                ESP_LOGE(TAG, &quot;Bidirectional shutdown failed\n&quot;);
                break;
            }
        }
        if (ret_i != WOLFSSL_SUCCESS)
        {
            ESP_LOGE(TAG, &quot;Bidirectional shutdown failed\n&quot;);
        }

    } /* wolfSSL_connect(ssl) == WOLFSSL_SUCCESS) */
    else
    {
        ESP_LOGE(TAG, &quot;ERROR: failed to connect to wolfSSL. &quot;
                      &quot;Error: %d\n&quot;,
                 ret_i);
        int err = wolfSSL_get_error(ssl, 0);
        ESP_LOGE(TAG, &quot;wolfSSL_get_error: %d\n&quot;,
                 err);
    }

    ESP_LOGI(TAG, &quot;Cleanup and exit&quot;);
    wolfSSL_free(ssl);     /* Release the wolfSSL object memory        */
    wolfSSL_CTX_free(ctx); /* Free the wolfSSL context object          */
    wolfSSL_Cleanup();     /* Cleanup the wolfSSL environment          */
    close(sockfd);         /* Close the connection to the server       */

    vTaskDelete(NULL);

    return TLS_SMP_CLIENT_TASK_RET;
}</code></pre></div><br /><p>And this is the output:</p><div class="quotebox"><blockquote><p>I (3887) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us<br />I (3905) wifi:&lt;ba-add&gt;idx:0 (ifx:0, 12:a7:b9:4e:84:5e), tid:4, ssn:0, winSize:64<br />I (3922) wifi:AP&#039;s beacon interval = 102400 us, DTIM period = 1<br />I (4915) esp_netif_handlers: example_netif_sta ip: 172.28.5.245, mask: 255.255.255.0, gw: 172.28.5.1<br />I (4916) example_connect: Got IPv4 event: Interface &quot;example_netif_sta&quot; address: 172.28.5.245<br />I (5112) example_connect: Got IPv6 event: Interface &quot;example_netif_sta&quot; address: fe80:0000:0000:0000:96e6:86ff:fe92:d4e4, type: ESP_IP6_ADDR_IS_LINK_LOCAL<br />I (5115) example_common: Connected to example_netif_sta<br />I (5120) example_common: - IPv4 address: 172.28.5.245,<br />I (5125) example_common: - IPv6 address: fe80:0000:0000:0000:96e6:86ff:fe92:d4e4, type: ESP_IP6_ADDR_IS_LINK_LOCAL<br />I (5636) time_helper: The current date/time is: Fri Jun&nbsp; 6 15:43:24 2025<br />I (6636) time_helper: Waiting for NTP to sync time... (1/10)<br />I (6637) time_helper: The current date/time is: Fri Jun&nbsp; 6 15:43:25 2025<br />I (7637) time_helper: Waiting for NTP to sync time... (2/10)<br />I (7638) time_helper: The current date/time is: Fri Jun&nbsp; 6 15:43:26 2025<br />I (8536) wifi:&lt;ba-add&gt;idx:1 (ifx:0, 12:a7:b9:4e:84:5e), tid:0, ssn:0, winSize:64<br />I (8589) time_helper: Waiting for NTP to sync time... (3/10)<br />I (8590) time_helper: The current date/time is: Wed Jun 18 03:52:51 2025<br />I (8591) time_helper: Successfully set time via NTP servers.<br />I (8596) main: Initial Stack Used (before wolfSSL Server): 2240 bytes<br />I (8602) main: Starting TLS Client task ...</p><p>I (8606) main: main tls_smp_client_init heap @ 0x3ffbac24 = 236616<br />I (8612) client-tls: get target IP address<br />I (8637) client-tls: Host name: google.com<br />I (9031) client-tls: CA cert loaded successfully<br />I (9032) client-tls: Using host name: google.com<br />I (9032) client-tls: Connecting to server....www.google.com (port:443)</p><p>I (9063) client-tls: WOLFSSL object created successfully<br />I (9064) client-tls: wolfSSL_set_fd success<br />I (9064) client-tls: Connect to wolfSSL server...<br />E (9557) client-tls: ERROR: failed to connect to wolfSSL. Error: -1</p><p>E (9558) client-tls: wolfSSL_get_error: -188</p><p>I (9558) client-tls: Cleanup and exit</p></blockquote></div><br /><p>If I remove the peer verification by adding the next line before the connection:</p><div class="codebox"><pre><code>wolfSSL_CTX_set_verify(ctx, WOLFSSL_VERIFY_NONE, 0);</code></pre></div><p>Then at least connects, just confirming it&#039;s a problem with cert verification:</p><br /><div class="quotebox"><blockquote><p>I (7610) client-tls: Using host name: google.com<br />I (7610) client-tls: Connecting to server....www.google.com (port:443)</p><p>I (7641) client-tls: WOLFSSL object created successfully</p><p>I (7641) client-tls: WOLFSSL object created successfully<br />I (7641) client-tls: WOLFSSL object created successfully<br />I (7642) client-tls: wolfSSL_set_fd success<br />I (7642) client-tls: wolfSSL_set_fd success<br />I (7642) client-tls: Connect to wolfSSL server...<br />I (8236) client-tls: Connect success! Sending message...<br />I (8237) client-tls: SSL connect ok, sending message:</p><p>GET / HTTP/1.1<br />Accept: */*</p><br /><p>I (8240) client-tls: Message sent! Awaiting response...</p></blockquote></div><p>What am I missing here? How to load root certs to properly validate the chain received from websites?</p><p>Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (rocotocloc)]]></author>
			<pubDate>Wed, 18 Jun 2025 10:56:46 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8387.html#p8387</guid>
		</item>
	</channel>
</rss>
