Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Why python sdk of mqtt needs pem file, while java sdk not?
Why python sdk of mqtt needs pem file, while java sdk not? [message #1755288] Thu, 02 March 2017 07:45 Go to next message
Jim Jin is currently offline Jim JinFriend
Messages: 2
Registered: March 2017
Junior Member
python mqtt client with tls:
tls_set(ca_certs, certfile=None, keyfile=None, cert_reqs=ssl.CERT_REQUIRED,
tls_version=ssl.PROTOCOL_TLSv1, ciphers=None)

it needs "ca_certs" which is a pem file.

java mqtt client with tls:
MqttClient mqttClient = new MqttClient("ssl://xxxx:8884", clientId);

No pem file is necessary.

Why?
Can I use python tls mqtt without pem file?
Re: Why python sdk of mqtt needs pem file, while java sdk not? [message #1759003 is a reply to message #1755288] Wed, 05 April 2017 07:42 Go to previous messageGo to next message
Ian Craggs is currently offline Ian CraggsFriend
Messages: 68
Registered: March 2013
Member
Python under the covers uses OpenSSL (written in C), which uses different configuration files for TLS/SSL to Java.
Re: Why python sdk of mqtt needs pem file, while java sdk not? [message #1759016 is a reply to message #1759003] Wed, 05 April 2017 09:25 Go to previous message
Jim Jin is currently offline Jim JinFriend
Messages: 2
Registered: March 2017
Junior Member
Is it possible to use any "default" root certificate in C/C++/Python as it does in Java?
Previous Topic:Paho release schedules
Next Topic:paho mqtt-ssl client not working
Goto Forum:
  


Current Time: Wed Nov 14 09:51:05 GMT 2018

Powered by FUDForum. Page generated in 0.02018 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top