Skip to main content

TLS Settings

This reference covers all of Pomerium's TLS route settings:

TLS Client Certificate

If specified, Pomerium will present this client certificate to upstream services when requested to enforce mutual authentication (mTLS).

For more details, see our mTLS example repository and the Upstream mTLS With Pomerium guide.

How to configure

YAML/JSON settingTypeUsage
tls_client_cert and tls_client_keystring (base64-encoded)optional
tls_client_cert_file and tls_client_key_filestring (base64-encoded)optional

Examples

tls_client_cert: base64-encoded-certificate
tls_client_key: base64-encoded-keywords

# or
tls_client_cert_file: /relative/file/location
tls_client_key_file: /relative/file/location

TLS Custom Certificate Authority

TLS Custom Certificate Authority defines a set of root certificate authorities that the Pomerium Proxy Service uses when verifying upstream server certificates.

Note: This setting will replace (not append) the system's trust store for a given route.

How to configure

YAML/JSON settingTypeUsage
tls_custom_ca or tls_custom_ca_filestringoptional

Examples

tls_custom_ca: base64-encoded-custom-ca
tls_custom_ca_file: /relative/file/location

TLS Downstream Client Certificate Authority

If specified, downstream clients (like a user's browser) will be required to provide a valid client TLS certificate. This overrides the global client_ca option for this route.

See Client-Side mTLS With Pomerium for more information.

How to configure

YAML/JSON settingTypeUsage
tls_downstream_client_ca or tls_downstream_client_ca_filestringoptional

Examples

tls_downstream_client_ca: base64-encoded-client-ca
tls_downstream_client_ca_file: /relative/file/location

TLS Downstream Server Name

TLS Downstream Server Name overrides the hostname specified in the from field. When a connection to Pomerium is made via TLS the tls_downstream_server_name will be used as the expected Server Name Indication, whereas the host part of the from field, will be expected to match the Host or :authority headers of the HTTP request.

How to configure

Config file keysEnvironment variablesTypeUsage
tls_downstream_server_nameTLS_DOWNSTREAM_SERVER_NAMEstringoptional

TLS Skip Verification

TLS Skip Verification controls whether the Pomerium Proxy Service verifies the upstream server's certificate chain and host name.

If enabled, Pomerium accepts any certificate presented by the upstream server and any host name in that certificate.

In this mode, TLS is susceptible to man-in-the-middle attacks. This should be used only for testing.

How to configure

YAML/JSON settingTypeDefault
tls_skip_verifybooleanfalse

Examples

tls_skip_verify: true

TLS Upstream Allow Renegotiation

TLS Upstream Allow Renegotiation controls whether server-initiated TLS renegotiation is allowed for upstream servers. For more details, see Envoy's documentation on allow_renegotiation.

danger

TLS renegotiation is considered insecure and shouldn’t be used unless absolutely necessary.

How to configure

YAML/JSON settingTypeDefault
tls_upstream_allow_renegotiationbooleanfalse

Examples

tls_upstream_allow_renegotiation: true

TLS Upstream Server Name

TLS Upstream Server Name overrides the hostname specified in the to field. If set, this server name will be used to verify the certificate name. This is useful when the backend of your service is a TLS server with a valid certificate, but mismatched name.

How to configure

Config file keysEnvironment variablesTypeUsage
tls_upstream_server_nameTLS_UPSTREAM_SERVER_NAMEstringoptional