Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] SSL SUPPORT IN ECLIPSE PAHO USING JAVA CLIENT

When specifying the address of the MQTT server to connect to use ssl://address:port instead of tcp://adress:port  In addition SSL properties such as the keystore, keystore password will need to be set.  These are can can set using on the MqttConnectOptions class, setSSLProperties method. The SSL properties that are set are dependent on which Java Runtime is used.  

For an example of creating an SSL connection and setting the SSL properties take a look here:
http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/topic/com.ibm.mq.doc/tt60142_.htm

In the example where the package com.ibm.micro.mqttv3 is referenced this should be transposed to org.eclipse.paho.client.mqttv3

The default port for MQTT with SSL/TLS is 8883.


All the best
Dave Locke


 



From:        Tushar Bapte <tushar.bapte@xxxxxxxxx>
To:        paho-dev@xxxxxxxxxxx,
Date:        09/08/2012 05:08
Subject:        [paho-dev] SSL SUPPORT IN ECLIPSE PAHO USING JAVA CLIENT
Sent by:        paho-dev-bounces@xxxxxxxxxxx




Hi,

How to use SSL feature in MQTT client library in java.


Thanks,
Tushar Bapte.
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/paho-dev


Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Back to the top