tlsroots

package
v2.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertPoolWithFallback

func CertPoolWithFallback(fallbackPaths []string) (*x509.CertPool, string, error)

CertPoolWithFallback returns the system certificate pool augmented with the first valid PEM bundle from fallbackPaths. SSL_CERT_FILE is used only when no explicit fallback path is valid. The returned path is empty when no bundle was used.

func ConfigureDefaults

func ConfigureDefaults(fallbackPaths []string) (string, error)

ConfigureDefaults configures process-wide HTTP defaults to use system roots augmented with a MiSTer fallback CA bundle. It also sets SSL_CERT_FILE when a fallback path was selected so later SystemCertPool calls use the same bundle.

func Transport

func Transport(base *http.Transport) *http.Transport

Transport clones base and applies the roots configured by ConfigureDefaults. If ConfigureDefaults has not selected a bundle, Transport returns a clone of base using normal Go TLS root behavior.

func TransportWithRoots

func TransportWithRoots(base *http.Transport, roots *x509.CertPool) *http.Transport

TransportWithRoots clones base and configures it to use roots when non-nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL