<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Retrieving data over HTTPS (M5 Paper, but I think this is a generic question)]]></title><description><![CDATA[<p dir="auto">I'm sure this is basic but it's driving me crazy.  I can retrieve data over wifi from an "http:" source with no problem. But I can't figure out how to access a URL over https.</p>
<p dir="auto">All the examples I can find online - for Arduino, ESp32, or M5 - seem to use http: URLs in their demos. I've found references to WifiClientSecure, but not a usable example. Evidently simply substituting it for WifiClient is not sufficient!</p>
<p dir="auto">The  <code>canvas.drawJpgUrl</code> function works with an "https:" URL, so clearly there is no fundamental difficulty.</p>
<p dir="auto">Googling led me to this excellent library <a href="https://create.arduino.cc/projecthub/instanceofMA/fetch-the-easiest-way-to-make-http-requests-on-your-arduino-65bb24" target="_blank" rel="noopener noreferrer nofollow ugc">"Fetch"</a>: but alas the <a href="https://github.com/instanceofMA/arduino-fetch/tree/main/examples" target="_blank" rel="noopener noreferrer nofollow ugc">examples</a> don't compile, a problem others have noted.</p>
<p dir="auto">Probably part of the problem is the number of different libraries with similar or even identical names, and different versions of the same library.</p>
<p dir="auto">Please can someone recommend the current best (or at least good!) library to use, and point me at a working example?</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://community.m5stack.com/topic/4541/retrieving-data-over-https-m5-paper-but-i-think-this-is-a-generic-question</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 12:47:01 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4541.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Aug 2022 10:54:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Retrieving data over HTTPS (M5 Paper, but I think this is a generic question) on Fri, 26 Jan 2024 02:21:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/34671">@casascius</a> Interesting. In my case I'm using real certs from my cloud and it works. I don't know how a DNS name would work outside of localhost names.</p>
<p dir="auto">My main issue stated above was that I want a connection to stay open, and I wasn't able to figure that out.</p>
<p dir="auto">thanks.</p>
]]></description><link>https://community.m5stack.com/post/23463</link><guid isPermaLink="true">https://community.m5stack.com/post/23463</guid><dc:creator><![CDATA[konacurrents]]></dc:creator><pubDate>Fri, 26 Jan 2024 02:21:59 GMT</pubDate></item><item><title><![CDATA[Reply to Retrieving data over HTTPS (M5 Paper, but I think this is a generic question) on Thu, 25 Jan 2024 17:24:31 GMT]]></title><description><![CDATA[<p dir="auto">I had the same problem and was able to resolve it.  I'm using a made-up CA certificate, which in turn was used to sign a server key for my MQTT server.  I found all of these steps to be necessary to get WiFiClientSecure to talk to it without needing to call setInsecure().</p>
<ul>
<li>Provide that CA certificate to the WiFiClientSecure class by calling setCACert()</li>
<li>Access the remote host through its DNS name, not an IP address.  (It looks like ESP32 can find it either through traditional a DNS server, or by multicast mDNS such as yourhostname.local if it's on the same network)</li>
<li>The DNS name must be listed as a "DNS" entry in Subject Alternative Name section of the certificate on the remote host.  (I was able to use ChatGPT4 to walk me through creating the openssl "conf" file needed to generate a Certificate Signing Request and then ultimately the Certificate that met this criterion).</li>
</ul>
]]></description><link>https://community.m5stack.com/post/23458</link><guid isPermaLink="true">https://community.m5stack.com/post/23458</guid><dc:creator><![CDATA[casascius]]></dc:creator><pubDate>Thu, 25 Jan 2024 17:24:31 GMT</pubDate></item><item><title><![CDATA[Reply to Retrieving data over HTTPS (M5 Paper, but I think this is a generic question) on Tue, 19 Dec 2023 22:01:52 GMT]]></title><description><![CDATA[<p dir="auto">I have the <strong>WiFiClientSecure</strong> working to call a <strong>https</strong> at my cloud site running node-red.</p>
<p dir="auto">Follow these steps:</p>
<p dir="auto"><a href="https://randomnerdtutorials.com/esp32-https-requests/" target="_blank" rel="noopener noreferrer nofollow ugc">https://randomnerdtutorials.com/esp32-https-requests/</a></p>
<p dir="auto">What I cannot figure out is how to keep this connection <strong>open</strong> as it takes about 3 seconds to make a call. My MQTT is much faster.</p>
]]></description><link>https://community.m5stack.com/post/23091</link><guid isPermaLink="true">https://community.m5stack.com/post/23091</guid><dc:creator><![CDATA[konacurrents]]></dc:creator><pubDate>Tue, 19 Dec 2023 22:01:52 GMT</pubDate></item><item><title><![CDATA[Reply to Retrieving data over HTTPS (M5 Paper, but I think this is a generic question) on Sun, 21 Aug 2022 11:10:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> Thanks Felix, that got me over the hump! I think the issue was trying to convert my existing example directly.</p>
]]></description><link>https://community.m5stack.com/post/18410</link><guid isPermaLink="true">https://community.m5stack.com/post/18410</guid><dc:creator><![CDATA[Hamnet]]></dc:creator><pubDate>Sun, 21 Aug 2022 11:10:08 GMT</pubDate></item><item><title><![CDATA[Reply to Retrieving data over HTTPS (M5 Paper, but I think this is a generic question) on Sun, 21 Aug 2022 07:11:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> from what I have found, there seams to be an issue with https:// based access in Micropython and Arduino. Without knowing more I would guess it is to do with Certificates and security keys.</p>
]]></description><link>https://community.m5stack.com/post/18404</link><guid isPermaLink="true">https://community.m5stack.com/post/18404</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 21 Aug 2022 07:11:24 GMT</pubDate></item><item><title><![CDATA[Reply to Retrieving data over HTTPS (M5 Paper, but I think this is a generic question) on Sat, 20 Aug 2022 13:10:55 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/23937">@Hamnet</a></p>
<p dir="auto">the 'Fetch' library doesn't compile for me either. But I found this <a href="https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino" target="_blank" rel="noopener noreferrer nofollow ugc">example</a> from in the official Espressif github repository which compiles and runs fine.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18399</link><guid isPermaLink="true">https://community.m5stack.com/post/18399</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 20 Aug 2022 13:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to Retrieving data over HTTPS (M5 Paper, but I think this is a generic question) on Sat, 20 Aug 2022 12:03:21 GMT]]></title><description><![CDATA[<p dir="auto">(I should add - as a temporary workaround I can access an https: resource by calling <code>client.setInsecure();</code> but I'm looking for a proper solution.)</p>
]]></description><link>https://community.m5stack.com/post/18395</link><guid isPermaLink="true">https://community.m5stack.com/post/18395</guid><dc:creator><![CDATA[Hamnet]]></dc:creator><pubDate>Sat, 20 Aug 2022 12:03:21 GMT</pubDate></item></channel></rss>