# Can NGINX be used as an intermediate proxy to handle TLS cipher translation between two endpoints

**URL:** <https://community.nginx.org/t/can-nginx-be-used-as-an-intermediate-proxy-to-handle-tls-cipher-translation-between-two-endpoints/6645>\
**Category:** NGINX\
**Tags:** ssl, tls, reverse-proxy\
**Created:** [September 9, 2025, 12:07pm UTC](https://community.nginx.org/t/can-nginx-be-used-as-an-intermediate-proxy-to-handle-tls-cipher-translation-between-two-endpoints/6645 "2025-09-09T12:07:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![msanaullah](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@msanaullah](https://community.nginx.org/u/msanaullah)\
**Post date:** [September 9, 2025, 12:07pm UTC](https://community.nginx.org/t/can-nginx-be-used-as-an-intermediate-proxy-to-handle-tls-cipher-translation-between-two-endpoints/6645/1 "2025-09-09T12:07:46Z")

</div>

Hi all,

We’re exploring whether NGINX can be used as an intermediate proxy to handle TLS cipher translation between two endpoints. Specifically, we have an internal application server that initiates TLS communication using **CBC-mode ciphers** , and we need to forward this traffic to a cloud endpoint that only accepts **GCM-mode ciphers**.

The NGINX server sits between the two and can communicate with the cloud destination. Our goal is to have NGINX **terminate the incoming CBC-based TLS session** and **re-initiate a new TLS session using GCM ciphers** toward the cloud server.

Is this kind of TLS re-encryption and cipher translation supported natively in NGINX? If so, are there specific configuration directives or modules required to enforce cipher negotiation on both ends independently?

Any guidance or examples would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![liam](https://drob5swvtjqxg.cloudfront.net/user_avatar/community.nginx.org/liam/32/99_2.png) [@liam](https://community.nginx.org/u/liam)\
**Post date:** [September 12, 2025, 12:53pm UTC](https://community.nginx.org/t/can-nginx-be-used-as-an-intermediate-proxy-to-handle-tls-cipher-translation-between-two-endpoints/6645/2 "2025-09-12T12:53:29Z")

</div>

You can do this at the TCP layer or the HTTP layer, depending on what level of control/inspection you need over the traffic.

In both cases, NGINX should be configured to terminate the TLS and use `proxy_ssl_ciphers` to define the GCM ciphers required by the cloud server.

> **[Module ngx\_http\_proxy\_module](http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ssl_ciphers)**

---

<div class="post-metadata">

**Author:** ![system](https://drob5swvtjqxg.cloudfront.net/user_avatar/community.nginx.org/system/32/19_2.png) [@system](https://community.nginx.org/u/system)\
**Post date:** [October 1, 2025, 9:26pm UTC](https://community.nginx.org/t/can-nginx-be-used-as-an-intermediate-proxy-to-handle-tls-cipher-translation-between-two-endpoints/6645/3 "2025-10-01T21:26:59Z")

</div>

Closed on October 1, 2025, 9:26pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
