# SSL: error:1408F10B:SSL routines:ssl3\_get\_record:wrong version number) while SSL handshaking to upstream

**URL:** <https://discuss.konghq.com/t/ssl-errorssl-routineswrong-version-number-while-ssl-handshaking-to-upstream/5298>\
**Category:** Questions\
**Created:** [January 14, 2020, 6:59am UTC](https://discuss.konghq.com/t/ssl-errorssl-routineswrong-version-number-while-ssl-handshaking-to-upstream/5298 "2020-01-14T06:59:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zarhayda](https://avatars.discourse-cdn.com/v4/letter/z/67e7ee/32.png) [@Zarhayda](https://discuss.konghq.com/u/Zarhayda)\
**Post date:** [January 14, 2020, 6:59am UTC](https://discuss.konghq.com/t/ssl-errorssl-routineswrong-version-number-while-ssl-handshaking-to-upstream/5298/1 "2020-01-14T06:59:39Z")

</div>

Hey I have a service set up to hit [https://api.statuspage.io](https://api.statuspage.io) with request-transformer plugin to pass in the apikey but I get this error

```
SSL_do_handshake() failed (SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number) while SSL handshaking to upstream, client: 172.20.0.1, server: kong, request: "GET /v1/pages/mt3cgp6g4zq0/components/tnwcnz8bydyd HTTP/1.1"

```

the service port is 443 and protocol is https for the service

I also have proxy\_ssl\_server\_name set to on in the nginx config

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [January 15, 2020, 6:08pm UTC](https://discuss.konghq.com/t/ssl-errorssl-routineswrong-version-number-while-ssl-handshaking-to-upstream/5298/2 "2020-01-15T18:08:53Z")

</div>

It seems like a protocol version mismatch between what Kong expects and what upstream expects.

Which TLS/SSL version is the upstream service expecting?

---

<div class="post-metadata">

**Author:** ![krish7919](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@krish7919](https://discuss.konghq.com/u/krish7919)\
**Post date:** [January 28, 2020, 9:56pm UTC](https://discuss.konghq.com/t/ssl-errorssl-routineswrong-version-number-while-ssl-handshaking-to-upstream/5298/3 "2020-01-28T21:56:23Z")

</div>

I get a 404 with an `ExternalName` service set to Datadog; is there a better way to debug this?

Maybe run Kong in debug mode to dump all the steps in its Service, Route, Plugin processing?

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [January 29, 2020, 3:57pm UTC](https://discuss.konghq.com/t/ssl-errorssl-routineswrong-version-number-while-ssl-handshaking-to-upstream/5298/4 "2020-01-29T15:57:25Z")

</div>

> [@krish7919](#):
>
> I get a 404 with an `ExternalName` service set to Datadog; is there a better way to debug this?

This sounds like a whole another issue. Please open another post. Let’s try not to hijack the original thread.
