Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Question AWS IoT TLS V1.2

Hello John,

 

i found the error in my paho script

i try with “client.tls_set(awsCert, deviceCertificate, devicePrivateKey, ssl.CERT_REQUIRED, ssl.PROTOCOL_TLSv1_2)”

only Python >2.7.8

 

but your implementation is “client.tls_set(awsCert, deviceCertificate, devicePrivateKey, ssl.CERT_REQUIRED, ssl.PROTOCOL_SSLv23)”

for Python 2.7.3

 

I do not understand very well the security implementation. SSLv2 or SSLv3 is not the same as TLSv1.2

TLSv1.2 is not yet condition for AWS Iot?

 

And a other question and remark.

 

Some time ago i tested the Arduino C++ Paho Implementation. Its running good but after seven days or two,

(was very different) the Arduino stopped to send MQTT Messages.

 

Then I had a discussion with Ian Craggs. Ian saw its a memory overflow.

Many strings the change for the MQTT Messages in a small Embedded Device and Memory is not the solution for a long time.

 

Whats the reason thats amazon build of the complete Paho C++ Implementation than communitcation to serial?

There are already test for a long time with this implementation?

 

Best Regards

Reiko

 

 

Von: paho-dev-bounces@xxxxxxxxxxx [mailto:paho-dev-bounces@xxxxxxxxxxx] Im Auftrag von Rotach, John
Gesendet: Montag, 30. November 2015 05:34
An: paho-dev@xxxxxxxxxxx
Betreff: Re: [paho-dev] Question AWS IoT TLS V1.2

 

Hello Reiko,

 

Glad to hear you're trying out AWS IoT with the Yún.  I encourage you to check out the AWS supported Yún SDK here:

 

 

It is the goal of this SDK to allow developers to target AWS IoT using the Arduino IDE and do minimal setup on the AR9331 processor / OpenWRT OS.  To accomplish this the SDK creates a python process on the linux processor which uses the Paho python MQTT client and communicates with the user's Arduino sketch using the serial bridge.  Documentation in the repo above gives a good description of this architecture.  One of the packages installed by the setup script is python-openssl which enables the TLS connection to the service.  This SDK also includes the source for the python runtime so you could take a look at that if you'd like to connect using your own python program on the AR9331.

 

Best regards,

 

John

SDE, AWS IoT

 

From: <paho-dev-bounces@xxxxxxxxxxx> on behalf of Reiko Nötzold <reiko.noetzold@xxxxxxxxx>
Reply-To: "paho-dev@xxxxxxxxxxx" <paho-dev@xxxxxxxxxxx>
Date: Sunday, November 29, 2015 at 11:00 AM
To: "paho-dev@xxxxxxxxxxx" <paho-dev@xxxxxxxxxxx>
Subject: [paho-dev] Question AWS IoT TLS V1.2

 

a questions to amazon AWS IoT Paho Implementation.

 

AWS IoT needs TLS V1.2.

But what is the difference to Arduino YUN Implementation in C++ and the other way in Python?

 

At YUN runs only Python 2.7.3 without TLS V1.2 support. :-(

With Python 3.5 and "import paho.mqtt.client as mqtt" i can connect and subscribed AWS IoT.

 

Whats the trick and other side of “AWS IoT Arduino YUN Paho C++ Implementation” that could connect with TLS V1.2?

 

Reiko


Back to the top