Thursday 19 February 2015

"Error -27778: SSL protocol error when attempting to connect with host" in load runner | SSL handshake with remote server Failed error

When i run the scripts in LRE i am facing 

"Error -27778: SSL protocol error when attempting to connect with host",

Error: Action.c(44): ssl_handle_status encounter error : SSL_ERROR_SSL, error message : error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version [MsgId: MMSG-26000]
Action.c(44): Error -27774: SSL protocol error when attempting to connect with host "XXXXX" [MsgId: MERR-27774]

Write the below functions at the start of of script:


web_set_sockets_option("SSL_VERSION", "TLS"); or
 web_set_sockets_option("SSL_VERSION", "TLS1.2"); or
web_set_sockets_option("SSL_VERSION", "1");

This forces the SSL connection to the server to use version 1 of the SSL protocol rather than letting the server suggest a version during the connection handshake. If it is not work talk with Developers to get the exact SSL_VERSION USED for communication by your Application.
If this doesn't works try to change the registry.

In the Registry change [HKEY_CURRENT_USER/Software/Mercury Interactive/LoadRunner/Protocols/WPlus/SSL/OpenSSL] "ReuseSSLSession" value to 1

Run-Time Settings -> Preferences -> Select "WinInet Replay Engine instead of Sockets (Windows Only)."

8 comments:

Upendra said...

to eliminate this intermittent SSL and “not a socket” errors that occurs when replaying the LoadRunner scenario in the controller or VuGen.

Modify your script(s) to include the following statements, these statement should be at the beginning of the script(s)

Vusert_int()

// Or

Action()

{

web_set_sockets_option("SSL_VERSION", "3");

web_set_sockets_option("MAX_CONNECTIONS_PER_HOST","1");
The first line web_set_sockets_option("SSL_VERSION", "3"); forces the SSL connection to use SSL version 3 instead of letting the server suggest a version during the connection handshake.

The second line web_set_sockets_option("MAX_CONNECTIONS_PER_HOST","1"); forces a single TCP connection to stay live between the Load Generator to the AUT servers. Ending the possibility of errors when LoadRunner sends data across that connection, if the server try to prematurely shutting down an existing connection

Unknown said...

Oracle dba online training by cheyat technologies

Course content : http://cheyat.com/oracle/oracle-dba-online-training-tutorials

For more info Email us : Trainings@cheyat.com

#cheyattechnologies #oracledbaonlinetraining

Unknown said...

thanks a lot

Unknown said...

thanks a lot

Anonymous said...

Thanks for the help bro :)

Anonymous said...

I am getting Error - 27743: Invalid Port [MsgId: MERR 27243]
Not able to proceed. Please help.
Using Load Runner 12.00

Vikram Katta said...

I have used below functions in the script. still scenario is failing in lr 12.02

web_set_sockets_option("SSL_VERSION", "3");

web_set_sockets_option("MAX_CONNECTIONS_PER_HOST","1");

can any one help me. is there any thing more to be added

Anonymous said...

What is the jmeter equivalent for web_set_socket_optoions();