Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Regarding SSL for MQTT

Hi,

the automated CI tests within the repo have TLS certificates and a mosquitto config file which allow this test program to work.  You can see the commands that are executed to run the tests in the CMakeLists.txt file in the test directory.

To get debug messages from OpenSSL, you can set the environment variables:

MQTT_C_CLIENT_TRACE=ON

MQTT_C_CLIENT_TRACE_LEVEL=PROTOCOL

although the test5.c program does override these settings.  In the test5.c program, you should change

        MQTTAsync_setTraceLevel(MQTTASYNC_TRACE_ERROR);

to

        MQTTAsync_setTraceLevel(MQTTASYNC_TRACE_PROTOCOL);

to get OpenSSL debug messages.

Ian


On 21/05/2018 17:45, Velayuthaperumal wrote:

Dear Team,

            My requirement is i need to send data to mosquitto broker with asynchronous secured library.

            I had done sending data without SSL.

            I had generated server, client's keys and certificates.

            I copied to certs and ca_certificate of mosquitto folder and also changed mosquitto.conf file as required.

            i found that test5 binary which is for Mutual SSL authentication but when i run this binary, i got below prints

""""Assertion failed, file ../../src/../test/test5.c, line 719, description: There should be no failures in this test. test2aOnConnectFailure callback was called
20180521 214735.500 failed: test test2a. 4 tests run, 1 failures.
20180521 214735.500 Total tests run: 4
20180521 214735.500 verdict fail"""""

    I dont understand what it is. kindly help me with this.

    Kindly provide if any example is available for asynchronous ssl.


Thanks,

Perumal



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Eclipse Paho Project Lead & Mosquitto Committer

Back to the top