While replaying a Web Click & Script protocol/web http/html protocol script recorded against a secure HTTP (HTTPS) site, the following error was reported in the VuGen replay log:
Action.c(7): Error -27778: SSL protocol error when attempting to connect with host "<hostname>" [MsgId: MERR-27778]
Action.c(7): t=2320ms: Closed connection [0] to <hostname>:7002 after completing 0 requests
What does this error message mean and what action should be taken to ensure that the script replays successfully?
This error indicates that VuGen failed to negotiate the SSL version and cipher to use to interact with the server.
As the script was recorded successfully, the VuGen recording log should be inspected to determine the SSL version and ciphers used during recording.
In this case the following entries were found:
[Network Analyzer ( cf0: ae8)] (Sid: 2) Negotiate Proxy -> Server SSL Handshake (ssl:TLSv1, ciphers:AES256-SHA)
[Network Analyzer ( cf0: ae8)] (Sid: 2) Negotiate Client -> Proxy SSL Handshake (ssl:TLSv1, ciphers:RC4-MD5)
The "web_set_sockets_option" function may be used to instruct VuGen to use a particular SSL version if necessary. In this case it was found that setting the SSL version to "TLSv1" by adding the following at the start of the script allowed it to replay successfully:
web_set_sockets_option("SSL_VERSION", "TLS");
For more information on this function, see the Function Reference in VuGen. To access this use Help-> Function Reference.
For more details, You may refer to the below KB article link:
https://softwaresupport.hp.com/group/softwaresupport/search-result/-/facetsearch/document/KM1360574