Forum Discussion

Max001's avatar
Max001
New Member
5 years ago

How to change the TLS version SoapUI uses for MQTT

Hi everyone,

 

I am currently trying to get a "Receive MQTT Message"-TestStep to work which always runs into a timeout.

After checking all URLs, ports and changing vmoptions to use TLS 1.2 I still had no success.

 

I found an issue on Github that seems to describe a possible solution for my problem:

https://github.com/eclipse/paho.mqtt.java/issues/309

Here the SocketFactory that is required for the MqttClient has been created with "TLSv1". According to the issuer of that ticket changing it to "TLSv1.2" fixed his problem.

 

I took a look into the source code for the MQTT plugin by SmartBear (https://github.com/SmartBear/ready-mqtt-plugin/blob/master/src/main/java/com/smartbear/mqttsupport/connection/ssl/SSLCertsHelper.java) and noticed that "TLSv1" seems to be hardcoded: SSLContext context = SSLContext.getInstance("TLSv1");

 

Does anyone know if this means that MQTT will always use TLSv1 even if I changed my vmoptions to use TLSv1.2 ?

 

I tried recompiling this plugin after changing TLS to "TLSv1.2" in the code but just replacing it does not seem to work as all testSteps (not only MQTT) are missing afterwards.

 

Best regards

Max

No RepliesBe the first to reply