Vugen MQTT SSL
I've been trying to create an MQTT script that requires a TLS connection. First, I was surprised that it only supported client certificates, with seemingly no support for dual SSL.
My issue now is after a lot of debugging as to why my connection wasn't working (seems I had to password protect my key file, MQTT_NONE didn't appear to work), I have now been able to connect using the Design Script interface. However, once I generate the code, the connection is no longer successful. There appears to be no logging information and the output simply hangs at the connecting stage. I posted code below. Any help would be greatly appreciated.
/* SSL/TLS settings */
mqtt_set_tls_certificate(client0, "client.crt", "client.encrypted.key", lr_unmask("5dc1ae1404cff78e22db"));
//mqtt_set_tls_parameters(client0, MQTT_TLS12, MQTT_DEFAULT_CIPHERS);
Re: Vugen MQTT SSL
Do you mean 2-Way TLS? Where the client has to send its certificate as part of its response in the TLS handshake?
I had good progress by having Wireshark running in the background while I was developing a script which uses TLS. I don't have direct experience in your situation, but I know LR has historically had problems referencing its own information out of the Hive in the Registry regarding the certificate files such that it was just flat wrong.
HKCU\Software\Mercury Interactive\LoadRunner\Protocols\WPlus\Servers\<yourserver> and you can see whether your data files are where LR has told itself they are.
I'm assuming you're not in a US Govt situation where you can't normally export the key of the certificate you're using.