Skip to main content



      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 02:45 Go to next message
Eclipse UserFriend
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 03:42 Go to previous messageGo to next message
Eclipse UserFriend
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 05:25 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 18:03:44 EDT 2025

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

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

Back to the top