trino_ssl: TLS options for a Trino connection

View source: R/ssl.R

trino_sslR Documentation

TLS options for a Trino connection

Description

Collects the TLS settings applied to every request made on a connection. Pass the result as the ssl_options argument of dbConnect().

Usage

trino_ssl(verify = TRUE, ca_bundle = NULL)

Arguments

verify

Whether to verify the server's certificate. Defaults to TRUE.

ca_bundle

Path to a PEM file holding the certificate authorities to trust, or NULL to use the system store.

Details

A cluster whose certificate is signed by an internal authority does not need verification turned off: point ca_bundle at the authority's PEM file and certificates keep being checked. verify = FALSE accepts any certificate, including an attacker's, and so dbConnect() warns once when it opens a connection with it.

Value

A list of TLS options.

Examples

# Secure default
trino_ssl()

# Trust an internal certificate authority
## Not run: 
trino_ssl(ca_bundle = "/etc/ssl/certs/internal-ca.pem")

## End(Not run)

RTrino documentation built on Oct. 15, 2026, 5:08 p.m.