SSL protocol error while replaying the script.

Got SSL error while replaying the script.


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


Used the web_set_sockets_option("SSL_VERSION","TLS");  to bypass the SSL error.


We are getting this error at many places in script.



Please provide answer to the below questions.


what is the reason for this error?


any settings can help instead of web_set_sockets_option ?



1 Reply
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: SSL protocol error while replaying the script.



As the script was recorded successfully, the VuGen recording log should be inspected to determine the SSL version and ciphers used during recording.
This error indicates that VuGen failed to negotiate the SSL version and cipher to use to interact with the server.
The "web_set_sockets_option" function may be used to instruct VuGen to use a particular SSL version if necessary. In your case it was found that setting the SSL version to "TLS", so by adding that function at the start of the script allowed it to replay successfully.





Chau Nguyen | SW Technical Support Consultant.
LoadRunner and Performance Center

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.