Unexpected EOF at target - 2 way TLS to backend

I'm getting this error

{
    "fault": {
        "faultstring": "Unexpected EOF at target",
        "detail": {
            "errorcode": "messaging.adaptors.http.flow.UnexpectedEOFAtTarget"
        }
    }
}

We are using Apigee cloud version to connect to my client's backend using 2 way TLS.

Here is the target server setting

{
  "host": "gateway.xxx.com",
  "isEnabled": true,
  "name": "targetA",
  "port": 443,
  "sSLInfo": {
    "ciphers": [],
    "clientAuthEnabled": "true",
    "enabled": "true",
    "ignoreValidationErrors": false,
    "keyAlias": "wildcard.xxx.com 2018",
    "keyStore": "ref://keystoreA",
    "protocols": [],
    "trustStore": "ref://trustStoreA"
  }
}

When I send request to their development endpoint, no error. But when I send request to their production endpoint, I got the error. Is there any way for me to determine the problem?

0 4 989
4 REPLIES 4

@Anil Sagar Please advise

Just guessing: if it works with the development endpoint and not with the production endpoint, I suppose the problem is that the production server is rejecting the certs being offered by Apigee Edge. Have you checked this?

2-way TLS is a bit tricky, as it should be. You need to be very careful about configuring the trust and authentication on each end. That's where I would look first.

Last week I checked with client's infrastructure team, they fixed something at their end and now it works!

Any idea what is the fix provided by infra team? Is the fix provided in backend server or APIGEE?