tlsroots

package
v2.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: GPL-3.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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