When you run configure_edison –version, are you getting 159 as result?
After following the steps from IoT - Setting up AWS IoT Thing SDK on the Intel® Edison Board | Intel® Developer Zone, did you have problems? Were you able to run all those commands and install all the requirements?
Have you tried to build your own image by following those instructions?
..you can add an append file (*.bbappend) for the openssl recipe to remove "-no-ssl3" from EXTRA_OECONF...
Yes, I have the latest version 159.
I followed the steps and everything worked fine until the last two commands with mosquitto. I got the following error:
root@myEdison:~# mosquitto_sub --cafile rootCA.pem --cert cert.pem --key privateKey.pem -h <MYID>.iot.us-east-1.amazonaws.com -p 8883 -q 1 -d -t topic/test -i clientid1
Client clientid1 sending CONNECT
OpenSSL Error: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Error: Protocol error
Unfortunately, I'm not so familiar with Linux at the moment to create my own build but I'm working on improving it. Anyway I was expecting that this IoT tutorial should have worked with the latest image without making my own one.
I’m going to investigate about this and replicate the issue in order to help you with this. Have you done another change in your image? Have you installed something else in the board or is this the only changes you have done?
This seems to be an error with obtaining the certification, take a look at: AWS Developer Forums: [Errno 1] _ssl.c:499: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICA
I suggest you to contact AWS Developer Forums:Discussion Forums for a more appropriate response.
Just one more question. Why do I get this message right after starting the aws cli setup (pip install awscli)?:
InsecurePlatformWarning: A true SSLContext object is not available.
This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning
Thanks and regards,
1 of 1 people found this helpful
I clarified the problem with the AWS support and it turned out that the version number of the mosquitto in the Edison image is lower than required by the AWS IoT service. It has to support wildcard TLS certificates. Mosquitto supports this starting from version 1.4.
Here is how I upgraded my mosquitto:
echo "src/gz i586 http://iotdk.intel.com/repos/1.5/iotdk/i586/" >> /etc/opkg/base-feeds.conf
opkg install util-linux-dev
tar xzf mosquitto-1.4.4
cp client/mosquitto_pub /usr/bin
cp client/mosquitto_sub /usr/bin
cp lib/libmosquitto.so.1 /usr/lib
cp src/mosquitto /usr/bin