Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Java paho tls_set equivalent like in python(What is the java equivalent in paho for tls_set like in python?)
Java paho tls_set equivalent like in python [message #1840122] Wed, 07 April 2021 07:08
Debdutta Panda is currently offline Debdutta PandaFriend
Messages: 1
Registered: April 2021
Junior Member
Hi, I take a piece of python paho mqtt code from a sample:

client = mqtt.Client(client_id=client_id)

    # With Google Cloud IoT Core, the username field is ignored, and the
    # password field is used to transmit a JWT to authorize the device.
    client.username_pw_set(
        username="unused", password=create_jwt(project_id, private_key_file, algorithm)
    )

    # Enable SSL/TLS support.
    [b]client.tls_set(ca_certs=ca_certs, tls_version=ssl.PROTOCOL_TLSv1_2)[/b]


But in java paho mqtt i could not figured out what is the equivalent of tls_set to set ca_certs.
Thats why i can connect and disconnect but can not publish or subscribe.

So please help me to find the way to set ca_certs.
Thanks
Previous Topic:Paho in 4DIAC FORTE on Raspberry Pi 4B - won't initialise
Next Topic:Testing MQTT for dot net sample from two windows computer
Goto Forum:
  


Current Time: Fri May 03 07:25:54 GMT 2024

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

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

Back to the top