As Federico Fissore says above, the Yún can only handle HTTPS (or SSL, whatever you want to call it) on the Linux side of the Yún.
The first way to do it is using Python with Python OpenSSL. The way you do this is by issuing the following commands via SSH or YunSerialTerminal:
opkg update
opkg install python-openssl
opkg update
will make sure the package list is up-to-date, and then opkg install
installs Python OpenSSL. And then you can talk to the Arduino using Python. This page on the Arduino website should help you in using Python with Arduino.
You could also use curl
with the -k
option in your sketch. For example:
Process process;
process.runShellCommand("curl -k http://example.net");
while(p.running()); // this waits for the command to be done before continuing
Also, if you want to download a file, you could use wget
. This would require you to upgrade wget
by again issuing these commands via SSH or YunSerialTerminal:
opkg update
opkg upgrade wget
And then you can just do this in your sketch:
Process process;
process.runShellCommand("wget http://example.net");
while(p.running()); // this waits for the command to be done before continuing