Skip to main content

How Do I Handle TLS Traffic?

Overview

TLS endpoints enable you to deliver any network service that runs over a TLS-based protocol. TLS endpoints make no assumptions about the wrapped protocol being transported.

TLS endpoints inspect the Server Name Indication (SNI) data on incoming TLS connections to route connections to the appropriate endpoint.

Because the TLS protocol describes no application-level semantics, ngrok can only offer a limited set of traffic policy actions to handle TLS traffic.

If you are delivering an HTTPS application, prefer to create an HTTP Endpoint.

Quickstart

Loading…
info

TLS termination at the edge is not supported for:

  • SSH
  • Rust

Learn more

TLS termination

TLS Endpoints enable you to to define where TLS termination occurs. You can configure your endpoint to terminate TLS at the ngrok cloud service. You can also achieve end-to-end encryption by terminating at the agent or your upstream service.

tip

When you use end-to-end encryption, the ngrok cloud service can not see payloads that transit through your endpoints.

See the TLS Termination documentation for more information.

Errors

Learn how ngrok handles errors for TLS endpoints in the Errors documentation.

API

TLS Endpoints can be created programatically. Consult the documentation on Endpoint APIs.

Limits & pricing

TLS endpoints are available on Pay-as-you-go, Pro, and Enterprise plans. Consult the pricing documentation for general billing details.

For TLS limits, see the endpoint Limits documentation.