Commander
Commander
1297 views

Getting SSL routines:ssl3_read_bytes:reason(1120) while firing the rest API

Jump to solution

Hi,

I need to pass a certificate and Key along with the request in the Loadrunner .

But i am getting the below error. The SSL version used is TLS1.2

Action.c(33): web_add_header("Content-Type") highest severity level was "warning" [MsgId: MMSG-26391]
Action.c(33): Notify: **************** End of messages from web_add_header *****************
Action.c(33): [SSL:] New SSL, socket=08154298 [0], connection=test123.test.net:8080, target=api.test.com:443, SSL=057D6C68, ctx=081B19B8, not reused, no session [MsgId: MMSG-26000]
Action.c(33): [SSL:] Received callback about handshake completion, connection=api.test.com:443, SSL=057D6C68, ctx=081B19B8, not reused, session address=057E6370, with no ID [MsgId: MMSG-26000]
Action.c(33): ssl_handle_status encounter error : SSL_ERROR_SSL, error message : error:14094460:SSL routines:ssl3_read_bytes:reason(1120) [MsgId: MMSG-26000]
Action.c(33): Error -27774: SSL protocol error when attempting to connect with host "test123.test.net" [MsgId: MERR-27774]
Action.c(33): Error -27760: Request "https://api.test.com/1/api/ViewAccount/v1.1/account-requests" failed [MsgId: MERR-27760]
Action.c(33): web_rest highest severity level was "ERROR", 0 body bytes, 138 header bytes [MsgId: MMSG-26388]
Ending action Action.

 

This is how i am passing the certificate.

    web_set_certificate_ex(
     "CertFilePath=TEST123.cer",
     "CertFormat=PEM",  
     "KeyFilePath=TESTKEY.key",
     "KeyFormat=PEM", 
     LAST );

 

The same is working fine from POSTMAN tool, not sure  why it is not working in Loadrunner.

Am i passing the certificates coorectly?

0 Likes
1 Solution

Accepted Solutions
Commander
Commander

THis has been resolved after installing the 12.53 Patch4 ..

Same has been working in 12.55version too.

View solution in original post

1 Reply
Commander
Commander

THis has been resolved after installing the 12.53 Patch4 ..

Same has been working in 12.55version too.

View solution in original post

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.