Forum Discussion

rayapudi904's avatar
Occasional Contributor
7 years ago

"Error getting response; Received fatal alert:handshake_failure"

When we try to hit our API's in certain environments we are getting "Error getting response; Received fatal alert:handshake_failure" message. but same is working from browser. Could you please help me how to resolve this?

1 Reply

  • LexiAQA's avatar
    SmartBear Alumni (Retired)



    Please run curl with the --trace trace.txt and upload the trace.txt file here, so we can see if TLS or a version of SSL is being used to connect to the server.


    Also, you may need to add the server certificate to the JVM cacert file by doing the following:

    keytool -import -alias <alias> -file <cer> -keystore {Ready API install}\jre\lib\security\cacerts -storepass changeit
    where <alias> is the certificate alias in truststore (any string value, e.g. MyServer_cert)
    <cer> is the filepath to the cer-file.

    The keytool can be found in {Ready API install}\jre\bin directory.


    If you have any troubles with the keytool utility, you can use Portecle or any similar utility with GUI. The following video shows how you can import a certificate using Portecle: