data TLS::Roots(pem: Bytes?)

The certificates trusted as roots.

<std:tls>:87

Class methods

def self.system -> TLS::Roots

The system's store, read once at the first connection that uses it (the environment variables SSL_CERT_FILE and SSL_CERT_DIR override where it is looked for). Without one, that connection raises TLS::Error naming the places tried.

<std:tls>:96

def self.from_pem(pem: Bytes) -> TLS::Roots

The certificates of a PEM bundle (a database's CA, say). Raises TLS::Error when it holds none, or one that does not parse.

<std:tls>:100

def self.from_pem(pem: String) -> TLS::Roots

The certificates of a PEM bundle (a database's CA, say). Raises TLS::Error when it holds none, or one that does not parse.

<std:tls>:102

Methods

def pem -> Bytes?

A PEM bundle, nil for the system's store.

<std:tls>:89

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

<std:tls>:96

def with(*, pem: Bytes? = …) -> TLS::Roots

A copy with the fields given replaced.

<std:tls>:96